Cross Site Scripting & Custom Error Pages

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

  1. #1

    Default Cross Site Scripting & Custom Error Pages

    Hi,

    I have been investigating CSS vulnerabilites within my application and have
    a question. If I added malicious script tags to the Url these are
    automatically removed from all pages of my application and the user is
    redirected to my custom error page. This is all taken care of by the .Net
    Runtime and works as expected. However if after being redirected to the
    custom error page I append script to the query string this is not removed and
    I'm presented with the default page telling me to create a custom error page,
    I guess you can't have a custom error page for a custom error page... My
    question is should I be concerned about this? Should the script tags not be
    removed?

    Thanks
    Neil Guest

  2. Similar Questions and Discussions

    1. Prevent cross-scripting from the same domain
      Hello, i have 2 swf files, example1.swf and example2.swf, both on the same domain. I load example2 in a Loader control (Flex) from example1. I...
    2. CFAdmin Cross Site Scripting
      We recently signed up with ScanAlert, and they are reporting a XSS vulnerablilty in the CF Aministration. Path /CFIDE/administrator/enter.cfm ...
    3. Cross-domain scripting with Flash Player 6
      I'm sure I'm missing something basic here, but for some reason I'm not able to access a text file on another domain when my movie is viewed with...
    4. RegEx for XSS (Cross-Site Scripting)?
      Trying to use the RegularExpressionValidator with the following expression which functions well when using code with the...
    5. Cross-Site Scripting & sqlDataReader
      I am using sqlDataReader for Showing data from the Data base. But if the Data from sql is having tags like <script>alert()</script> then it shows an...
  3. #2

    Default Re: Cross Site Scripting & Custom Error Pages

    Its good to see someone actually paying attention to this common hacking
    technique. Microsoft promoted the heck out of the issue last year and as
    this message board indicates, it fell on deaf ears.

    I didn't understand what you meant here. How exactly are you appending the
    script and where is it directed?
    > However if after being redirected to the
    > custom error page I append script to the query string this is not removed
    > and
    > I'm presented with the default page telling me to create a custom error
    > page,
    > I guess you can't have a custom error page for a custom error page
    You are correct that you cannot have a custom error page for a custom error
    page.
    You can turn off the validationRequest property on the custom error page so
    it never looks at the incoming script (because its harmless to that page).
    <@ Page validationRequest=false >

    FYI: I built "Visual Input Security", a tool for ASP.NET developers to
    install protection against XSS, SQL injection and other input attacks using
    best practice techniques. It includes report that audits your pages for
    holes, logging feature, and validators that block attacks better and on a
    field-by-field basis. [url]http://www.peterblum.com/vise/home.aspx[/url].

    --- Peter Blum
    [url]www.PeterBlum.com[/url]
    Email: [email]PLBlum@PeterBlum.com[/email]
    Creator of "Professional Validation And More" at
    [url]http://www.peterblum.com/vam/home.aspx[/url]

    "Neil" <Neil@discussions.microsoft.com> wrote in message
    news:CC58FDCF-EB5C-4F91-89AA-9317B8CE0DFE@microsoft.com...
    > Hi,
    >
    > I have been investigating CSS vulnerabilites within my application and
    > have
    > a question. If I added malicious script tags to the Url these are
    > automatically removed from all pages of my application and the user is
    > redirected to my custom error page. This is all taken care of by the .Net
    > Runtime and works as expected. However if after being redirected to the
    > custom error page I append script to the query string this is not removed
    > and
    > I'm presented with the default page telling me to create a custom error
    > page,
    > I guess you can't have a custom error page for a custom error page... My
    > question is should I be concerned about this? Should the script tags not
    > be
    > removed?
    >
    > Thanks

    Peter Blum 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