tl;dr: very significant PHP vulnerability, but the wikis are ok
As a precaution against the PHP2Shell vulnerability announced today, we turned off the webservers for all of the wikis hosted by Weird Gloop, until a patch was released 2 hours ago. This 13-hour downtime was the longest outage we’ve ever had. However, thanks to very aggressive caching, we were able to keep about 94% of wiki pageviews serving correctly, even with no database or PHP running.
I’m a bit biased, but I think PHP2Shell is potentially the most significant security vulnerability in the history of the internet. Nearly all of the wikis, blogs and random-websites-from-2005 that you know and love are written in PHP. This vulnerability has made it trivial for an attacker to send a payload to any unpatched PHP website, giving them the ability to execute arbitrary code, install other malware, exfiltrate the database, etc. If you run a PHP website and are still not sure whether to take it offline, please do it now. This is the big one.
In the last few months, AI-assisted cybersecurity tooling has gotten scary-good at finding vulnerabilities in old codebases, and chaining them into working exploits. It’s a scary time to be running a giant internet system on a legacy codebase. I think the safest posture going forward is to assume that there are probably a dozen vulnerabilities of similar magnitude waiting to be found, and that we should optimize to make that bumpy ride less bumpy:
- Do a better job caching wiki content at the Cloudflare level so that things mostly work for readers, even if the webserver needs to go offline again. I said earlier we were able to save about 94% of pageviews, but I think we can get that closer to 99% with some effort.
- Work closely and creatively with external orgs (cybersecurity groups, PHP Foundation, Wikimedia Foundation, Internet Archive, etc) to support their efforts protecting and preserving the internet
- Backups! Always more backups.
If you aren’t a developer, but you have accounts on any old forums and websites, you should immediately rotate your passwords and use 2FA on any accounts you care about. IMO this PHP2Shell thing has permanently changed 2FA from “good advice” to “hard requirement” – based on what I’m seeing so far, it’s extremely likely that a bunch of old PHP fansites and forums have had their databases compromised, which means emails, usernames and hashed passwords might be out in the open. And please be forgiving and understanding to the websites you use, if they have any downtime or degraded services. We’re all trying to navigate this crazy situation.
This has been a rough day for anyone building stuff on the internet. Nobody got any sleep! I am grateful for the effort from the patchwork of wonderful humans that made this not a complete disaster. Ondřej Surý has been quietly packaging PHP for Debian/Ubuntu for 20 years, and is the personification of that famous XKCD. Eric Mill and the rest of the WMF security team have done an excellent job communicating the severity of the issues to the third-party MediaWiki community, despite (obvious) constraints on what they could share.
I am deeply worried about the future of the open internet. Nearly every development since 2023 has been bad: LLM scrapers wasting all of our resources, the proliferation of low-effort vibe-coded tools using public APIs, and now, the wide availability of critical vulnerabilities in core building blocks of the internet. The frog is boiling, and so far, the biggest loser in all of this is the public commons, and the little guys. We are doing fine, but I’m nervous that some of the websites that went offline today might never come back.
This is an insane environment to be running 500 million pageviews a month of video game wikis, with like 8 staff! We do have some very good security people among those 8 folks, but the only way we’re going to win long-term is by sharing what we know, and relying on the people in the surrounding ecosystem that know things we don’t. That’s pretty based and wiki-pilled if you ask me ❤️