ModSecurity discloses upload-bypass and crash flaws, one unpatched
One flaw has no listed fix; the pointer bug is reachable only if SecParseXmlIntoArgs is On or OnlyArgs.
Multipart filename* mismatch bypass in ModSecurity before 3.0.17
From 3.0.0 until 3.0.17, ModSecurity's multipart parser does not apply RFC 2231 filename* precedence used by common Go, Python, Node.js, and Java parsers. A remote, unauthenticated attacker can send a benign filename and a different encoded filename* so MULTIPART_FILENAME rules and the app judge different names. Backends that store files, check extensions, or infer type from the selected name can accept a name that skipped WAF inspection. PHP's native multipart parser is not affected.
What to do: Upgrade ModSecurity to 3.0.17. PHP's native multipart parser is not affected by this discrepancy.
| Product | Affected | Fixed in |
|---|---|---|
| ModSecurity | 3.0.0 until 3.0.17 | 3.0.17 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
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, ModSecurity's multipart parser does not apply the RFC 2231 filename* parameter precedence used by common Go, Python, Node.js, and Java application parsers. A Content-Disposition header can provide a benign filename parameter for ModSecurity and a different encoded filename* value that the backend prefers, causing MULTIPART_FILENAME rules and the application to make security decisions on different names. Applications that use the backend-selected name for storage, extension checks, or content-type inference can therefore receive a filename that bypassed WAF inspection. PHP's native multipart parser is not affected by this discrepancy. This issue is fixed in version 3.0.17.
One flaw has no listed fix; the pointer bug is reachable only if SecParseXmlIntoArgs is On or OnlyArgs.
Two high-severity flaws in ModSecurity let attackers bypass upload filters or crash server workers with crafted HTTP requests.
Today 1.6K readers · 2.4K views · 775 reads · all time 189K views