Offical Advisory for CVE-2021-35368
A missing phase 1 skip in the Drupal rule exclusion package caused three rules to always disable request body scanning for specific URI patterns. An attacker could exploit a backend vulnerability by appending trailing path info to a URI, bypassing the WAF's body inspection.
coreruleset.org
Published on coreruleset.org
There is a severe security issue in our rule set. It has been present since the release of CRS 3.1.0 and was recently brought to our attention.
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
Root cause
Likely the Drupal rule exclusion package lacked a phase 1 skip, so three rules that disable request body scanning were always active, and their URI pattern could be matched via trailing path info that the backend ignores.
Impact
If the backend ignores trailing path info, an attacker could bypass the WAF's request body inspection and exploit a backend vulnerability; if the backend uses path info correctly, the attack fails.
What the attacker needed
CRS with Drupal rule exclusion package; Backend ignores trailing path info; Backend has a exploitable vulnerability
The fix
The three rules that disabled request body scanning were removed, and a phase 1 skip was added to the Drupal exclusion package; users should upgrade to CRS 3.1.2, 3.2.1, or 3.3.2.
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 to block attacks. Here, a configuration mistake in the WAF's rules for Drupal meant that for certain web addresses, the WAF stopped checking the request body. An attacker could send malicious data in the body to a vulnerable application behind the WAF, and the WAF would not catch it.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.