Vulnerability Assessment

Started by Vekseid, October 23, 2026, 04:34:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Vekseid


First, accolades go to Revelation for bringing the situation to my attention.

Second, as I linked in the down page, I have a Bluesky profile which will be used for future communications when things happen. This will be especially helpful if our host ends up DDOSed again. Knock on wood.



Technical Details

A really good overview of the php2shell bugs can be found here. A less technically dense explanation is here. Complete with dancing anime girl exploit video.

Elliquiy and BMR were vulnerable to the first bug in theory. Attacks on FPM require triggering OOM in the application itself (SMF/Mediawiki for Elliquiy and Xenforo for Blue Moon). This is a tall order as it will depend immensely on the vagueries of a site's configuration and software stack. No exploit against PHP-FPM using this bug has been confirmed.

We were vulnerable to the session exploit path of the second bug. We were not vulnerable to the INI diagnostics path. This combination is probably true for a rather lot of sites running PHP-FPM, which is the vast majority of PHP sites these days. The session exploit path requires knowledge of the application, however.

This means someone would have had to not just figure out this vulnerability, but tailor it to the software running here. That is, SMF for Elliquiy and Xenforo for Blue Moon. After that, it needs to compromise the same worker it's poisoned, before someone else grabs it or it gets culled. The AI scraping bots did something useful, for once. What took 41 seconds in Calif's video would have taken the better part of an hour on E or BMR.

Amazon claims probes were already being detected when I took the sites down, and even detected an attack four days before the patch was released.

A thorough analysis of the logs do not reveal any attack suggestive of PHP2Shell. Absence of evidence not evidence of absence, yadda yadda.

To be clear we do get attacked a lot. Mostly by people thinking we run Wordpress.

One of the IPs Amazon listed did access our server for some time up through the 18th, but it never made a post request, and there was too much time between requests to be an attack anyway. It seems to be an anonymizing service that rotates requests over a large number of endpoints, but it isn't Tor. It's too sticky to have been used for a coordinated attack from multiple IPs.



Some content creators are pushing misinformation

AI did not discover both bugs. The first bug was known since 2020, and speculated as a potential issue in 2024. The second bug was discovered with LLM assistance, while exploits from the first were being researched. I have... thoughts about the PHP team leaving bugs like this around in the name of backwards compatibility, but that's a different rant.

AI is certainly responsible for rapid active exploitation. It used to be days to months before exploits like this got released, by analyzing patched code. This time we have evidence that exploits were developed in a few hours after the attack was described. It isn't clear how successful these attempts were, if at all. There are complications to attacking most sites, as I mentioned above.

A lot of LLMs are hallucinating their exploits. This is funny.

The bugs are squishied. There are rumors going around that the patched version of php is still vulnerable, pointing to bugs that don't have any exploit path as proof. This doesn't mean there aren't more bugs like this to be found, but this particular pair of issues seems to be fixed.

PHP does not run 70% of the Internet. It runs on 70% of sites that report the software running it, which skews towards PHP rather heavily. Static site generators aren't going to tell you what runs them, for example, because nothing does. Even sites backed by software don't always report what's running them. Even php sites - expose_php has been off by default for a while now.

This was not a worst-case scenario for most sites. Per the above, most modern configurations are running PHP-FPM, and most attacks against it require tailoring it to the software in question. Certain configurations are more generally vulnerable, but these are less common, and more likely to be run by people who are paying attention.

Sites using mod_php were in a much worse situation. Also the Sun rises in the east, water is wet, and two plus two generally equals four in bases five and up. There are certainly millions of these, and likely not very well maintained and thus less likely to get patched. This is a massive botnet waiting to be awoken; I imagine someone is going to try something before the month is over, and it may make news before the year is up.



There might be more of these. As in, almost certainly.

I have written a killswitch script in case something like this happens again. It will swap the site with the down page you saw while E and BMR were down.

I apologize in advance for the disruption.

It's hard to say how long this phase of AI-assisted finds will last. Linux has been going through this for two years now. The past couple months have seen fewer serious vulnerabilities, and (much) more esoteric cases and outright slop. We'll see if that trend holds.

Anyway, thanks again, Rev.