2024-12-21 00:35:03 +00:00
|
|
|
# Apache ModSecurity rules for FIXATION
|
|
|
|
|
SecRuleEngine On
|
|
|
|
|
|
2025-01-07 00:27:08 +00:00
|
|
|
SecRule REQUEST_URI "@lt 1" "id:1302,phase:1,deny,status:403,log,msg:'fixation attack detected'"
|
|
|
|
|
SecRule REQUEST_URI "@lt 1" "id:1303,phase:1,deny,status:403,log,msg:'fixation attack detected'"
|
|
|
|
|
SecRule REQUEST_URI "@rx (?i:.cookieb.*?;W*?(?:expires|domain)W*?=|bhttp-equivW+set-cookieb)" "id:1304,phase:1,deny,status:403,log,msg:'fixation attack detected'"
|
|
|
|
|
SecRule REQUEST_URI "@rx ^(?:jsessionid|aspsessionid|asp.net_sessionid|phpsession|phpsessid|weblogicsession|session_id|session-id|cfid|cftoken|cfsid|jservsession|jwsession)$" "id:1305,phase:1,deny,status:403,log,msg:'fixation attack detected'"
|
|
|
|
|
SecRule REQUEST_URI "@rx ^(?:ht|f)tps?://(.*?)/" "id:1306,phase:1,deny,status:403,log,msg:'fixation attack detected'"
|
|
|
|
|
SecRule REQUEST_URI "!@endsWith %{request_headers.host}" "id:1307,phase:1,deny,status:403,log,msg:'fixation attack detected'"
|
|
|
|
|
SecRule REQUEST_URI "@rx ^(?:jsessionid|aspsessionid|asp.net_sessionid|phpsession|phpsessid|weblogicsession|session_id|session-id|cfid|cftoken|cfsid|jservsession|jwsession)$" "id:1308,phase:1,deny,status:403,log,msg:'fixation attack detected'"
|
|
|
|
|
SecRule REQUEST_URI "@eq 0" "id:1309,phase:1,deny,status:403,log,msg:'fixation attack detected'"
|
|
|
|
|
SecRule REQUEST_URI "@lt 2" "id:1310,phase:1,deny,status:403,log,msg:'fixation attack detected'"
|
|
|
|
|
SecRule REQUEST_URI "@lt 2" "id:1311,phase:1,deny,status:403,log,msg:'fixation attack detected'"
|
|
|
|
|
SecRule REQUEST_URI "@lt 3" "id:1312,phase:1,deny,status:403,log,msg:'fixation attack detected'"
|
|
|
|
|
SecRule REQUEST_URI "@lt 3" "id:1313,phase:1,deny,status:403,log,msg:'fixation attack detected'"
|
|
|
|
|
SecRule REQUEST_URI "@lt 4" "id:1314,phase:1,deny,status:403,log,msg:'fixation attack detected'"
|
|
|
|
|
SecRule REQUEST_URI "@lt 4" "id:1315,phase:1,deny,status:403,log,msg:'fixation attack detected'"
|