Results 1 to 2 of 2

Thread: Web.Config Security on shared server

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2009
    Location
    Uk
    Posts
    157

    Question Web.Config Security on shared server

    My web.config contains passwords to my database and smtp and i want to tighten up the security, i want to protect the passwords fully so if a hacker or webhost employee accessed all the webserver files the passwords cannot be easily accessed

    I run on a shared host so using encryption could be an issue as i havnt got full IIS access - i havnt gone down that road yet to look fully into it

    I was thinking it might be easier and secure enough if i moved the connection strings & passwords from the web.config into a referenced .dll which was protected by a professional obfuscation tool

  2. #2
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: Web.Config Security on shared server

    If you have physical access to the server you can use aspnet_regiis to encrypt. Only drawback is that another person having access to the server could decrypt.
    Moving to a dll don't make much sense because someone having physical access will get the dll and open it.
    Using obfuscation is something i haven't tried on asp.net and i cannot be sure about the behavior of the web pages or IIS.
    Bottom line if someone can have physical access to your files then you have a problem.If you have your sql server on another machine without access from another then maybe you can move your passwords there and call them in code.
    Or maybe move your a web config there, have a small web project to decrypt the passes and transfer them to your current web site(with HttpWebRequest or something similar.Of course here someone can intercept the message so it may have to be encrypted, bummer ).
    Anyhow the simplest is to encrypt the web.config on the server.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width