You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
libModSecurity3: REQUEST_HEADERS names are treated as case sensitive #3441
changed the title [-]libModSecurity3: `REQUEST_HEADERS` names are treated as case insensitive[/-][+]libModSecurity3: `REQUEST_HEADERS` names are treated as case sensitive[/+]on Sep 13, 2025
I think this happens in case of exclusion handling, I mean if the admin adds an exclusion with ctl:ruleRemoveTargetById action, then the target will be case sensitive.
I think the behavior is correct if we add a rule like this:
Activity
[-]libModSecurity3: `REQUEST_HEADERS` names are treated as case insensitive[/-][+]libModSecurity3: `REQUEST_HEADERS` names are treated as case sensitive[/+]airween commentedon Sep 13, 2025
Hi @EsadCetiner,
thanks for reporting this.
I think this happens in case of exclusion handling, I mean if the admin adds an exclusion with
ctl:ruleRemoveTargetByIdaction, then the target will be case sensitive.I think the behavior is correct if we add a rule like this:
and send a request like this:
In this case I got this result:
But indeed the explained behavior is wrong.
Thanks again, I'll check this soon.
airween commentedon Sep 16, 2025
@EsadCetiner could you take a look at the new regression tests under #3442? See the commit.
Also if it's possible, could you try the patch too?
EsadCetiner commentedon Sep 17, 2025
@airween Thanks for the quick fix, I just tested it locally and I can confirm the issue is fixed.
airween commentedon Sep 18, 2025
Closing as completed via #3442.
fix: add workaround for libmodsecurity3 bug
fix: false positive loading favicon exactly at `/favicon.ico` with su…