security - Preventing XSS in ASP.Net Webforms: why is Validate Request not enough? -


i'm looking ways protect our website xss attacks. @ point concerned sanitizing/protecting input only. aware of need encode output, that's out of scope of question.

a few things bear in mind:

  • my web not accept user-generated html @ all.
  • i have validate request set true.

i know microsoft recommends not rely on on validate request exclusively. however, i'd know why. embarking on input sanitization project involve fair amount of time , money need justify business.

i have been researching actual examples of how attack validate request protection. have come this. however, have been unable reproduce on site.

yes microsoft recommends don't rely on validate request because

only can define represents input application.

i recommend read how to: prevent cross-site scripting in asp.net guideline. possibly best thing have read microsoft on topic of xss.

another thing can use sanitize input microsoft web protection library. easy integrate existing applications , quite mature project rely on.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -