rip
This commit is contained in:
@@ -9,12 +9,8 @@ SecAuditLog /var/log/modsecurity/audit.log
|
||||
SecRequestBodyJsonParser On
|
||||
|
||||
# sql injection
|
||||
SecRule ARGS|REQUEST_BODY "['\"].*--" \
|
||||
"id:950001,phase:2,deny,status:403,msg:'SQL Injection: Escape or Comment',log,t:urlDecode,t:lowercase"
|
||||
|
||||
# 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"
|
||||
SecRule REQUEST_BODY "['\"].*--" \
|
||||
"id:950001,phase:2,deny,status:403,msg:'SQL Injection: quote and comment',log"
|
||||
|
||||
# xss / html injection
|
||||
SecRule REQUEST_URI|ARGS "(<.*>)|(%3C.*%3E)" \
|
||||
|
||||
Reference in New Issue
Block a user