Daily using/supporting

Get Firefox browser!
Get Thunderbird!
Get Opera browser!
Get The Gimp!
Get Inkscape!
Get LibreOffice!
Get Videolan!
Get Linux!
Get Mandriva!
Get Joomla!
Hacker Emblem

Archives

Which topics would you like us to cover more?

Latest comments

Latest tweets

about 1 day ago Using REDIPS.drag to add drag and drop to your .Net webapplication #li #dib0 http://t.co/n8zY3s7d
about 7 days ago http://t.co/cknQcDbo #Kindle
about 15 days ago Freedom isn't the ability to choose what to do or say, but the ability to choose what not to do or say #freedom
about 29 days ago http://t.co/61KTQknI #Kindle
12 Apr 2012 Force the use of a networking adapter using C# #li #dib0 http://t.co/ZTJOPzOz
9 Apr 2012 Mandriva 2010.2 and USB devices in Virtualbox http://t.co/fwq9gbHB
9 Apr 2012 Execute a http request to you own site with PHP http://t.co/DIvWPrpd
Home Architecture, security and coding Bypassing the .Net ValidateRequest filter
Bypassing the .Net ValidateRequest filter
Written by Division by Zero   
Tuesday, 06 April 2010 13:46

The .Net framework has a default filter to test if someone tries to attack your web application. I don't know if you ever tested if you could break this filter. I have (I know... that's kind of how I do things: break stuff), but it's hard.

While conducting a pen-test on one of our own sites I found a white paper on how to bypass the ValidateRequest. For some reason the paper was pulled of the web, but you know that once it has been on the web it's almost impossible to remove it.

The paper is 24 pages long and explains which steps were taken to break the filter. I won't republish this paper, but the final conclusion to break the filter and conduct cross site scripting is the following input.

 <~/XSS/*-*/STYLE=xss:e/**/xpression(alert('XSS'))> 

So remember: don't trust these kind of standard, default filters alone. Always validate your input and use more advanced standard solutions to help you with that. A colleague pointed me to a post on keepitlocked.net supporting this. This post shows the reflected code of the ValidateRequest and it's boundaries.

 

Add comment


Security code
Refresh

I think, therefore I am. - R. Descartes


© 2009 - 2012, Division by Zero

Template based on the empire template by joomlashack 

Valid XHTML 1.0 Strict  Valid CSS!  Creative Commons License
This work by Division by Zero is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Netherlands License.