mirror of
https://github.com/fabriziosalmi/patterns.git
synced 2025-12-17 17:55:48 +00:00
10 lines
1.1 KiB
Plaintext
10 lines
1.1 KiB
Plaintext
# Apache ModSecurity rules for FIXATION
|
|
SecRuleEngine On
|
|
|
|
SecRule REQUEST_URI "\^\(\?:jsessionid\|aspsessionid\|asp\.net_sessionid\|phpsession\|phpsessid\|weblogicsession\|session_id\|session\-id\|cfid\|cftoken\|cfsid\|jservsession\|jwsession\)\$" "id:1172,phase:1,deny,status:403,log,msg:'fixation attack detected'"
|
|
SecRule REQUEST_URI "@eq\ 0" "id:1176,phase:1,deny,status:403,log,msg:'fixation attack detected'"
|
|
SecRule REQUEST_URI "\^\(\?:jsessionid\|aspsessionid\|asp\.net_sessionid\|phpsession\|phpsessid\|weblogicsession\|session_id\|session\-id\|cfid\|cftoken\|cfsid\|jservsession\|jwsession\)\$" "id:1175,phase:1,deny,status:403,log,msg:'fixation attack detected'"
|
|
SecRule REQUEST_URI "!@endsWith\ %\{request_headers\.host\}" "id:1174,phase:1,deny,status:403,log,msg:'fixation attack detected'"
|
|
SecRule REQUEST_URI "\^\(\?:ht\|f\)tps\?://\(\.\*\?\)/" "id:1173,phase:1,deny,status:403,log,msg:'fixation attack detected'"
|
|
SecRule REQUEST_URI "\(\?i:\.cookieb\.\*\?;W\*\?\(\?:expires\|domain\)W\*\?=\|bhttp\-equivW\+set\-cookieb\)" "id:1171,phase:1,deny,status:403,log,msg:'fixation attack detected'"
|