Owasp-modsecurity ModSecurity
ModSecurity: Response Body Inspection Bypass
ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. From 3.0.0 until 3.0.17, src/transaction.cc compares a response Content-Type value against SecResponseBodyMimeType entries case-sensitively. A mixed-case response media type that is semantically equivalent to a configured lowercase type can therefore be treated as unconfigured, causing ModSecurity to skip RESPONSE_BODY inspection. An unauthenticated requester can then receive response content that a phase 4 rule would otherwise block, including sensitive error or debug data. This issue is fixed in version 3.0.17.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 3.0.0, < 3.0.17
Fixed in 3.0.17
Mitigation
Upgrade ModSecurity to 3.0.17 or later.
References
- Vendor advisory github.com/owasp-modsecurity/ModSecurity/secur…
- Patch github.com/owasp-modsecurity/ModSecurity/commi…
- Release notes github.com/owasp-modsecurity/ModSecurity/relea…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.