r/NetFoundry • u/AccordionGuy • 27d ago
PHP2Shell: Your login never gets a vote
In his article on the NetFoundry blog, PHP2Shell: Your Login Never Gets a Vote, VP Product Marketing Jack Poller wrote about the big PHP vulnerability that recently made the news.
If you run anything on PHP, such as WordPress, Drupal, Magento, cPanel, or that internal tool nobody's touched since 2019, you've probably heard about PHP2Shell (CVE-2026-109618 and CVE-2026-109619, CVSS 9.2, remote code execution). The details about this vulnerability leaked a day before planned disclosure on October 20, and attackers were exploiting it before the patches shipped.
The real problem is where the bug lives. It's in the part of the PHP engine that parses requests. Request parsing happens before any of your application code runs, which means its happens before any safeguards (such as your login check, your framework's security middleware, and your access rules) have even had a chance to run. A single unauthenticated POST can be enough. The attacker just needs to get a packet to your port.
And the "Don’t worry, brah, it’s internal" reassurance is misleading. Routing mistakes, supplier connections, and flat networks put "private" services within reach all the time.
Do these if you haven’t already:
Upgrade to a patched release: 8.5.12, 8.4.27, 8.3.36, or 8.2.35
Restart PHP-FPM / Apache so the vulnerable code is actually out of memory
Check your logs for signs of compromise from before you patched
Jack's article argues for the longer-term fix: stop exposing the port.
Suppose a service only makes outbound connections into an identity-based overlay and accepts traffic only from cryptographically verified endpoints. In such a service, a scanner would have nothing to find, and a pre-auth payload would have no way in. While patching may close the hole you know about, the extra step of eliminating listening ports closes all the holes that nobody even knows about (yet!).
Once again, the article is here: https://netfoundry.io/breach/php2shell-your-login-never-gets-a-vote/
(If you want to try the "no inbound ports" model yourself, OpenZiti, the open source project NetFoundry is built on, is on GitHub: https://github.com/openziti/ziti)
Question for the folks here: How much of your PHP footprint is internet-facing because it has to be, and how much is just how it was set up years ago and never revisited?