Browsers can download assemblies directly from my website's /bin d

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

  1. #1

    Default Browsers can download assemblies directly from my website's /bin d

    Microsoft: If you email my passport account directly, I can give more detailed info & a telephone number to reach me.

    I've found that browsers can download dll's directly from my website's bin dir.
    In the following examples I've replaced my actual company name with "Mydomain" or "Mycode" etc. to protect my website.

    For example, all they need to do is type:
    [url]http://Mydomain.com/bin/Some.Web.dll[/url]
    into the IE address bar.

    For me, this is very bad. It means that an attacker could simply grab assemblies and use .NET Reflector to determine the code. In my case I issue product registration updates through ASP.NET, with the expectation that a user cannot simply find and download the assembly w/ the code to sign the registrations!

    Now this only happens with my website hosted through my ISP (I contacted them for help). If I test the same config on a machine at home, it won't let me download the assemblies.

    I looked in the web logs and found the following (again, I've replaced my actual website/assembly names to protect my website)
    Note that it only let me have the assembly once (HTTP 200 OK). Subsequent requests returned HTTP 404 (Not found). It never returns the expected response HTTP 403.2 (Read access forbidden).

    2004-07-01 02:01:41 216.55.191.221 /bin/MyCode.Web.dll - 80 - 67.40.221.149 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1) - MyCode-tech.com 200 0 28974
    2004-07-01 02:24:27 216.55.191.221 /bin/MyCode.Web.dll - 80 - 67.40.221.149 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+.NET+CL R+1.1.4322) - MyCode-tech.com 404 0 1830
    2004-07-01 02:24:32 216.55.191.221 /bin/MyCode.Web.dll - 80 - 67.40.221.149 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+.NET+CL R+1.1.4322) - MyCode-tech.com 404 0 1830

    Any ideas? This is very bad for me!!

    Sincerely,
    HosedIfSomeoneBadFiguresOutWhoIAm

    HosedIfSomeoneBadFiguresOutWhoIAm Guest

  2. Similar Questions and Discussions

    1. Download Issues With Different Browsers
      I'm using a simple, simple download example app to fetch a file from a tomcat server. It seems to work fine on Mozilla fireFox, but when I use it...
    2. Are MS Assemblies in the GAC?
      I want to create strongly signed support assemblies so they can be shared by different ASP.NET web apps. This requires that they be installed into...
    3. Too many assemblies asp.net
      I have been developing several web applications in VB.NET. I have started to notice that when I run one of the applications, all the assemblies for...
    4. download old browsers revisited
      I did find a post here on this topic indicating that you cannot run more than one version of IE on an operating system. Is this also true of...
    5. Locating assemblies in ASP.NET
      An ASPX page in a virtual directory does not find the compiled assembly containing the base class located in the application's bin directory...
  3. #2

    Default RE: Browsers can download assemblies directly from my website's /bin d

    Hello,

    Thank you for the information. Regarding the issue, as you have seen,
    ASP.NET will deny the request the DLL files by default. In ASP.NET, all
    request will be handled by HttpHanlders, if it find the request is to a
    DLL, it will denied it. I think the main problem should be related to the
    configurations of your ISP on their IIS server. They may do some "bad"
    things on the security settings. We may wait for their response and see
    what was going on there. With these information, we can determine if this
    is a secury hole.

    Regards,

    Luke


    [MSFT] Guest

  4. #3

    Default RE: Browsers can download assemblies directly from /bin

    Yes, the default error should be HTTP Error 403.2 - "Forbidden: Read access
    is denied.". It seems they still use some customized configurations. Maybe
    you need to reminder them about this.

    Luke

    [MSFT] Guest

  5. #4

    Default RE: Browsers can download assemblies directly from /bin

    Hello,

    Any update from the ISP? Is the problem fixed?

    Luke

    [MSFT] 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