Security Issues with ASP.Net

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Security Issues with ASP.Net

    Hi All,

    Need some advice on some of the security issues in my ASP.Net application.
    There are certain tasks that I need to implement so need advice/guidance on
    them as well as safeguards that I should implement. The application would
    be typically running on Windows Server 2003 with IIS6 with .Net framework
    1.1

    1. My application saves its settings to the registry. I know that by
    default the Aspnet user does not have rights to edit the registry. My
    Workaround is that I changed the user in processmodel from "machine" to
    "SYSTEM" in the machine.config file. Also in case of 2003 Server, I have to
    explicitly grant full rights to the aspnet user to the registry.

    Somehow I feel that this solution is not a good one and has the potential
    for making the web server unsafe. Any other solutions/workarounds for this
    problem?

    2. My application needs to read/write/create directories from the file
    system on the webserver. I have to explicitly grant the aspnet user full
    access to the directories in question. Any other elegant solution to this
    issue?

    Also, in Windows Server 2003, this does not work if the directory is located
    inside the "Program Files" directory. Does not work even when the aspnet
    user is added to the Administrators group. Why could this be happening?

    Any suggestions/pointers would be appreciated.

    Thanks in advance,
    Sanjay


    Sanjay Poojari Guest

  2. Similar Questions and Discussions

    1. Administering Security Issues
      I installed a J2EE Configuration of 6.1 30 day trial on top of unmodified perms IIS 6/W2k3. I entered a required password to administering CF and...
    2. asp.net + unmanaged dll security issues
      Hi, I'm developing an ASP.NET application. I imported a C++ dll into the C# code. When I tried to access a function in that dll, application threw...
    3. Security issues
      http://tinyurl.com/2dlhq -- Ivan "Doomer" Carlos - Cell.: +55 (11) 8112-0666 icarlos@icarlos.net www.icarlos.net -
    4. Database Security Issues
      I'm helping someone to create an online database. All is fine and good except for one problem. Here it is: In order to provide connectivity to...
    5. Summary of security issues?
      I am wondering if there is any place that contains an (up to date) summary of security issues with various software browseable by program name and...
  3. #2

    Default Security Issues with ASP.Net

    Hi All,

    Need some advice on some of the security issues in my ASP.Net application.
    There are certain tasks that I need to implement so need advice/guidance on
    them as well as safeguards that I should implement. The application would
    be typically running on Windows Server 2003 with IIS6 with .Net framework
    1.1

    1. My application saves its settings to the registry. I know that by
    default the Aspnet user does not have rights to edit the registry. My
    Workaround is that I changed the user in processmodel from "machine" to
    "SYSTEM" in the machine.config file. Also in case of 2003 Server, I have to
    explicitly grant full rights to the aspnet user to the registry.

    Somehow I feel that this solution is not a good one and has the potential
    for making the web server unsafe. Any other solutions/workarounds for this
    problem?

    2. My application needs to read/write/create directories from the file
    system on the webserver. I have to explicitly grant the aspnet user full
    access to the directories in question. Any other elegant solution to this
    issue?

    Also, in Windows Server 2003, this does not work if the directory is located
    inside the "Program Files" directory. Does not work even when the aspnet
    user is added to the Administrators group. Why could this be happening?

    Any suggestions/pointers would be appreciated.

    Thanks in advance,
    Sanjay


    Sanjay Poojari Guest

  4. #3

    Default Re: Security Issues with ASP.Net

    Most executable programs you run use the local System account to run.
    ASP.Net is no different. There is no Security risk unless some hostile
    person can somehow take control of your ASP.Net app. The aspnet user account
    is more useful if you are, for example, a hosting service, and of course,
    you don't want to grant blanket access to the entire machine to all of your
    hosting clients.
    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    [url]http://www.takempis.com[/url]
    Big things are made up of
    lots of little things.

    "Sanjay Poojari" <sanjay@rheal.com> wrote in message
    news:%23Hds2q3TDHA.1624@TK2MSFTNGP11.phx.gbl...
    > Hi All,
    >
    > Need some advice on some of the security issues in my ASP.Net application.
    > There are certain tasks that I need to implement so need advice/guidance
    on
    > them as well as safeguards that I should implement. The application would
    > be typically running on Windows Server 2003 with IIS6 with .Net framework
    > 1.1
    >
    > 1. My application saves its settings to the registry. I know that by
    > default the Aspnet user does not have rights to edit the registry. My
    > Workaround is that I changed the user in processmodel from "machine" to
    > "SYSTEM" in the machine.config file. Also in case of 2003 Server, I have
    to
    > explicitly grant full rights to the aspnet user to the registry.
    >
    > Somehow I feel that this solution is not a good one and has the potential
    > for making the web server unsafe. Any other solutions/workarounds for
    this
    > problem?
    >
    > 2. My application needs to read/write/create directories from the file
    > system on the webserver. I have to explicitly grant the aspnet user full
    > access to the directories in question. Any other elegant solution to this
    > issue?
    >
    > Also, in Windows Server 2003, this does not work if the directory is
    located
    > inside the "Program Files" directory. Does not work even when the aspnet
    > user is added to the Administrators group. Why could this be happening?
    >
    > Any suggestions/pointers would be appreciated.
    >
    > Thanks in advance,
    > Sanjay
    >
    >

    Kevin Spencer Guest

  5. #4

    Default Re: Security Issues with ASP.Net

    Most executable programs you run use the local System account to run.
    ASP.Net is no different. There is no Security risk unless some hostile
    person can somehow take control of your ASP.Net app. The aspnet user account
    is more useful if you are, for example, a hosting service, and of course,
    you don't want to grant blanket access to the entire machine to all of your
    hosting clients.
    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    [url]http://www.takempis.com[/url]
    Big things are made up of
    lots of little things.

    "Sanjay Poojari" <sanjay@rheal.com> wrote in message
    news:%23Hds2q3TDHA.1624@TK2MSFTNGP11.phx.gbl...
    > Hi All,
    >
    > Need some advice on some of the security issues in my ASP.Net application.
    > There are certain tasks that I need to implement so need advice/guidance
    on
    > them as well as safeguards that I should implement. The application would
    > be typically running on Windows Server 2003 with IIS6 with .Net framework
    > 1.1
    >
    > 1. My application saves its settings to the registry. I know that by
    > default the Aspnet user does not have rights to edit the registry. My
    > Workaround is that I changed the user in processmodel from "machine" to
    > "SYSTEM" in the machine.config file. Also in case of 2003 Server, I have
    to
    > explicitly grant full rights to the aspnet user to the registry.
    >
    > Somehow I feel that this solution is not a good one and has the potential
    > for making the web server unsafe. Any other solutions/workarounds for
    this
    > problem?
    >
    > 2. My application needs to read/write/create directories from the file
    > system on the webserver. I have to explicitly grant the aspnet user full
    > access to the directories in question. Any other elegant solution to this
    > issue?
    >
    > Also, in Windows Server 2003, this does not work if the directory is
    located
    > inside the "Program Files" directory. Does not work even when the aspnet
    > user is added to the Administrators group. Why could this be happening?
    >
    > Any suggestions/pointers would be appreciated.
    >
    > Thanks in advance,
    > Sanjay
    >
    >

    Kevin Spencer Guest

  6. #5

    Default Re: Security Issues with ASP.Net

    Thanks Kevin!

    Sanjay

    "Kevin Spencer" <kevin@takempis.com> wrote in message
    news:#clt4Q4TDHA.1864@TK2MSFTNGP11.phx.gbl...
    > Most executable programs you run use the local System account to run.
    > ASP.Net is no different. There is no Security risk unless some hostile

    Sanjay Poojari Guest

  7. #6

    Default Re: Security Issues with ASP.Net

    Thanks Kevin!

    Sanjay

    "Kevin Spencer" <kevin@takempis.com> wrote in message
    news:#clt4Q4TDHA.1864@TK2MSFTNGP11.phx.gbl...
    > Most executable programs you run use the local System account to run.
    > ASP.Net is no different. There is no Security risk unless some hostile

    Sanjay Poojari Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139