How Cloudflare WAF helps protect against phpAfterShell and other critical PHP flaws
Web page · https://blog.cloudflare.com/phpaftershell-waf-protection
phpAfterShell is a critical flaw in PHP's default session handler that can lead to code execution. Cloudflare WAF blocks it for all customers, including Free plans, and adds new rules for other PHP flaws fixed in the same release.
First seen by Oriel on .
AI summary
Cloudflare explains phpAfterShell, its critical PHP session-handling impact, and how Cloudflare WAF rules provide temporary protection while organizations upgrade affected runtimes.
- An interrupted session-file write can combine new and old serialized data, allowing PHP to deserialize attacker-controlled objects and potentially execute code.
- Exploitation requires controlled session data, a precisely timed write interruption, and usually an application deserialization gadget chain; depthfirst also used an undisclosed PHP memory-corruption bug.
- PHP fixed phpAfterShell and 16 other vulnerabilities in versions 8.2.36, 8.3.37, 8.4.28, 8.5.13, and 8.6.0.
- The PHP Remote Code Execution Attack rule covers phpAfterShell on Free, Pro, Business, and Enterprise plans, enabled by default with Block action.
- Paid plans receive three PHP-FPM and SOAP rules in Log mode, while Cloudflare emphasizes that WAF coverage cannot replace upgrading PHP and restarting workers.
#php #cloudflare waf #web security #php-fpm
Generated by gpt-5.6-sol. Check the original for details.
Aliases
| Source | External ID | URL |
|---|---|---|
| Cloudflare Blog | 01M7X76K1JK00SF9K4YN83WANQ | https://blog.cloudflare.com/phpaftershell-waf-protection/ Read discussion |