Everything Is a Web Application, Including Your Firewall
About 5 min read
securityaisoftwarehardware
Palo Alto Networks disclosed that attackers were exploiting two newly disclosed PHP vulnerabilities, identified as CVE‑2026‑109618 and CVE‑2026‑109619, against the management interfaces of its PAN‑OS firewalls that were exposed to the internet. The exploitation was first reported on October 28, after a premature leak of details on October 20 and an emergency patch from the PHP project the following day. Both flaws allow unauthenticated code execution on the underlying web server, turning the firewall’s administrative console into a remote shell for the attacker.
The vulnerabilities are not trivial to weaponise without additional knowledge of the target system, but they become far more dangerous on network appliances that run identical, often outdated software stacks. In the case of PAN‑OS, the firewalls were shipped with end‑of‑life PHP versions 8.0.30 and 7.4.33. Israeli security firm Dream, in collaboration with Palo Alto Networks, recovered firmware images from the compromised devices, decrypted them, and extracted the PHP libraries. By analysing those libraries the researchers built precise memory‑layout profiles for nine different software versions, enabling the attackers to craft exploits that bypass address space layout randomisation (ASLR) on the specific binaries used in the firewalls.
The attack chain began with the PHP2Shell technique, which abuses the two memory‑safety bugs in PHP. CVE‑2026‑109618 stems from uninitialised request memory left behind when PHP aborts a malformed request, while CVE‑2026‑109619 involves a dangling pointer to freed memory. The exploit triggers these bugs by sending a specially crafted multipart upload that forces PHP to exceed its memory limit while parsing the request, even though the request body can be well under the default 8 MB post‑max size. By nesting empty file fields, the attacker can cause PHP to allocate far more memory than the actual payload, exhausting the default 128 MB limit and exposing the vulnerable code paths.
To defeat ASLR, the exploit leaks the base address of the libphp.so library through a Set‑Cookie header, allowing the attacker to calculate the exact offsets needed for code execution. Once code execution is achieved, the attackers chained the PHP2Shell foothold with a separate Linux kernel vulnerability, known as Fragnesia (CVE‑2026‑46300), to obtain root privileges. This combined attack compromised 25 systems – 24 firewalls and one management server – across the United States, Japan, Taiwan and South Korea.
The incident highlights a broader issue: many critical network devices expose web‑based administrative interfaces that are effectively web applications, yet they are often overlooked in traditional web‑application security programmes. Because appliances run the same binary across all installations, an attacker can study a single instance, develop a reliable exploit, and then deploy it at scale. The lack of diversity in software versions eliminates the protective effect of ASLR that is present on ordinary web servers, where each instance may have different memory layouts.
Technical analysis by VulnCheck confirmed that the PHP bugs could be exploited on ARM64 platforms and on x86 systems lacking ASLR. Public exploits that bypassed ASLR on x86‑64 were scarce, and the only one verified by VulnCheck succeeded against a single PHP build. VulnCheck’s own proof‑of‑concept combined a memory leak with the PHP2Shell bugs to achieve code execution even when ASLR was enabled, demonstrating that the vulnerabilities are viable under realistic hardened configurations.
The complexity of the HTTP protocol contributed to the difficulty of defending against the attack. HTTP allows chunked transfer encoding and on‑the‑fly decompression of request bodies, which can make it hard for servers to predict memory requirements. In the PAN‑OS case, an Nginx reverse proxy in front of the firewall buffered chunked request bodies, unintentionally breaking some public exploit chains but also illustrating how middleboxes can interfere with detection mechanisms. Traditional web‑application firewalls (WAFs) were insufficient because file upload functionality is essential for many legitimate applications, and outright blocking of uploads would disrupt normal operations.
In response, Palo Alto Networks issued guidance urging administrators to remove internet‑facing access to management interfaces and to restrict those interfaces to trusted internal IP ranges. The company also recommended reviewing and hardening any deployed WAFs to understand their actual coverage and limitations. The incident underscores the importance of inventorying all web‑exposed administrative consoles, not only on firewalls but also on other network equipment, and applying strict network‑level access controls.
Risk assessment for these vulnerabilities proved challenging. The PHP project assigned a CVSS 4.0 score of 9.2 to both flaws, while Fortinet’s PSIRT rated them at 9.8 under CVSS v3. Palo Alto initially gave the issue an 8.7 rating and a moderate urgency, later raising it to 9.2 Critical with the highest urgency on October 27, after confirming active exploitation. The disparity in scores and the limited success of public proof‑of‑concepts made it difficult for defenders to prioritize remediation based solely on vulnerability metrics.
The episode has been incorporated into the curriculum of the SANS SEC522 course, “Application Security: Securing Web Applications, APIs, and Microservices,” taught by Dr. Johannes Ullrich. The course, scheduled for December 14‑18, 2026 at the SANS Cyber Defense Initiative in Washington, D.C., and online, uses the PHP2Shell case to illustrate how to assess risk, understand the protective role of ASLR, and recognize why appliances remain softer targets. Participants will study HTTP fundamentals, including HTTP/2 and HTTP/3, explore file‑upload handling, API security, and AI endpoint protection across 17 hands‑on labs and a “Defend the Flag” capstone.
Overall, the PAN‑OS PHP2Shell incident serves as a stark reminder that virtually any device with a web‑based management interface can be treated as a web application and must be secured accordingly. Organizations should audit their exposure, enforce strict access controls, keep underlying software components up to date, and understand the nuances of the protocols they rely on. Failure to do so leaves critical infrastructure vulnerable to sophisticated, low‑noise attacks that can bypass conventional defenses and achieve remote code execution without authentication.
A new technique called Weight2Shell has been disclosed by cybersecurity researchers, which allows artificial intelligence (AI) models to produce different behavior on different machines, eve…
Season 2: Legacy for Gears of War: E‑Day launches tomorrow, marking the franchise’s twentieth anniversary and offering a wave of new content for both veteran players and newcomers. The updat…
Hela: of Mice & Magic is set to launch on December 1, 2026 for Xbox Series X|S, and the title will be available on day one through Xbox Game Pass. The game presents an open‑world adventure i…