OWASP Coraza WAF: Cookie Parser Confusion
What fixes it
- 3.8.1github.com/corazawaf/coraza/v3, GoOSV
go get github.com/corazawaf/coraza/v3@v3.8.1
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
OWASP Coraza WAF is a golang modsecurity compatible web application firewall library. Prior to 3.8.1, internal/cookies.ParseCookies in internal/cookies/cookies.go handles boundary ASCII control characters and control-only or empty cookie names differently from several backend cookie parsers. An unauthenticated attacker can craft a Cookie header so Coraza indexes or drops a cookie under a different name or value from the backend application, causing rules targeting REQUEST_COOKIES or REQUEST_COOKIES_NAMES to miss application-visible attacker data. Exploitation depends on the backend parser and affected rule scope, and interior control characters with inconsistent backend behavior are outside this advisory's remediation. This issue is fixed in version 3.8.1.
Text from CVE List
Affected versions 2
- corazaaffected: < 3.8.1CVE List
- github.com/corazawaf/coraza/v3, Gofrom first release, fixed in 3.8.1OSV
References 4
- github.com/corazawaf/coraza/commit/0b940e197ad9983fb3aa36e84f1f81ff985461afFixvia CVE List
- github.com/corazawaf/coraza/commit/9f8521398d1ff023b958fad0b944cac265763866Fixvia CVE List
- github.com/corazawaf/coraza/releases/tag/v3.8.1Fixvia CVE List
- github.com/corazawaf/coraza/security/advisories/GHSA-g4qm-m288-5cp9Exploitvia CVE List