GHSA-g4qm-m288-5cp9: Coraza has Cookie Parser Confusion
Coraza’s cookie parser (internal/cookies.ParseCookies) does not strip ASCII control characters (CTLs) from the edges of a cookie name/value before they’re matched against REQUEST_COOKIES / REQUEST_COOKIES_NAMES. When a CTL sits directly next to the = separator, Coraza absorbs it into the adjacent name or value, while several backend cookie parsers trim it away — so the WAF and the application disagree about the cookie it just received.
References
- github.com/advisories/GHSA-g4qm-m288-5cp9
- github.com/corazawaf/coraza/commit/0b940e197ad9983fb3aa36e84f1f81ff985461af
- github.com/corazawaf/coraza/commit/9f8521398d1ff023b958fad0b944cac265763866
- github.com/corazawaf/coraza/releases/tag/v3.8.1
- github.com/corazawaf/coraza/security/advisories/GHSA-g4qm-m288-5cp9
Code Behaviors & Features
Detect and mitigate GHSA-g4qm-m288-5cp9 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →