mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Adds initial support to @detectXSS
Libinject was recently updated to support XSS detection. This commit adds initial support to it.
This commit is contained in:
18
tests/op/detectXSS.t
Normal file
18
tests/op/detectXSS.t
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
type => "op",
|
||||
name => "detectXSS",
|
||||
input => "",
|
||||
ret => 0
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "detectXSS",
|
||||
input => "this is not an XSS",
|
||||
ret => 0
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "detectXSS",
|
||||
input => "<a href=\"javascript:alert(1)\">)",
|
||||
ret => 1
|
||||
}
|
Reference in New Issue
Block a user