mirror of
https://github.com/fabriziosalmi/patterns.git
synced 2025-12-29 16:15:12 +00:00
Automated update: OWASP CRS to Caddy and Nginx WAF rules [Sat Dec 21 00:35:03 UTC 2024]
This commit is contained in:
16
waf_patterns/apache/lfi.conf
Normal file
16
waf_patterns/apache/lfi.conf
Normal file
@@ -0,0 +1,16 @@
|
||||
# Apache ModSecurity rules for LFI
|
||||
SecRuleEngine On
|
||||
|
||||
SecRule REQUEST_URI "@lt 1" "id:1000,phase:1,deny,status:403,log,msg:'lfi attack detected'"
|
||||
SecRule REQUEST_URI "@lt 1" "id:1000,phase:1,deny,status:403,log,msg:'lfi attack detected'"
|
||||
SecRule REQUEST_URI "@rx (?i)(?:[/x5c]|%(?:2(?:f|5(?:2f|5c|c(?:1%259c|0%25af))|%46)|5c|c(?:0%(?:[2aq]f|5c|9v)|1%(?:[19p]c|8s|af))|(?:bg%q|(?:e|f(?:8%8)?0%8)0%80%a)f|u(?:221[56]|EFC8|F025|002f)|%3(?:2(?:%(?:%6|4)6|F)|5%%63)|1u)|0x(?:2f|5c))(?:.(?:%0[01]|?)?|?.?|%(?:2(?:(?:5(?:2|c0%25a))?e|%45)|c0(?:.|%[256aef]e)|u(?:(?:ff0|002)e|2024)|%32(?:%(?:%6|4)5|E)|(?:e|f(?:(?:8|c%80)%8)?0%8)0%80%ae)|0x2e){2,3}(?:[/x5c]|%(?:2(?:f|5(?:2f|5c|c(?:1%259c|0%25af))|%46)|5c|c(?:0%(?:[2aq]f|5c|9v)|1%(?:[19p]c|8s|af))|(?:bg%q|(?:e|f(?:8%8)?0%8)0%80%a)f|u(?:221[56]|EFC8|F025|002f)|%3(?:2(?:%(?:%6|4)6|F)|5%%63)|1u)|0x(?:2f|5c))" "id:1000,phase:1,deny,status:403,log,msg:'lfi attack detected'"
|
||||
SecRule REQUEST_URI "@rx (?:(?:^|[x5c/;]).{2,3}[x5c/;]|[x5c/;].{2,3}(?:[x5c/;]|$))" "id:1000,phase:1,deny,status:403,log,msg:'lfi attack detected'"
|
||||
SecRule REQUEST_URI "@pmFromFile lfi-os-files.data" "id:1000,phase:1,deny,status:403,log,msg:'lfi attack detected'"
|
||||
SecRule REQUEST_URI "@pmFromFile restricted-files.data" "id:1000,phase:1,deny,status:403,log,msg:'lfi attack detected'"
|
||||
SecRule REQUEST_URI "@lt 2" "id:1000,phase:1,deny,status:403,log,msg:'lfi attack detected'"
|
||||
SecRule REQUEST_URI "@lt 2" "id:1000,phase:1,deny,status:403,log,msg:'lfi attack detected'"
|
||||
SecRule REQUEST_URI "@pmFromFile lfi-os-files.data" "id:1000,phase:1,deny,status:403,log,msg:'lfi attack detected'"
|
||||
SecRule REQUEST_URI "@lt 3" "id:1000,phase:1,deny,status:403,log,msg:'lfi attack detected'"
|
||||
SecRule REQUEST_URI "@lt 3" "id:1000,phase:1,deny,status:403,log,msg:'lfi attack detected'"
|
||||
SecRule REQUEST_URI "@lt 4" "id:1000,phase:1,deny,status:403,log,msg:'lfi attack detected'"
|
||||
SecRule REQUEST_URI "@lt 4" "id:1000,phase:1,deny,status:403,log,msg:'lfi attack detected'"
|
||||
Reference in New Issue
Block a user