Ask a Question related to ASP.NET Security, Design and Development.
-
Neil #1
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
-
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... -
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 ... -
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... -
RegEx for XSS (Cross-Site Scripting)?
Trying to use the RegularExpressionValidator with the following expression which functions well when using code with the... -
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... -
Peter Blum #2
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?You are correct that you cannot have a custom error page for a custom error> 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
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



Reply With Quote

