ValidateRequest="false" ?

R

Raterus

I'm having to set ValidateRequest="false" on one of my pages because users need to enter a value that contains an html tag (well asp.net think it is anyway). I understand why the "potentially dangerous request.form detected" error and why it is being thrown, but my question is:

What could a malicious user possibly do to my application by putting HTML fields within a form field? Is there a vulnerability I should know about in asp.net, or would bad coding on my part really only be the thing I need to worry about if ValidateRequest="false".

Thanks for any insight!
--Michael
 
J

Joe Kaplan \(MVP - ADSI\)

The main issue is Cross Site Scripting. If your site takes input from the
user and then displays it back to the user without first validating it, you
could potentially allow a bad guy to use your site to which is trusted by
your users to steal their cookies or other data.

The built-in request validation stuff in 1.1 tries to keep you from shooting
yourself in the foot by not allowing you to accidentally do this. If you
are careful, it is safe to turn the behavior off, but you need to make sure
you thoroughly validate all input before returning it back to the browser.

HTH,

Joe K.

I'm having to set ValidateRequest="false" on one of my pages because users
need to enter a value that contains an html tag (well asp.net think it is
anyway). I understand why the "potentially dangerous request.form detected"
error and why it is being thrown, but my question is:

What could a malicious user possibly do to my application by putting HTML
fields within a form field? Is there a vulnerability I should know about in
asp.net, or would bad coding on my part really only be the thing I need to
worry about if ValidateRequest="false".

Thanks for any insight!
--Michael
 
J

Jos

Raterus said:
I'm having to set ValidateRequest="false" on one of my pages because
users need to enter a value that contains an html tag (well asp.net
think it is anyway). I understand why the "potentially dangerous
request.form detected" error and why it is being thrown, but my
question is:

What could a malicious user possibly do to my application by putting
HTML fields within a form field? Is there a vulnerability I should
know about in asp.net, or would bad coding on my part really only be
the thing I need to worry about if ValidateRequest="false".

Thanks for any insight!
--Michael

Here's a brief article on script attacks:
http://www.asp.net/faq/requestvalidation.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,744
Latest member
CortneyMcK

Latest Threads

Top