Chained PHP2Shell Exploit Roots 25 Servers, Including US Government Servers
Posted by 882542F3884314B 7 hours ago
Comments
Comment by athrowaway3z 4 hours ago
I'm actually somewhat surprised at the clumsiness here.
I'm a complete amateur that had DeepSeek build a PHP2Shell exploit, and once the stealmybitcoin site went up and set an upload limit, i had DeepSeek try to shrink/amplify it.
DeepSeek couldn't find anything but a 2x reduction, but reading the report of how it was done - https://github.com/KillaBoi/StealMyBitcoin-PoC - I was somewhat surprised it didn't find it, and equally horrified at PHP allowing such a memory bomb of creating nested objects by parsing `f[0][x][x]...` from random requests.
Point being; these aren't amateurs but i kind of expect most well funded pros to have found this method to avoid sending massive filenames and session progress data.
Comment by rootsudo 3 hours ago
Comment by iririririr 1 hour ago
Comment by colemannugent 2 hours ago
Comment by tiberious726 9 minutes ago
Comment by theMMaI 2 hours ago
Comment by elevation 2 hours ago
Comment by tredre3 1 hour ago
- Rust didn't exist at the time
- Go didn't exist at the time
- nodejs didn't exist at the time
- Java and Python likely used too much resources for a once-in-a-while used GUI
Irrational hatred aside, that's literally what PHP was designed for.
Comment by cesarb 46 minutes ago
Perl?
Comment by seanhunter 11 minutes ago
Perl 5 was released in 1994. Palo Alto Networks was founded in 2005, so Perl 5 was certainly available when they built their first products and would have been a superior choice to either PHP or Perl 4.
Comment by topham 16 minutes ago
Perl 4 specifically of course though.
Comment by clbrmbr 1 hour ago
Comment by xxmarkuski 4 hours ago
Comment by Topfi 3 hours ago
Comment by m3rc 3 hours ago
Comment by toomuchtodo 2 hours ago
Comment by rotis 2 hours ago
Anyway from their webpage: > We work directly with heads of state, ministries, national cyber authorities, and the senior officials responsible for executing national strategy.
So I presume he has and provides contacts. Just the usual one hand washes the other. Nothing nefarious I'm sure.
Comment by ungut 1 hour ago
Comment by cookiengineer 4 hours ago
Just for context, that is the type of evil we're talking about here.
A German comedian made an episode about it [1]
Comment by loeg 52 minutes ago
Wat
Comment by tensegrist 5 hours ago
Comment by Vaushite 4 hours ago
I am very curious to hear why you thought it was overblown.
There was also that other guy who posted "steal my bitcoin" on a vulnerable PHP server with the private keys to prove it was overblown, and got his bitcoin stolen within a day.
Comment by jerf 3 hours ago
19 hours: https://stealmybitcoin.com/
Part of the confusion is that the initial PR for the release made it sound like there was a ready-to-go exploit that was just push button, get shell on any PHP server in the world. That turned out not to be the case, as evidenced by the fact that the number was 19 hours and not 19 minutes.
But the fact that it was 19 hours and not "never" also does provide a data point that everything that was vulnerable really was vulnerable, it just may not have been quite as vulnerable as it was initially presented. Still plenty vulnerable, of course.
My point here being that the initial 24 hours were very confusing and I think it's worth remembering that and giving people grace for it. Even now, I've heard rumors of an exploit that does work on all boxes without making changes for a specific target but I'm not actually sure whether that exists or not. (Any further info welcome.)
Comment by NitpickLawyer 3 hours ago
Comment by jerf 2 hours ago
Comment by kylestanfield 1 hour ago
Comment by cowlevel 3 hours ago
I don't see what was confusing about the initial 24 hours. GP was correct, the description of the bug made it clear it was a very high risk.
Comment by beepbooptheory 3 hours ago
Comment by cowlevel 3 hours ago
Comment by jstanley 4 hours ago
It could be overblown if it's not true. The amount of time it took for anyone to claim the Bitcoin from the supposedly-vulnerable PHP site convinced a lot of people that the vulnerability was not as bad as claimed.
Comment by tkz1312 4 hours ago
Comment by lifeisloving 4 hours ago
This was not a scary vuln at all.
Comment by literalAardvark 1 hour ago
It's a horrible vuln and I don't understand what's with all the flat infosec society coming out of the woodwork.
The challenge server had vibe coded infra that made it hard or impossible to hack, but it was a configuration that can't be used in production and no one uses ( it was deployed as a PHP static content server instead of a dynamic site generator )
Comment by pixl97 28 minutes ago
Ha, while most of these are probably humans that are just being driven mad by AI, I wonder how long before we get AI driven botnets that try to under play any security vulns to give them more time to take over and collect assets for themselves?
Comment by Urd- 3 hours ago
Comment by lifeisloving 2 hours ago
This is a seperate chained exploit itself, seemingly executed by a nation stae. There are thousands of exploits infiltrating web servers around the world daily, and they arent php2shell.
You only care about this because it falls into a weird viral narrative about "AI saftey".
Comment by literalAardvark 1 hour ago
Chained just means they used php2shell to run a local privilege escalation.
Comment by lifeisloving 46 minutes ago
Comment by cowlevel 3 hours ago
And would you stake your bitcoin on it?
Comment by devin 1 hour ago
Comment by lifeisloving 44 minutes ago
Comment by 1718627440 4 hours ago
Not having made the claim (took down my website too), but because PHP is not connected directly to the network. While you cannot prevent PHP from being overtaken from inside the PHP program, you can prevent PHP being executed on malicious data by configuring the webserver. It's overblown in the sense that it would be even more serious if the same happened in the webserver itself.
Comment by cowlevel 3 hours ago
Comment by 1718627440 3 hours ago
Comment by cowlevel 2 hours ago
Comment by 1718627440 2 hours ago
Comment by cowlevel 2 hours ago
> you can prevent PHP being executed on malicious data by configuring the webserver.
Comment by 1718627440 1 hour ago
Comment by cowlevel 1 hour ago
Comment by 1718627440 43 minutes ago
Comment by kxrm 36 minutes ago
You are spreading misinformation then.
The configuration change was never a full protection from this vulnerability because the problem is with how PHP processed the request well before the configuration or your PHP code was executed.
Comment by 1718627440 27 minutes ago
?
> because the problem is with how PHP processed the request well before the configuration or your PHP code was executed.
That's what I wrote? You can't do anything once PHP executed. It could still be worse, because you can still prevent PHP from running, because there is still the webserver before. If it were in the webserver itself, you couldn't do anything, short of stopping the server from running.
> The configuration change was never a full protection from this vulnerability
It is, if the configuration change prevents PHP from running. That's how you could say it is overblown. You are not vulnerable if you don't run PHP.
Comment by jstanley 2 hours ago
Comment by jrflo 3 hours ago
Comment by lifeisloving 4 hours ago
The whole thing was basically a psyop, whether intential or not idk but Califs research was funded in part by OpenAI so there's that.
Comment by robby_w_g 3 hours ago
It was OpenAI's marketing that hyped up the vulnerability to the point that guys on my hockey team saw it in the news and were asking about it. There doesn't need to be mainstream articles about it, these kinds of vulnerabilities happen every year. Just patch and move on.
Comment by literalAardvark 1 hour ago
Random bloggers jumped on it and said dumb blogger things. That is all.
This is one of the worst vulns ever and the security response from the people who actually secure things for a living was entirely warranted regardless of whether some blogger thought it was the AI apocalypse or not.
Comment by cowlevel 3 hours ago
Comment by Topfi 3 hours ago
Mainly saw the severity in the economic impact of having to quickly patch so much, but taking offline being the right choice given the risk, along with of course all the decades old, never patches, blogs being botnet targets someday in the future, akin to Wordpress being commonly used for Ransomware hosting for similar reasons. And of course hopefully learning something from the timeline and leak for future disclosures. Feel things need to generally change from the status quo, barely has changed since the 2015 Google/MSFT squabble...
Comment by rkozik1989 5 hours ago
Comment by aaomidi 4 hours ago
We need more of this.
Comment by codegeek 4 hours ago
Comment by jdiff 4 hours ago
And the vendor's firewall software runs an unpatched version.
Comment by sznio 3 hours ago
Comment by theMMaI 2 hours ago
Comment by colemannugent 2 hours ago
Comment by j45 40 minutes ago
Comment by bix6 3 hours ago
Comment by brcmthrowaway 1 hour ago
FPGA stocks? DV is about to become hot again..
Comment by tamimio 3 hours ago
Comment by kekub 2 hours ago
Comment by npn 2 hours ago
I just do not understand. CC is not the sole harness in the world, why the attackers insist to use it.
Comment by paxy 3 hours ago
Comment by ofjcihen 3 hours ago
Believe it or not in cybersecurity there are many considerations in how “bad” a vulnerability is.
Comment by pixl97 57 minutes ago
Comment by jvandijk 3 hours ago
Comment by lunargamma676 5 hours ago
Comment by cowlevel 3 hours ago
Comment by bell-cot 3 hours ago
Comment by cowlevel 3 hours ago
Comment by bell-cot 2 hours ago
Maybe compare with https://github.com/php/php-src/blob/master/php.ini-developme..., too.
Then similar for your web server (Apache, nginx, whatever).
EDIT: About your "would've seemed adequate before this" - I dug up a copy of a PHP v5.2 php.ini file (2-ish decades ago). That file begins thus:
;;;;;;;;;;;
; WARNING ;
;;;;;;;;;;;
; This is the default settings file for new PHP installations.
; By default, PHP installs itself with a configuration suitable for
; development purposes, and *NOT* for production purposes.
; For several security-oriented considerations that should be taken
; before going online with your site, please consult php.ini-recommended
; and http://php.net/manual/en/security.php.Comment by cowlevel 1 hour ago