Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahogony
php
Commits
7dbf6a3c
Commit
7dbf6a3c
authored
Oct 19, 2018
by
mh
Browse files
wordpress does comments in queries
parent
c7f198e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
files/snuffleupagus/base.rules
View file @
7dbf6a3c
...
...
@@ -46,7 +46,7 @@ sp.disable_function.function("ini_get").param("var_name").value_r("(?:allow_url_
#sp.disable_function.function("is_callable").param("var").value_r("(?:eval|exec|system)").drop();
# Ghetto sqli hardening
sp.disable_function.function("mysql_query").param("query").value_r("/\\*").drop();
#
sp.disable_function.function("mysql_query").param("query").value_r("/\\*").drop();
sp.disable_function.function("mysql_query").param("query").value_r("--").drop();
sp.disable_function.function("mysql_query").param("query").value_r("#").drop();
#sp.disable_function.function("mysql_query").param("query").value_r(";.*;").drop();
...
...
@@ -56,7 +56,7 @@ sp.disable_function.function("mysql_query").param("query").value_r("sleep").drop
#
sp.disable_function.function("mysql_query").param("query").value_r("information_schema").drop();
sp.disable_function.function("mysqli_query").param("query").value_r("/\\*").drop();
#
sp.disable_function.function("mysqli_query").param("query").value_r("/\\*").drop();
sp.disable_function.function("mysqli_query").param("query").value_r("--").drop();
sp.disable_function.function("mysqli_query").param("query").value_r("#").drop();
#sp.disable_function.function("mysqli_query").param("query").value_r(";.*;").drop();
...
...
@@ -66,10 +66,10 @@ sp.disable_function.function("mysqli_query").param("query").value_r("sleep").dro
#
sp.disable_function.function("mysqli_query").param("query").value_r("information_schema").drop();
sp.disable_function.function("PDO::query").param("query").value_r("/\\*").drop();
#
sp.disable_function.function("PDO::query").param("query").value_r("/\\*").drop();
sp.disable_function.function("PDO::query").param("query").value_r("--").drop();
sp.disable_function.function("PDO::query").param("query").value_r("#").drop();
sp.disable_function.function("PDO::query").param("query").value_r(";.*;").drop();
#
sp.disable_function.function("PDO::query").param("query").value_r(";.*;").drop();
sp.disable_function.function("PDO::query").param("query").value_r("benchmark\\s*\\(").drop();
sp.disable_function.function("PDO::query").param("query").value_r("sleep\\s*\\(").drop();
# some CMS and ORM's use this to predict the current schema f.e doctrine
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment