This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit

AppSensor DetectionPoint RE2

Revision as of 14:28, 1 June 2010 by John Melton (talk | contribs) (created)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Here is some sample code that can be used to detect RE2.

//the execution of this line will create an exception if an attack is found - ie. invalid text is the request method (not valid for HTTP 1.1 request method)
boolean isValid = AttackDetectorUtils.verifyValidRequestMethod(myServletRequest, AttackDetectorUtils.POST); 
if (! isValid) {
    notify user ... ???