OWASP CRS 4.31.0 targets a decades-old PHP web shell, adds cryptographic proof for its own releases
The most deployed open-source WAF rule set shipped its monthly update on November 23, rolling in rules against the php2shell backdoor and keyless build-provenance attestations for its release archives.
The OWASP Core Rule Set just packed 30 changes into a single release. Version 4.31.0 hit the main branch of the v4 line, doing exactly what it's always done: catching a broad swath of web traffic while the maintainers quietly harden the supply chain underneath.
Hunting a classic web shell
The most concrete change here targets something almost ancient by internet standards: php2shell. It's a single-file PHP web shell that's been around forever, letting an attacker upload and run arbitrary files on a server that's already been cracked open.
Contributor @azurit built a cluster of rules around the tool's fingerprints. The obvious part blocks scanner User-Agent strings like php2shell-scan/109618, sudo3rs-PHP2Shell-Checker/1.4.0, and php2shell-verifier/1.0. Then it goes further. A later pull request also blocks the output of PHP's phpinfo() function when it shows up during php2shell activity, and it hardens the existing User-Agent protection so it's harder to evade. Detect the tool first, then catch its footprints.
A WAF can't stop a server from being compromised in the first place. But flagging the telltale responses of a shell that's already planted is a practical way to catch an intrusion mid-flight.
Evasion, a config footgun, and a trust upgrade
Command-injection evasion is a recurring headache for RCE detection. Attackers rewrite payloads to look benign, so the rules keep chasing. 4.31.0 adds one new trick and retunes two. The unix RCE rules now catch evasions that use an uninitialized variable as a suffix, such as $u. Two patterns moved up to Paranoia Level 3: the bare tilde-digit expansion and a positional-parameter branch split into a new PL3 rule, 932400. Keep in mind that Paroura... Paranoia Levels run from 1 to 4, PL1 is the default, and higher levels catch more but also trip on legitimate traffic. Those two evasions sitting at PL3 isn't a removal of protection. It's a tuning decision that hides the detection behind a stricter threshold that high-security deployments can opt into.
The change that probably matters most to people who care about supply-chain integrity is buried under a "chore" label. Release artifacts are now attested with build provenance. Previously, gh attestation verify returned a 404 for every CRS release asset. There was simply no machine-checkable proof of where those archives came from. GPG signing through a maintainer-run script guarding a private key is still the primary mechanism, but it leans on a manually protected key. The new workflow uses Sigstore and cosign for keyless provenance, generated by CI.
There's a subtle gotcha worth flagging. The -minimal archives have to be built and attested by the same workflow, not reproduced locally. Zip and tar files embed filesystem metadata like modification times and permissions, and that differs between a developer's machine and a CI runner. Get it wrong and the hash won't match what you actually downloaded. Keyless, verifiable provenance is a credible signal. However, at the same time, the actual code change is tiny, so the symbolic weight outsizes the diff.
Then there's the one breaking change, and it bites people who customize their allow-lists. Two rules now use exact pipe-delimited matching instead of substring matching: allowed HTTP methods in rule 900200 / tx.allowed_methods, and allowed HTTP versions in rule 920430 / tx.allowed_http_versions. The migration is a five-minute formatting fix. If you set either variable in crs-setup.conf, wrap each entry in pipes. So instead of a bare space-separated list you'd write something like |GET| |HEAD| |POST| |OPTIONS|. Miss it, and rules 911100 and 920430 will flag every single request. That effectively locks your WAF out of normal traffic. Not exactly a subtle footgun.
A large share of the rest of the effort went into killing false positives, the quiet work that keeps a WAF from blocking real business traffic. It dropped REQUEST_FILENAME inspection in rule 932260 to stop false positives on ordinary URL paths, fixed hyphen-related issues in 932180, and killed a duplicate entry in 930100. It also resolved some false positives around the response keyword "stack overflow (" and refactored case-insensitive matching to use (?i) instead of t:lowercase in several rules. Small changes. Barely noticeable. That's the whole point.
CRS has been shipping hard. The 4.30.0 release in October fixed three vulnerabilities: a path-based command-injection bypass, a charset allow-list bypass, and a charset shadowing issue, and it added detection for Active Directory tools and Velocity/FreeMarker injection. Two months earlier, 4.29.0 expanded shell-command detection against quote and backslash evasions. Against that pace, 4.31.0 feels less like a single dramatic vulnerability and more like steady maturation. The project is past its "prove it works" phase and into the harder, less visible work of running trusted infrastructure responsibly. That's arguably a better sign than any individual rule.
To upgrade, the release archives full and -minimal in both .tar.gz and .zip plus GPG signatures sit on the v4.31.0 release page. Verify them with the attached signature, and going forward with the new Sigstore provenance attestation via gh attestation verify. Before you upgrade, audit crs-setup.conf for tx.allowed_methods and tx.allowed_http_versions, and wrap those entries in pipes. Head here to the docs if you need the full installation walkthrough.
Head here to the GitHub release announcement.
