Difference between revisions of "AppSensor DetectionPoint RE4"

From OWASP
Jump to: navigation, search
(updated method name)
m (wording)
 
Line 3: Line 3:
 
<pre>
 
<pre>
  
//the execution of this line will throw an exception if an attack is found  
+
//the execution of this line will create an exception if an attack is found  
 
boolean isValid = AttackDetectorUtils.verifyValidRequestMethod(myServletRequest, AttackDetectorUtils.GET);  
 
boolean isValid = AttackDetectorUtils.verifyValidRequestMethod(myServletRequest, AttackDetectorUtils.GET);  
 
if (! isValid) {
 
if (! isValid) {

Latest revision as of 09:28, 1 June 2010

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


//the execution of this line will create an exception if an attack is found 
boolean isValid = AttackDetectorUtils.verifyValidRequestMethod(myServletRequest, AttackDetectorUtils.GET); 
if (! isValid) {
    notify user ... ???
}