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:
Felipe Zimmerle
2014-02-17 06:31:38 -08:00
parent 47f5cf92db
commit 66939d059b
14 changed files with 1590 additions and 4 deletions

18
tests/op/detectXSS.t Normal file
View 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
}