Hackers Exploit PHP2Shell Vulnerabilities to Gain Root Access to Palo Alto Firewalls Using Fragnesia

Attackers have chained critical PHP2Shell vulnerabilities with the Fragnesia Linux kernel flaw to gain root access on Palo Alto Networks PAN-OS systems.

The campaign reportedly compromised 24 internet-facing firewalls before reaching an internal firewall management server, bringing the total to 25 compromised systems.

Hunt.io’s October 30 investigation cites Dream Research’s campaign analysis and says Palo Alto Networks’ Unit 42 subsequently verified the attacker’s tooling and reported results.

Hackers Exploit PHP2Shell Vulnerabilities

The findings mark a shift from isolated honeypot exploitation to reported production compromises, although evidence does not establish reliable mass exploitation across arbitrary PHP servers.

PHP2Shell involves CVE-2026-109618 and CVE-2026-109619, two use-after-free vulnerabilities rated CVSS 4.0 9.2. The flaws affect request cleanup and stale memory state during out-of-memory conditions.

hunt
HuntSQL query to find filenames exposed through open directories (Source: hunt)

PHP’s session.upload_progress mechanism provides an entry point by processing attacker-controlled multipart upload data before request initialization finishes.

The exploitation sequence manipulates heap memory, leaks addresses to bypass address space layout randomization, and forges a destructor pointer to invoke system().

Against PAN-OS, the attacker used a custom implementation targeting the appweb management server, with version-dependent offsets and calibrated heap layouts rather than an unchanged public proof of concept.

Fragnesia, tracked as CVE-2026-46300, then elevated execution from the web-server context to root.

Hunt.io attributes the chain’s reliability to the uniform PHP 8.0.30 build used by the targeted unpatched management environment, contrasting it with heterogeneous PHP deployments where attempts frequently caused memory exhaustion instead of command execution.

The operator identified approximately 19,000 exposed PAN-OS firewalls, fingerprinted around 5,000 responsive devices, and selected 240 targets using geographic and software-version criteria.

After initially rooting 24 firewalls, the attacker established a persistent reverse SSH tunnel into a US government-affiliated environment and compromised another internal management server.

Post-exploitation (Source: Hunt)
Post-exploitation (Source: Hunt)

Hunt.io also discovered panos_rce_poc.py and prce.py in an exposed directory at 130.94.67[.]235. Its broader investigation identified 616 PHP2Shell-related files, including scanners, shared exploit kits, development logs, and post-exploitation utilities.

However, exposed tooling alone does not demonstrate successful compromise. An aiscan framework used DeepSeek for orchestration and Kimi for visual tasks, while FOFA handled target discovery.

Researchers found evidence of AI-assisted reconnaissance and verification, but nothing showing that a model wrote the exploit itself. Hunt.io recommends patching or restricting PAN-OS management interfaces and updating standalone PHP deployments to fixed releases.

Where PHP patching must wait, disabling session.upload_progress.enabled provides a temporary mitigation. Defenders should investigate unusual multipart uploads, oversized PHPSESSID cookies, web-server processes spawning shells, and unexpected outbound connections.

Iocs

IP / hostASNHosting providerCountryRole
162.35.99[.]94AS19318InterserverUSConfirmed source, honeypot shells
15.204.59[.]70AS16276OVHUSConfirmed source, honeypot shells
2.59.133[.]151AS58212dataforest GmbHDEConfirmed source, GreyNoise
208.115.245[.]98:8088AS46475Limestone NetworksUSStaging cluster
208.115.245[.]99:8088AS46475Limestone NetworksUSStaging cluster
208.115.245[.]102:8088AS46475Limestone NetworksUSStaging cluster
185.242.106[.]140:8000AS42532SIA VEESPLVOperational toolkit
45.39.190[.]176:8000AS211273Cloud Software FZCOHKDev/build box, Moodle victim
130.94.67[.]235:80,8080AS154177Light Node LimitedJPPAN-OS repackage
45.83.180[.]113:19001AS62005BlueVPSEEIoC/kit tracker
15.204.59[.]70:81AS16276OVHUSPost-exploitation staging
162.35.99[.]94:8090AS19318InterserverUSMetabase/H2, separate exploit
85.121.179[.]129AS48753AlexHost SRLMDExploit-development host; lab info-leak working
34.146.20[.]31AS396982Google LLCJPShared 9bie kit, lab RCE
38.60.136[.]217AS154177Light Node LimitedFRShared 9bie kit, lab RCE
96.126.130[.]81AS149440EvoxtJPShared 9bie kit (variant), lab RCE
101.133.233[.]159AS37963Alibaba CloudCNShared 9bie kit plus scanner
144.217.161[.]236AS16276OVHCAStaging; govt finance targets
152.42.245[.]8AS14061DigitalOceanSGStaging; commercial targets
23.27.25[.]75AS149440EvoxtDEStaging; education/commercial
130.12.180[.]89AS202412OmegatechDEphp2shell attempted, failed; pivoted to other bug
45.225.135[.]53AS64107RACK SPHERENLSMTP/XXE operator; php2shell scanner only

Note: IP addresses and domains are intentionally Qdefanged (e.g., [.]) to prevent accidental resolution or hyperlinking. Re-fang only within controlled threat intelligence platforms such as MISP, VirusTotal, or your SIEM.

Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort. Explore for your team 

Tamilselvan
Tamilselvanhttps://cyberpress.org/
Tamilselvan is an Investigative cybersecurity journalist dedicated to breaking stories on ransomware cartels, data breaches, and state-sponsored espionage.

Trending News

Related Stories