mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-01 14:15:46 +03:00
merge upstream & update configs
This commit is contained in:
18
tests/op/detectSQLi.t
Normal file
18
tests/op/detectSQLi.t
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
type => "op",
|
||||
name => "detectSQLi",
|
||||
input => "",
|
||||
ret => 0
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "detectSQLi",
|
||||
input => "this is not isqli",
|
||||
ret => 0
|
||||
},
|
||||
{
|
||||
type => "op",
|
||||
name => "detectSQLi",
|
||||
input => "ascii(substring(version() from 1 for 1))",
|
||||
ret => 1
|
||||
}
|
||||
@@ -55,8 +55,8 @@
|
||||
{
|
||||
type => "op",
|
||||
name => "rx",
|
||||
param => qr/^([^=])\s*=\s*((?:abc)+(?:def|ghi){2})$/i,
|
||||
input => "x =AbCDeFgHi",
|
||||
param => "(?i:(sleep\\((\\s*?)(\\d*?)(\\s*?)\\)|benchmark\\((.*?)\\,(.*?)\\)))",
|
||||
input => "SELECT pg_sleep(10);",
|
||||
ret => 1,
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user