This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org
Difference between revisions of "AppSensor DetectionPoint IE1"
From OWASP
John Melton (talk | contribs) (Sample code for testing for XSS attack) |
John Melton (talk | contribs) m |
||
| Line 4: | Line 4: | ||
String myInputParameter = ...; | String myInputParameter = ...; | ||
| − | //the execution of this line will | + | //the execution of this line will create an exception if an attack is found |
boolean isAttack = AttackDetectorUtils.verifyXSSAttack(myInputParameter); | boolean isAttack = AttackDetectorUtils.verifyXSSAttack(myInputParameter); | ||
if (isAttack) { | if (isAttack) { | ||
Latest revision as of 19:16, 4 June 2010
Here is some sample code that can be used to detect IE1.
String myInputParameter = ...;
//the execution of this line will create an exception if an attack is found
boolean isAttack = AttackDetectorUtils.verifyXSSAttack(myInputParameter);
if (isAttack) {
notify user ... ???
}