AppSensor DetectionPoint CIE1

From OWASP
Jump to: navigation, search

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

String myInputParameter = ...;

//the execution of this line will throw an exception if an attack is found 
boolean isAttack = AttackDetectorUtils.verifySQLInjectionAttack(myInputParameter); 
if (isAttack) {
    notify user ... ???
}