HighTechTalks DotNet Forums  

Securing app.config / web.config

Dotnet Security microsoft.public.dotnet.security


Discuss Securing app.config / web.config in the Dotnet Security forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
plinares
 
Posts: n/a

Default Securing app.config / web.config - 12-04-2007 , 10:30 AM







Hi all, I'm developing a web application with VS2005 and I've reached
the point where I have do deploy it to some servers and thus secure
sensible information stored in the web.config file ... you're right!
connectionstrings!!!

Well, I've tried aspnet_iisreg with RSA provider,and the public/
private key container and it's cool and it's transparent for the
developer... but I think that there is something that I'm missing
because if someone knows about aspnet_iisreg ... they can easily
decrypt my web config at the deploy server and watch contents. There
is an option when you export RSA keys to include only public keys, but
it would only allow to encrypt and not to decrypt.

What I really would like to know : if there is a way to secure data
inside a web.config or app.config as well, so decryption is only
available to the application itself?. I guess that the way must be to
keep that keys safeley somewhere somehow ... does VS2005 provide a
standard way to do that?

Thanks in advance for any kind of help.

Regards,
Pablo.

Reply With Quote
  #2  
Old   
Dominick Baier
 
Posts: n/a

Default Re: Securing app.config / web.config - 12-04-2007 , 10:35 AM






No - there is no way. If someone gets access to the server in a way that
he can execute commands - there cannot be a protection.

But executing commands on a server and viewing file contents remotely is
a totally different thing. The former is _much_ harder.

-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

Quote:
Hi all, I'm developing a web application with VS2005 and I've reached
the point where I have do deploy it to some servers and thus secure
sensible information stored in the web.config file ... you're right!
connectionstrings!!!

Well, I've tried aspnet_iisreg with RSA provider,and the public/
private key container and it's cool and it's transparent for the
developer... but I think that there is something that I'm missing
because if someone knows about aspnet_iisreg ... they can easily
decrypt my web config at the deploy server and watch contents. There
is an option when you export RSA keys to include only public keys, but
it would only allow to encrypt and not to decrypt.

What I really would like to know : if there is a way to secure data
inside a web.config or app.config as well, so decryption is only
available to the application itself?. I guess that the way must be to
keep that keys safeley somewhere somehow ... does VS2005 provide a
standard way to do that?

Thanks in advance for any kind of help.

Regards,
Pablo.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.