Tag: Wiper

PHP2Shell to root: how attackers turned Check Point gateways into footholds

PHP2Shell to root: how attackers turned Check Point gateways into footholds

Starting October 30, 2026, attackers sent crafted web requests to the Mobile Access portals of Check Point gateways at Israeli organizations. In the worst case Check Point describes, a few steps later they were root on the firewall, had a backdoor that can tamper with its logs, were on the VMware ESXi host over SSH, and ran a wiper there.

Check Point Research published the details on November 12, 2026. The chain uses two bugs: PHP2Shell, a pair of flaws in PHP itself that PHP fixed on October 21, and CVE-2026-123039, a Check Point bug where a root daemon on Gaia OS accepts commands from anyone who can reach a world-writable socket in /tmp. CISA added CVE-2026-123039 to its Known Exploited Vulnerabilities catalog on November 13 with a due date of November 16. Check Point says it saw exploitation against “a couple of dozen customers.”

Severity: critical. The local bug on its own is a 7.8, but paired with an unauthenticated web RCE on an internet-facing portal it turns your perimeter device into the attacker’s best foothold.

At a glance

  • CVEs: CVE-2026-109618 and CVE-2026-109619 (PHP2Shell, initial access), CVE-2026-123039 (Gaia DynamicCLI local privilege escalation to root).
  • Scores: the PHP security team rates CVE-2026-109618 CVSS v4.0 9.2, and secondary reporting gives CVE-2026-109619 the same 9.2. CVE-2026-123039 is CVSS 3.1 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) from Check Point as the CNA, with CWE-862 and CWE-732. I could not load the NVD record on November 15; Rescana reported it as still undergoing analysis.
  • Affected (sk1000362): Gaia R82.20, R82.10, R82, R81.20, R81.10 and R81 on Force Firewalls, Management and Log Servers, Multi-Domain Security Management and Multi-Domain Log Server, and Maestro Orchestrator. Spark Firewalls and Smart-1 Cloud are not affected.
  • Fixed in Jumbo Hotfix Accumulator: R82.20 Take 14, R82.10 Take 52, R82 Take 132, R81.20 Take 174, or later. No fixed take is listed for R81.10 or R81, both end of support.
  • Exploited: yes. Wave 1 from October 30 (Israeli organizations, some destructive), wave 2 from November 2 (multiple countries and sectors). In CISA KEV since November 13.
  • Attribution: unconfirmed. Check Point Research explicitly declines to assess it with high confidence.
  • Who should care: anyone running Check Point Mobile Access on the internet, and anyone whose firewall can SSH into ESXi.

What we know

PHP2Shell landed on October 21, 2026. The PHP security team shipped PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12 and said updating was “the only complete mitigation.” The same day CISA told organizations to inventory PHP everywhere, including PHP bundled inside other products, and it added both CVEs to KEV on October 26.

Check Point’s Mobile Access portal is exactly that kind of bundled PHP. Check Point Research says the first wave began roughly one week after a fix became available. Rescana reports that Check Point’s PHP2Shell hotfix (sk1000302) was published on October 23; I did not open that bulletin myself, so treat that date as secondary.

The first wave, from October 30, hit Israeli organizations and included destructive activity against some of them. The second, from November 2, was broader and looked opportunistic, with no destructive activity observed. Check Point created sk1000362 on November 8, the CVE went public with the research on November 12, and KEV followed on November 13.

Timeline from October 21, 2026 (PHP fixes) through October 26 (PHP2Shell in KEV), October 30 and November 2 (exploitation waves), November 12 (Check Point Research write-up), November 13 (CVE-2026-123039 in KEV) to the November 16 KEV due date.
Nine days separated the upstream PHP fix and the first wave against Check Point gateways.

How the attack unfolded

Step one is PHP2Shell. According to the PHP advisory, PHP aborts a request with a long jump when memory runs out, and that can happen while internal request state is only half built. Request shutdown then trusts that state, which can be turned into code execution. PHP demonstrated it unauthenticated over HTTP against Apache with mod_php, before any application code runs. On a Check Point gateway that means code execution as the portal’s service account. Check Point found PHP session files under /opt/CPcvpn-R81.20/tmp/ containing the marker upload_progress_pwn, and hundreds of segmentation faults in the portal’s Apache/PHP workers during the October 30 window. Crashing workers are what memory-corruption exploitation tends to look like from the outside.

Step two is the part Check Point owns. Gaia runs a root process, dynamic_server, that serves Dynamic CLI commands over a local Unix socket at /tmp/dynamic_socket. On vulnerable builds that socket is mode 0777 and the daemon never checks who is calling. Any local process, including an unprivileged web worker, can hand it a command that runs as root. That is CWE-732 (incorrect permissions on a critical resource) plus CWE-862 (missing authorization). After the fix the socket is 0660, owned by root and the config group, and the daemon rejects callers it does not trust.

Five-step attack chain: PHP2Shell on the Mobile Access portal, root via the world-writable dynamic_socket, webshells and the TSGA backdoor, SSH pivot to ESXi as vpxuser, and the destroy_v6 wiper.
The chain as described by Check Point Research. The wiper stage was seen only in some first-wave intrusions.

With root, they planted webshells as zz*.tpl files in the portal’s login templates, protected by a hardcoded key. They launched a backdoor Check Point calls TSGA from /tmp/CPconfigdaemon, which relocates itself into a boot persistence directory as slot_CPconfigdaemon. Check Point lists its features as encrypted remote access, configuration theft, persistence in backups and snapshots, process injection and tampering with binary firewall logs. A companion implant, TSProxy, was written to /lib/libcpfwcommon.so and injected into appliance processes as an encrypted SOCKS-style proxy. Both use TCP port 11072 and a Unix socket at /tmp/.p_sock.

In at least one intrusion they then ran the gogo scanner, moved over SSH to a VMware ESXi host using the vpxuser account, staged a wiper Check Point calls destroy_v6 and ran it. The wiper writes DREAM_ANNEXATION.txt into every directory it processes. Check Point does not say how the attackers got working vpxuser credentials.

Who did it: still an open question

Here the facts get thin. Check Point Research links TSGA and TSProxy to a toolset called PhiliKit. It says ESET associated PhiliKit with UNC5221, a China-nexus group, that the toolset was previously reported in attacks on Ivanti appliances, and that TSProxy shares operator credentials and a TLS certificate with a PhiliKit component. The infrastructure sat on LightNode VPS hosts that Check Point says have previously been tied to China-nexus activity.

Then the picture breaks. The wiper note uses the brand of Dream Security, a company that had recently published research on PHP2Shell exploitation of Palo Alto Networks devices by China-nexus actors. Check Point says the destruction, the Israel focus and the Hebrew note do not fully align with UNC5221’s motives. Check Point lays out several possibilities, including an initial access broker or a false flag where the destruction is a smoke screen, and concludes that the evidence does not let it assess “with high confidence the true nature of this operation.” I’d leave it there: attribution is unconfirmed.

Who is affected and how badly

CVE-2026-123039 needs local code execution first, which is why it scores 7.8 and not 9-something. That framing undersells it. On a gateway with Mobile Access exposed and an unpatched PHP stack, “local” is one unauthenticated request away. Management and log servers are affected too, so any other foothold on those boxes gets the same root shortcut.

My honest rating: critical for anyone with Mobile Access facing the internet who was not on the PHP2Shell hotfix by late October. High for everyone else on affected versions, because a root-on-demand socket turns every future web bug on the appliance into full compromise. The R81.10 and R81 crowd is in the worst spot, with no fixed take listed and only the mitigation to lean on.

What to do now

  1. Install the Jumbo Hotfix that fixes CVE-2026-123039 on gateways, management and log servers: R82.20 Take 14, R82.10 Take 52, R82 Take 132, R81.20 Take 174, or later. Start with anything exposing Mobile Access. Confirm the takes in sk1000362 before scheduling; the CVE record’s affected ranges are worded slightly differently from the SK, and I’d follow the SK.
  2. Make sure the PHP2Shell fix is also on every Mobile Access gateway. Fixing the root socket without fixing the portal still leaves the attacker a webshell.
  3. If you cannot patch, use the sk1000362 mitigation: stop dynamic_server and stop it from restarting. This breaks the Dynamic CLI commands listed in sk144112. Copy the exact commands from the SK, not from a blog.
  4. On R81.10 or R81, apply the mitigation and plan the upgrade. Turn off Mobile Access where nobody uses it.
  5. If your Mobile Access portal was reachable and unpatched at any point after October 21, treat the box as possibly compromised and run the checks in the detection section below. Patching does not remove a webshell or a backdoor that is already there.
  6. Review what your firewall can reach. A gateway that can SSH into ESXi, or that holds credentials which work there, is a bridge nobody designed on purpose. Ship firewall logs off the box in real time, since TSGA can tamper with them.

Detection and monitoring

Two parts of this chain are easy to see if you collect the right logs, and the rest is hard. The easiest is the privilege escalation itself: dynamic_server writes every command it receives to /var/log/dynamicCli.log, and sk1000362 tells you what normal looks like. The second is the implant drop, since Check Point Research names the exact paths. The PHP2Shell request and the wiper are the weak spots. The catch is that Gaia does not ship dynamicCli.log off the box by default, most gateways run no EDR, and an attacker with root can edit local logs. Forwarding comes first, rules second.

RuleCategoryLog sourceATT&CKLevel
DynamicCLI exploitation-style commandNetwork (firewall)dynamicCli.logT1068, T1059.004High
DynamicCLI command without Clish wrapperNetwork (firewall)dynamicCli.logT1068Medium
DynamicCLI rejected unauthorized uid (after patching)Network (firewall)dynamicCli.logT1068Medium
TSGA, TSProxy or portal webshell file createdLinuxFile creationT1505.003, T1090Critical
SSH login to ESXi as vpxuserIdentityESXi auth.logT1021.004High

The one I’d turn on first is the exploitation-style command rule. It fires when the root daemon logs a received command containing the strings Check Point itself lists as typical of exploitation: whoami, /dev/tcp, curl or wget, base64, useradd, authorized_keys and a few others. Clish has no reason to send any of those through Dynamic CLI, so a hit means someone used the socket as a root shell. It is the SK’s own grep turned into a SIEM rule:

title: Check Point Gaia DynamicCLI Exploitation-Style Command - CVE-2026-123039
id: 50564284-e728-4af4-940e-a38255c15ab2
status: test
description: |
    Detects commands received by the root dynamic_server daemon on Check Point Gaia that contain
    discovery, download, reverse-shell, credential or account-creation strings. Check Point sk1000362
    lists these strings in /var/log/dynamicCli.log as typical of CVE-2026-123039 exploitation, where a
    web worker abuses the world-writable /tmp/dynamic_socket to run commands as root.
references:
    - https://support.checkpoint.com/results/sk/sk1000362
    - https://research.checkpoint.com/2026/php2shell-exploitation-on-check-point-gateway/
    - https://netsec101.com/?p=244
author: netsec101.com
date: 2026-11-15
tags:
    - attack.privilege-escalation
    - attack.execution
    - attack.t1068
    - attack.t1059.004
    - cve.2026-123039
    - detection.emerging-threats
logsource:
    product: checkpoint
    service: dynamiccli
    definition: 'Requirement: forward /var/log/dynamicCli.log from every Gaia gateway, cluster member and management server to the SIEM (not shipped by default).'
detection:
    keywords_received:
        - 'Received ='
    keywords_commands:
        - ' id;'
        - ' whoami'
        - '/etc/shadow'
        - 'ncat'
        - 'nc -'
        - '/dev/tcp'
        - 'curl '
        - 'wget '
        - 'base64'
        - 'useradd'
        - 'authorized_keys'
    condition: keywords_received and keywords_commands
falsepositives:
    - Administrators deliberately running such commands through Dynamic CLI during troubleshooting (rare; confirm with the change record)
level: high

The read-only checks from sk1000362 still apply on each gateway in Expert mode: confirm /tmp/dynamic_socket is srw-rw---- root config after the hotfix, then grep dynamicCli.log for received commands without the Clish wrapper. Check Point Research’s artifact paths (/tmp/CPconfigdaemon, /tmp/.bd.log, /lib/libcpfwcommon.so, zz*.tpl in the portal tree, a listener on TCP 11072) are worth a one-off sweep, and the hashes are in CPR’s IOC table.

After patching, keep watching. On a fixed build the daemon logs “Rejected connection from unauthorized uid” when an untrusted process knocks, and a non-zero uid like 99 means something on the box still has a foothold. I’d retro-hunt every log you have back to October 21, 2026, when PHP2Shell was patched upstream. Search perimeter logs for 130.94.19[.]204 and 130.94.19[.]168 over the same window, then let those IPs age out after about 90 days; VPS addresses get recycled. On ESXi, any SSH login as vpxuser deserves a call to whoever owns vCenter.

I wrote up all five rules, with tuning notes, lab tests and ATT&CK coverage, in a separate detection post. The YAML lives in my Detection Rules repo.

My take

The headline bug here is not really the one in KEV. PHP2Shell was public, patched and screamed about by CISA on October 21. Attackers were inside Check Point gateways nine days later. The lesson I take is that a security appliance carries a full open-source web stack, and its exposure clock starts when that upstream project patches, not when the appliance vendor writes its own bulletin. If your firewall patching waits for the vendor’s cadence, you lost this race before it started.

CVE-2026-123039 is the part that should embarrass the vendor. A root daemon taking unauthenticated commands over a world-writable socket in /tmp is a bug class we were writing up in the 1990s. On a product whose whole job is enforcing trust boundaries, the boundary between “web worker” and “root” was a file permission. The CVSS 7.8 is technically correct and practically misleading: in real deployments it is the multiplier that turns any web bug on the box into full control, including log tampering on the device you rely on for evidence.

I would not spend time on attribution yet; Check Point itself will not commit. What matters for defenders is the same either way: the firewall had a path into ESXi. If I ran a Check Point estate this week, I’d patch, run the dynamicCli.log checks on every gateway exposed since October 21, and then go find out exactly what credentials and network paths my firewalls have into the virtualization layer. Most people will skip that last step, and it is the one that decided whether victims lost a firewall or their servers.

Sources