-1

Please tell me. I am using ESAPI for validation, escaping n all that and i have this confusion. Please share your experience.

R.K.R
  • 132
  • 4
  • 18

2 Answers2

0

You need to use its default validator org.owasp.esapi.reference.DefaultValidator class for validation. Also see this API

Muhammad Imran Tariq
  • 22,654
  • 47
  • 125
  • 190
  • Do I need to validate or do output encoding/escaping with a file needed to be written in response to nullify a possible xss attack? The file is retrieved from database in byte format. N Thanks the answer was of great help. – R.K.R Jun 27 '12 at 03:44
0

I am using ESAPI validation in two enterprise web apps. Study the docs at the OWASP ESAPI site, but the site is very disorganized, incomplete, and often has broken links.

Update: Note that, when ESAPI.properties is not loaded, org.owasp.esapi.reference.DefaultValidator handles ESAPI.validator().getValidInput(). Thus, since your custom regex in ESAPI.properties are not loaded, your validation results will vary from what was expected.

J Slick
  • 929
  • 11
  • 17