A potentially dangerous Request.Form value was detected from the client

A

amit

hi,

Can anyone tell me is there any other way to fix the problem listed in the
subject (its seen in some of the browsers),

I am right now

adding the following in the <system.web> block of web.config...

<pages validateRequest="false" />

Is there a security threat after we do this, if yes please let me know the
workaround,

regards,
AMIT PUROHIT
 
E

Eric Lawrence [MSFT]

Yes, there is a security threat to doing this if you're not careful what you
do with data submitted via forms. You need to make sure that it's safe for
whatever you use it for (e.g. save to SQL, display to user, etc).

See the book "Writing Secure Code" for more info.

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.
 

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

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top