I see many requests blocked in my modsec_audit.log
because of sql injection rules applying to JSESSIONID cookie.
I am trying to avoid those rules for that particular cookie name.
My last attempt was:
SecRuleUpdateTargetByTag "OWASP_CRS/WEB_ATTACK/SQL_INJECTION" "!REQUEST_COOKIES:JSESSIONID"
It does not work. Am I missing something?
Your syntax looks correct.
Are you specifying this AFTER the SQL Injection rules are loaded into your config? Common mistake.
If not that, then can only suggest you give more details. Including: