# PHP2Shell Exploitation on Check Point Gateway

Attackers exploited PHP2Shell in Check Point Mobile Access portals, escalated to root via DynamicCLI CVE-2026-123039, deployed webshells and TSGA backdoor, then wiped ESXi hosts.

- Payout: Real-world hack
- Severity: critical
- Program: Check Point Security Gateway
- Found by (vendor credit): Ryan at Calif.io, Wiz, OpenAI
- Analysis by: Check Point Research
- Disclosed: 2026-11-12
- CVE: CVE-2026-123039, CVE-2026-109618, CVE-2026-109619
- Write-up quality: 7/10
- Original: https://research.checkpoint.com/2026/php2shell-exploitation-on-check-point-gateway/
- Library page: https://bugbountylibrary.com/r/blog%3Aresearch-checkpoint-com-2026-php2shell-exploitation-on-check-point-gateway
- Tags: area:devices domain:infra domain:network impact:integrity impact:internal-access impact:privesc impact:rce kind:incident platform:threat-intel sev:critical technique:chained vuln:file-upload vuln:privilege-escalation vuln:rce

**Target:** Mobile Access portal (Apache/PHP) and DynamicCLI IPC interface on Check Point Security Gateway
**Root cause:** PHP2Shell (CVE-2026-109618/CVE-2026-109619) allows initial access to the Mobile Access portal; a separate local privilege-escalation flaw in the DynamicCLI IPC interface (CVE-2026-123039) lets the portal service account escalate to root.
**Steps:**
1. Exploit PHP2Shell against unpatched Mobile Access portal; session artifacts appear under `/opt/CPcvpn-R81.20/tmp/` with `upload_progress_pwn` marker and Apache/PHP workers segfault.
2. Escalate from portal service account to root via CVE-2026-123039 in DynamicCLI IPC interface.
3. Drop webshell into templates dir: `printf <base64 Webshell> | base64 -d > <templates>/zz<random>.tpl`; shell keyed `zz2026`, uploads to `/tmp/.up.tpl`, copied to `challenge_render.tpl`.
4. Launch backdoor: `nohup /tmp/CPconfigdaemon >/tmp/.bd.log 2>&1 & printf started`; as root it relocates to `slot_CPconfigdaemon` in boot persistence dir and writes TSProxy to `/lib/libcpfwcommon.so`.
5. Run gogo scanner for internal discovery, pivot to VMware ESXi over SSH as `vpxuser`.
6. Stage and execute `destroy_v6` wiper on ESXi and drop `DREAM_ANNEXATION.txt` notes.
**How found:** Incident response: observed PHP session artifacts with `upload_progress_pwn` marker under the portal tmp dir and hundreds of Apache/PHP worker segmentation faults indicating repeated exploitation attempts.
**Exploitation:** Initial access via PHP2Shell on internet-facing Mobile Access portals, local privesc to root via DynamicCLI, persistent PHP webshells in the templates directory, TSGA passive backdoor with TSProxy library injection into appliance processes for covert networking, internal scanning with gogo, lateral SSH to ESXi using vpxuser, then destructive wiper deployment.
**Escalation:** Portal access chained to root via CVE-2026-123039, then pivoted from gateway to VMware ESXi host to deploy wiper and leave politically themed notes.
**Insight:** On Check Point gateways, watch the Mobile Access templates directory for `zz*.tpl` webshells and `/opt/CPcvpn-R81.20/tmp/` for `upload_progress_pwn` session markers; PHP worker segfault bursts are a strong exploitation signal.

## Proof of concept (copied exactly from the original report)

**printf base64 webshell into templates dir**

```
printf <base64 Webshell> | base64 -d > <templates>/zz<random>.tpl
```

**nohup launch of TSGA backdoor**

```
nohup /tmp/CPconfigdaemon >/tmp/.bd.log 2>&1 & printf started
```

## Write-ups of the same bug (oldest first)
- 2026-10-21: [PHP2Shell: AI uncovers critical RCE vulnerabilities affecting 70% of the Internet](https://bugbountylibrary.com/r/blog%3Awiz-io-blog-php2shell-php-rce) — Wiz Research
- 2026-10-27: [Responder Guidance for PHP2Shell (CVE-2026-109618 and CVE-2026-109619)](https://bugbountylibrary.com/r/blog%3Abishopfox-com-blog-responder-guidance-for-php2shell)
- 2026-10-27: [php2shell in Practice: Exploitable, Conditional, and Hard to Mass-Exploit](https://bugbountylibrary.com/r/blog%3Apraetorian-com-blog-php2shell) — Michelle Rhodes
- 2026-11-12: [PHP2Shell Exploitation on Check Point Gateway](https://bugbountylibrary.com/r/blog%3Aresearch-checkpoint-com-2026-php2shell-exploitation-on-check-point-gateway) — Check Point Research (this one)

