News for hackers. Stuff that matters.
Re:Upcoming Critical PHP Security Release by jeffbee on Tuesday October 20, 2026 @11:08PM (#50175601)
I am seeing a lot of words like "unconditional" thrown around but I remind that defense in depth is a thing and you can practice it, or should have been practicing it. You can, for example, disable the `system` function of PHP altogether. You can also arrange for your PHP to be running in a situation where there's no shell, or any other program, to exec. Or for that matter a filesystem.
Re:Upcoming Critical PHP Security Release by Operyl on Tuesday October 20, 2026 @11:11PM (#50175622)
It's a RCE bug, it does not matter if you disable php functions. It's not arbitrary PHP execution, it's an exploit chain resulting in arbitrary code execution.
Re:Upcoming Critical PHP Security Release by afdbcreid on Tuesday October 20, 2026 @11:14PM (#50175642)
Indeed, an attacker theoretically can access anything the PHP process has permission to access. However even without limiting permissions (also a good idea) that means the simple/published exploits won't work on your server, and there's a high chance criminals will look for other targets, assuming you're not targeted.
Re:Upcoming Critical PHP Security Release by reorder9695 on Wednesday October 21, 2026 @03:27AM (#50177218)
Presumably this makes SELinux enabled distros like fedora are significantly less vulnerable, as the PHP process can only access files in a few contexts?
Re:Upcoming Critical PHP Security Release by jeffbee on Tuesday October 20, 2026 @11:13PM (#50175635)
You know how "resulting in a shell" works?
Re:Upcoming Critical PHP Security Release by Operyl on Tuesday October 20, 2026 @11:51PM (#50175885)
I can guarantee you that it's not because someone left system() enabled, it's much lower than that.
Re:Upcoming Critical PHP Security Release by jeffbee on Wednesday October 21, 2026 @01:34AM (#50176463)
What is lower than what? This exploit causes the flow of control to reach zend_call_function with the argument "system". It works at the PHP level and having disabled that function is an absolute defense against the exploit.

It isn't 1998 any more and you can no longer just inject shell code on the heap.

Re:Upcoming Critical PHP Security Release by Operyl on Wednesday October 21, 2026 @01:36AM (#50176470)
The current PoC in the public gets there via that method, and even then you don't need to call system() alone to cause hell on a host...
Re:Upcoming Critical PHP Security Release by jeffbee on Wednesday October 21, 2026 @01:40AM (#50176498)
The point of this thread, and of defense in depth generally, is to limit the scale of "hell" and to trivialize the impact of "on the host".
Re:Upcoming Critical PHP Security Release by Operyl on Wednesday October 21, 2026 @01:43AM (#50176512)
Look, at the end of the day, every major security researcher is going "oh shit" and no amount of tweaks to your configuration is going to limit the blast radius in a way that will actually matter. You're going to need to update PHP, that's the _only_ solution to this problem.
Re:Upcoming Critical PHP Security Release by bulatb on Wednesday October 21, 2026 @12:55AM (#50176245)
By corrupting memory and causing the CPU to jump from the intended instruction to a different one controlled by the attacker, at which point their instructions control what your process does next. Getting shell does not mean getting it to feed a spicy string to system(), it means tricking something in the process into overwriting memory with bytes that, if read as instructions, tell the CPU to make a system call to spawn a different process running arbitrary code.

You could do that to an internet-connected toaster with a JPEG. The system() function has nothing to do with it.

Re:Upcoming Critical PHP Security Release by account42 on Thursday October 22, 2026 @04:28AM (#50192742)
"Shell" in security parlance is just a standin (or the standard benchmark for) for arbitrary unrestricted code execution. If you can launch a shell you can do anything the process user can.
Re:Upcoming Critical PHP Security Release by calvinmorrison on Tuesday October 20, 2026 @11:36PM (#50175777)
no idea why this is downvoted. PHP runs typically on linux machines. If you depend on a language feature to prevent 'exploit' and don't utilize the operating systems features to limit access to data.

Shell access is not good, but in many places that wouldn't be the end of the world either.

Rethink your strategy

Re:Upcoming Critical PHP Security Release by Operyl on Tuesday October 20, 2026 @11:52PM (#50175894)
If your PHP application accesses a database, you've got exfiltration, it doesn't matter in this case. Unless your PHP application is just echoing non sensitive data (i.e. rendering md files)...
Re:Upcoming Critical PHP Security Release by calvinmorrison on Saturday October 24, 2026 @06:37PM (#50226135)
perhaps, or you could not give your application access to user data without authentication. there are strategies.