ASP.net impersonation security

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

  1. #1

    Default ASP.net impersonation security

    Does .net impersonation have any security risks from the ntfs side of
    things? We currently have our intranet apps placed on the webserver
    uncompiled and I have a concern that a user can get to the code behind
    pages. Is this a valid concern? Please let me know of any other security
    issues you have come across in relation to impersonation, I need to prepare
    an arguement for or against its use.

    Thanks in advance,
    ~spo
    spo Guest

  2. Similar Questions and Discussions

    1. Impersonation
      Can someone explain this to me I have a web app I am trying to deploy for the Intranet of our company. I want to use integrated windows so have...
    2. ASP.Net Impersonation
      I am trying to understand Impersonation in the ASP.Net context. Here's what I DO understand: -Using Windows Authentication with...
    3. Impersonation and integrated security (+sql server reporting servi
      Hi, I'm having a little difficulty getting my head round windows integrated security/impersonation and I'd appreciate a little help with the...
    4. Impersonation/Delegation security considerations
      I'm having trouble finding specific documentation regarding the negative impact of using delegation in a Windows 2000 environment. I've read...
    5. ASP.NET Impersonation over VPN?
      Has anyone had any issues using Impersonation over a VPN? I work from home (have my own domain), and use Cisco's VPN Client (version 4) to...
  3. #2

    Default RE: ASP.net impersonation security

    Look up the machine.config file in your %system
    root%\microsoft.net\framework\version folder\config folder. This .config file
    contains a section called <httpHandler>. This section provides the way that
    requests are going to be handled at the web server. In this section, trace an
    entry as below

    <add verb="*" path="*.cs" type="System.Web.HttpForbiddenHandler"/>

    This entry forbids accessing of .cs file because they are handled by the
    HttpForbiddenHandler class. This way protected resources are protected from
    unauthorized access by the framework. The following is an error description
    if an user tries to access a forbidden resource file

    This type of page is not served.
    Description: The type of page you have requested is not served because it
    has been explicitly forbidden.

    with regards,

    J.V.

    "spo via DotNetMonster.com" wrote:
     
    Ravichandran Guest

  4. #3

    Default Re: ASP.net impersonation security

    Hi,

    No matter what user context ASP.NET is running under (default ASPNET account
    or Network Service, or an impersonated account) this account will need NTFS
    read permissions to be able to read the files off the hard disk to process
    them.

    How are you envisaging that a remote user will be able to access your .cs or
    ..vb source code? Via HTTP? or some other method?

    Cheers
    Ken

    --
    Blog: www.adopenstatic.com/cs/blogs/ken/
    Web: www.adopenstatic.com

    "spo via DotNetMonster.com" <DotNetMonster.com> wrote in
    message news:com...
    : Does .net impersonation have any security risks from the ntfs side of
    : things? We currently have our intranet apps placed on the webserver
    : uncompiled and I have a concern that a user can get to the code behind
    : pages. Is this a valid concern? Please let me know of any other security
    : issues you have come across in relation to impersonation, I need to
    prepare
    : an arguement for or against its use.
    :
    : Thanks in advance,
    : ~spo


    Ken Guest

  5. #4

    Default Re: ASP.net impersonation security

    i see the users trying to access via http(which i know is blocked), start- 
    spo Guest

  6. #5

    Default Re: ASP.net impersonation security

    Start -> Run requires interactive access to the server. Do not allow the
    users to logon to the server, or to logon using Terminal Services.

    My Network Places requires access to a file share, or WebDAV share on the
    server. You can use NTFS permissions to restrict who can access your server
    via SMB or WebDAV shares.

    Cheers
    Ken

    --
    Blog: www.adopenstatic.com/cs/blogs/ken/
    Web: www.adopenstatic.com


    "spo via DotNetMonster.com" <com> wrote in message
    news:com...
    :i see the users trying to access via http(which i know is blocked), start-
    : >run "...", or via "my network places" and walk the path to the sites.


    Ken 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