Skip to content

Latest commit

 

History

History
290 lines (224 loc) · 15.4 KB

EXPLOITATION.md

File metadata and controls

290 lines (224 loc) · 15.4 KB

PHP2Shell Exploitation Tracker

Last updated: 2026-10-28  |  Maintainer: Qi Deng

Live tracking of exploitation activity, downstream impact, attacker tooling, and IOCs for CVE-2026-109618 and CVE-2026-109619.

Contribute: Open a PR or issue to add observations. Include source links and timestamps.


Status

Indicator Status
CISA KEV Listed — 2026-10-26 (source)
Confirmed ITW RCE Yes — honeypot, 2026-10-24 (BleepingComputer)
ASLR bypass (public) Yes — x86_64, PHP 8.4.26/8.5.11 (alvarodh5)
Botnet delivery Yes — Potassium (Mirai fork) (Nokia Deepfield)
Exploit attempt volume Millions within 24h of disclosure (Cloudflare via THN)
Reliable mass exploitation Not yet — most ITW attempts fail (Wiz)
Related CVE (unpatched) CVE-2026-115560 — unusual config required, no emergency patch (THN)

Timeline

Date (UTC) Event Source
2026-08-27 Vulnerabilities reported to PHP security team PHP advisory
2026-09-25 Fix PR opened; final commit 2026-10-18 php-src
2026-10-17 Amazon Threat Intelligence observes first exploit attempt (4 days before disclosure) Tenable
2026-10-20 PoC leaks; PHP moves release up one day ELLIO
2026-10-21 08:36 First exploit request on ELLIO sensors (5.5h before patch release) ELLIO
2026-10-21 14:00 Patched PHP versions released (8.2.35, 8.3.36, 8.4.27, 8.5.12) php.net
2026-10-21 16:05 OOM amplification requests appear ELLIO
2026-10-21 20:40 Multi-vuln scanner bots add PHP2Shell ELLIO
2026-10-22 03:10 Mirai (Potassium) payload delivery begins; working webshells observed ELLIO
2026-10-22 Cloudflare reports millions of attempts THN
2026-10-23 CISA publishes SIGMA detection rule CISA
2026-10-23 CVE-2026-115560 disclosed (related, unpatched) PHP advisory
2026-10-24 First confirmed successful RCE on honeypot (Adel Karimi / Perplexity) BleepingComputer
2026-10-26 CISA adds both CVEs to KEV catalog CISA
2026-10-27 Wiz reports ~67% drop in exposed vulnerable hosts, >53% of orgs still vulnerable Wiz

Exploit-in-the-Wild Observations

Confirmed Successful RCE

Date Target Setup Observer Details
2026-10-24 Apache mod_php, PHP 8.4.26, single worker Adel Karimi (Perplexity) 800 KiB decoded cookie dump → function address derived → execution payload. Confirmed by Marcus Hutchins (Expel).

ASLR Bypass Chain (Public)

Source: alvarodh5/php2shell

Three-stage exploit — addresses leaked in-band via Set-Cookie, no gdb or /proc needed:

Stage Mechanism Leaked
1. Heap base leak OOM interrupts init → dangling session ref → crafted string → Set-Cookie discloses Zend MM chunk address Heap ASLR bypass
2. Library base leak Second struct overlaps dangling ref → libphp function pointer in Set-Cookie Library ASLR bypass
3. Command execution Dangling ref reclaimed with attacker data → destructor pointer → system() RCE, bypasses disable_functions

Verified versions:

PHP Version Architecture Status
8.5.11 x86_64 Full RCE ✅
8.4.26 x86_64 Full RCE ✅
8.3.35 x86_64 Leak works, RCE uncalibrated
8.2.34 x86_64 Not yet working
Any ARM64 Partial

VulnCheck (paid) reportedly achieves RCE with display_errors=Off (production config).

Attack Patterns Observed

Pattern First Seen Details Source
Session upload progress canary 10/21 08:36 UA: php2shell-scan/109618 ELLIO
OOM amplification 10/21 16:05 Hundreds of empty file fields, ~10 MB bodies ELLIO
Session poisoning + LFI 10/21 PHP code written to session file via upload_progress filename ELLIO, Wiz
Nuclei-style scanning 10/22 id, whoami, echo marker commands ELLIO
Monolog deserialization chain 10/22 Older technique piggybacking on PHP2Shell delivery Arctic Wolf
Worker pinning (stalled connections) 10/22+ One byte sent slowly to keep Apache worker occupied; one VPN addr opened 399 connections Wiz

Delivered Payloads

Payload Type Delivery First Seen Source
Potassium (Mirai fork) DDoS botnet wget from 92.118.112[.]100 2026-10-22 ELLIO, Sophos, Nokia Deepfield
Linux DDoS booter DDoS tool session upload progress 2026-10-22 ELLIO
IIS WebShell (Chinese) Webshell session file write 2026-10-22 ELLIO
Go RAT RAT in-memory loading 2026-10-22 ELLIO
PHP session webshell Webshell upload_progress → LFI 2026-10-22+ Wiz, ELLIO
Crypto/Web3 credential harvester Stealer client-side JS scraping 2026-10-22+ SOCRadar

Potassium Botnet Details

Mirai-derived DDoS botnet. Full analysis: Nokia Deepfield

Property Value
First seen March 2026 (pre-PHP2Shell)
Campaigns vitacoco, iambig, botlesscucks
Config encryption IETF ChaCha20 (counter=1), static key across all builds
Wire encoding Single-byte XOR 0xED
DNS evasion Swap 16-bit halves of A record (A.B.C.D → C.D.A.B)
Attack commands 20 handlers (UDP, TCP, ICMP, GRE, HTTP, OpenVPN, Minecraft)
Reverse shell SHELL/SHOUT protocol via /bin/sh -c
ENS C2 fallback Present but disabled in analyzed samples
Architectures ARM, MIPS, x86, PPC440, SH4
Builder Aboriginal Linux (GCC 4.2.1) + uClibc

Downstream Affected Systems

The vulnerability is in the PHP engine — application code cannot mitigate it. Any PHP application on a vulnerable runtime is exposed.

Confirmed Pre-Auth RCE

System Version Tested Confirmed By Notes
WordPress 7.1.2 Wiz, Calif Core doesn't use sessions; WooCommerce and plugins do
Drupal 11.4.3 Wiz, Calif Native PHP sessions by default
Joomla 6.1.4 Wiz, Calif Native PHP sessions by default
Magento 2.4.9 Calif, Sansec Vulnerable even in maintenance mode; payment data at risk
Roundcube 1.7.4 Calif; Wiz observed targeting Webmail — credential exposure risk
phpMyAdmin 5.2.3 Calif Direct database access
Nextcloud 35.0.1 Calif File storage system
Laravel 13.11 Calif PendingBroadcast is known __destruct gadget
Symfony 8.1 Calif Framework-level exposure
MediaWiki 1.46.2 Calif Wiki platform
WooCommerce — Sansec WordPress plugin; payment data at risk
Shopware — Sansec E-commerce platform
WHMCS — Sansec Hosting control panel

Exploitation Conditions by SAPI

SAPI Chain D (OOM) Chain E (Stale BG) Session/LFI Chains Risk Level
Apache mod_php (prefork) Highest N/A Yes Critical
PHP-FPM N/A High Yes Critical
php-cgi Limited Limited Yes High
FrankenPHP Unknown Unknown Yes Medium
LiteSpeed Unknown Unknown Yes Medium

Indicators of Compromise (IOCs)

Network — Attacker Infrastructure

Type Value Context Source
IP 92.118.112[.]100 Potassium loader host Sophos, Arctic Wolf
IP 206.188.197[.]105:9999 Exploit tooling server (aslr_exploit.py) SOCRadar
IP 85.11.167[.]243 Attack source THN
IP 217.60.242[.]76 Attack source THN
IP 45.198.224[.]169 Attack source THN, Arctic Wolf
IP 134.199.154[.]64 Potassium C2 Sophos
IP 45.153.34[.]245 iambig campaign C2 Nokia Deepfield
IP 45.156.87[.]243 botlesscucks campaign C2 Nokia Deepfield
IP 31.56.197[.]72 C2/payload server Wiz
IP 15.204.59[.]70 Scanner (succeeded on Karimi's honeypot) Wiz
IP 162.35.99[.]94 Scanner (succeeded on Karimi's honeypot) Wiz
Domain thunder[.]godofthunder[.]st Potassium C2 (PHP2Shell campaign) Arctic Wolf
Domain hackattackkaboom[.]botlesscucks[.]st Potassium update host Arctic Wolf
URL hxxp://92.118.112[.]100/nfs-setup Potassium x86 payload Arctic Wolf
URL hxxp://92.118.112[.]100/mountpoint Potassium ARM payload Arctic Wolf
URL hxxp://45.115.26[.]26:8000/cCmono Secondary payload Arctic Wolf

Network — Scanning Sources (Wordfence)

87.121.84[.]174, 181.215.186[.]252, 185.196.220[.]132, 185.161.210[.]29, 152.233.51[.]69, 45.134.225[.]16, 107.189.14[.]87, 193.47.62[.]24, 103.147.220[.]17

File Hashes

SHA-256 Description Source
e2529d4afa39ae4db2eb05d5176317c906289abf09660c75bdeec43e54c55aa3 Potassium (x86_64) Arctic Wolf
0c5486f06620e26e316f4b33f318b0d646d5e1133789331aa2fed012360d1486 Potassium (ARM) Arctic Wolf

Request Signatures

Indicator Value
User-Agent php2shell-scan/109618
User-Agent php2shell-test/2.0.0
User-Agent Mozilla/5.0 (php2shell-test/2.0.0)
Boundary ----p2shell
Multipart field PHP_SESSION_UPLOAD_PROGRESS
Default PoC command uname -a; id; echo JACKALPOC

Potassium Detection (Nokia Deepfield)

Signal Details
Wire encoding All C2 traffic XOR 0xED
Registration 19-byte fixed header 0a0b0c0d0e0f00030201020304050504030201
Port pools Pool A: 876, 1207, 6428, 7574, 19876, 26608, 27603, 27776, 29502, 57536, 60764
Pool B: 7193, 15987, 23789, 27651, 32876, 38429, 42061, 46852, 49376, 54123, 61543
Process names dvrLocker, dvrInside
Banner it was never about the taste
Local listener TCP 1234 on egress IP or 127.0.0.1
DNS Query 8.8.8.8:53, connect to halves-swapped IP
C2 port TCP 50792

Public Exploit Tooling

⚠️ Many GitHub "php2shell" repos contain non-functional code or malware. Exercise caution. (Tenable)

Repository Technique Functional? Notes
alvarodh5/php2shell ASLR bypass via Set-Cookie leak Verified (8.4.26, 8.5.11) No gdb/proc needed
JoasASantos/php2shell-exploit Framework — multiple chains Unverified Claims lab PoC
MomoRizza/php2shell Toolkit + labs Unverified Claims pre-auth RCE
itsismarcos/php2shell Exploit RCE application Unverified Minimal
SOCRadar observed: aslr_exploit.py Worker recycle → session cookie leak → RCE Found on attacker server One-click mod_php exploit
10 open directories with tooling Various Various IPs listed in SOCRadar report

CVE-2026-115560 (Related, Unpatched)

Disclosed 2026-10-23 by PHP. Separate from PHP2Shell but in the same session.upload_progress attack surface.

Property Detail
Conditions session.serialize_handler starts as php_binary or php_serialize → app calls ini_set() to switch to php → this happens before session_start() → upload_progress enabled
Severity Unscored; PHP considers conditions unlikely
Patch None — queued for routine bugfix release
Mitigation session.upload_progress.enabled=0 (same as PHP2Shell)
ITW exploitation None reported

Remediation Stats

Based on Wiz telemetry (Oct 21–28):

Metric Value
Exposed vulnerable hosts (day 1) Baseline
Exposed vulnerable hosts (day 7) -67%
Affected organizations (day 7) -47.9%
Still vulnerable (day 7) >53% of originally affected orgs
PHP 7.3 or earlier share Dropped from 8.3% to 5.7%
Total exposed PHP services (Censys) 34.4 million
Supported-branch hosts (VirusTotal) ~272,000

References

Vendor / CERT Advisories

Threat Intelligence

Downstream / CMS Impact

Botnet Analysis

Detection