rip
This commit is contained in:
@@ -9,12 +9,8 @@ SecAuditLog /var/log/modsecurity/audit.log
|
|||||||
SecRequestBodyJsonParser On
|
SecRequestBodyJsonParser On
|
||||||
|
|
||||||
# sql injection
|
# sql injection
|
||||||
SecRule ARGS|REQUEST_BODY "['\"].*--" \
|
SecRule REQUEST_BODY "['\"].*--" \
|
||||||
"id:950001,phase:2,deny,status:403,msg:'SQL Injection: Escape or Comment',log,t:urlDecode,t:lowercase"
|
"id:950001,phase:2,deny,status:403,msg:'SQL Injection: quote and comment',log"
|
||||||
|
|
||||||
# sql keyword
|
|
||||||
SecRule ARGS "(?i)\b(select|insert|update|delete|drop|union|grant|alter|truncate)\b" \
|
|
||||||
"id:950002,phase:2,deny,status:403,msg:'SQL Injection: Keyword',log,t:urlDecode,t:lowercase"
|
|
||||||
|
|
||||||
# xss / html injection
|
# xss / html injection
|
||||||
SecRule REQUEST_URI|ARGS "(<.*>)|(%3C.*%3E)" \
|
SecRule REQUEST_URI|ARGS "(<.*>)|(%3C.*%3E)" \
|
||||||
|
|||||||
Reference in New Issue
Block a user