How PHP 7.4 sites were protected from php2shell without shutting down
What happened next
- PHP2Shell: no successful attacks seen so far, exposed vulnerable machines down 67%
- PHP Foundation has one full-time employee; 73% of installs are past end-of-life
- PHP2Shell: overlapping discovery claims from Quarkslab, Calif, Wiz, OpenAI, Google
- PHP2Shell: two PHP remote code execution bugs fixed, PHP since 5.4 affected
- PHP Foundation runs on one full-time employee while PHP may power up to 70% of websites
On the night of October 21, 2026, the author’s sites were running PHP 7.4, which was not covered by the official patched versions for the two vulnerabilities known as php2shell[1]. The author kept the sites online by disabling `session.upload_progress.enabled` and configuring a WAF[2] to block multipart/form-data[3] requests outside the admin hosts. The setting was applied one server at a time after removing each from the ALB, and monitoring requests continued to return 200. A configuration error initially left the WAF rule ineffective; the author corrected it and verified that test requests returned 403. Attacks from five IP addresses were then blocked, and read-only checks found no signs of intrusion or tampering on the servers running php-fpm[4].
Sources
-
JPQiita JA
PHP脆弱性php2shell対応、7.4本番を止めずに守った夜と実際の攻撃





