Cve 2026 21876 Root Cause Reproduction Impact And Lessons Learned
A flaw in OWASP CRS rule 922110 meant that when a multipart request contained several parts, the charset value of each part overwrote an internal variable, and only the last part's charset was checked against the allowed list. An attacker could add a final multipart part with a valid charset to make the rule pass, allowing a request with a disallowed charset to bypass the WAF.
Published on infosecwriteups.com
…or how a subtle flaw in OWASP CRS can turn a trusted WAF rule into a blind spot, allowing crafted payloads to evade detection.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could bypass the WAF's charset check, potentially allowing malicious payloads that rely on a disallowed charset to reach the application.
What the attacker needed
Target uses OWASP CRS < 4.22.0/3.3.8; Attacker can send multipart requests
The fix
The vulnerability was fixed in OWASP CRS versions 4.22.0 and 3.3.8.
How it was found
- Send a multipart request whose parts include a disallowed charset.
- Add a final multipart part with a valid charset.
- Observe that the WAF rule passes because only the last charset was checked.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A web application firewall (WAF) inspects incoming requests and blocks ones that look malicious. This report shows that a rule in a widely used WAF rule set checked only the last part of a multipart request, so an attacker could hide a bad part earlier and add a harmless part at the end to pass the check.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.