Comment by richardbarosky
14 hours ago
Here's what I did at least.
I initially updated the following php.ini setting and verified that it updated via phpinfo(). I understand this to be only a possible mitigation (see below).
session.upload_progress.enabled = Off
file_uploads = Off
According to someone stating they are one of the PHP release managers:
"INI settings alone won't protect you. You need to patch PHP."
https://www.reddit.com/r/PHP/comments/1xb2utu/comment/phyu5m...
I use Apache, and added an htaccess rewrite rule in my base directory to block all requests containing multi-part headers. Rewrite rules can also be added into Apache virtual host blocks. Accepting file uploads are not a critical function of the app in my case. This blocks multi-part form requests before they reach PHP.
RewriteCond %{HTTP:Content-Type} multipart/form-data [NC]
RewriteRule ^ - [F,L]
And verified the non-block vs. block case. https://freeimage.host/i/nOqumyN
I'm continuing to learn about the situation and may take the server offline as I learn more.
The writeup I found here:
https://jackalsyn.com/posts/php-up-2026.html
Content from a couple of my ChatGPT 6 Pro sessions about the issue:
https://chatgpt.com/share/6ad89ea3-b2f0-83ea-9c4c-2ecf5cc24b...
https://chatgpt.com/share/6ad8ad3d-3f6c-83e9-abf0-41da8a0d65...
The vulnerability was rated 9.2 (critical) out of 10 under CVSS v4.0 by PHP developers,[1] while security firm watchTowr rated it a full 10.0.
On nginx a stop-gap measure is to block all multipart posts before they reach the php code.
Add this to nginx.conf (or drop as a text file into /etc/nginx/conf.d/) :
Then in every 'location /' block for every hosted server:
Then restart nginx.
I've tested the CVEs on PHP 8.5.11 and `session.upload_progress.enabled = Off` definitely increases safety but it doesn't guarantee it. Use of plugins can open up additional exposure.
If you're behind CloudFlare apparently they'll cover you, issue is, some people don't have their web servers configured to block traffic NOT from CloudFlare, so it is kind of a bandaid that's falling off I guess.
I'd check this carefully and make sure you have the WAF enabled. I seemed to always have plenty of weird looking PHP and WP requests happily forwarded by CloudFlare to my servers.
Users on the Free plan have access to the Cloudflare Free Managed Ruleset, a subset of the Cloudflare Managed Ruleset.
https://developers.cloudflare.com/waf/get-started/
The only PHP project I had running I took down, it was literally just a web UI for my SQL databases on said box, which wasn't really full of anything meaningful, just old old Discord chatbot logs from forever ago, but still didnt want someone scraping those, so I removed php from the box entirely, I didnt even have a domain for the box so not super worried.
Everything else I use is not on PHP.
They only block most common attempts they have seen.
They can't cover you. Only proper fix is updating your server.
the writeup you found has been updated to reflect the fact that the exploits provided by the author are not as severe as initially thought.
This suggests they might not have been exploits related to the CVE in question, so what you did might not be enough, be careful.
This makes me wonder if they really vibe coded the whole blog post without verifying anything by themselves. This should stop.
I downloaded the thing, was going to try it out to verify. But the checksum didn't match (probably just a random string generated by an LLM). I left it at that and turned off php.
and for caddy
Next will be block everything but GET, then static site copy, then administratively down