Back Sploitus Exploit for Improperly Controlled Sequential Memory Allocation in Php
PHP unauthorized RCE PoC and EXP tools for CVE-2026-109618 / CVE-2026-109619. There is only one Go source file in the entire project: `php2shell.go`.
- After compilation, there is only one binary; no runtime dependencies.
- No need for Python, Docker, local web servers, or any external files.
- Does not contain test cases, detection rules, or other scripts.
The tool itself does not start any services. The PHP service pointed to by `--target` is the test target.
You need Go 1.22 or higher. Precompiled Linux/Windows/macOS binaries can be found at [Releases]( The project does not have a `go.mod`; you must specify the source file name during building:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o php2shell-linux-amd64 php2shell.go
| `exp lfi` | Session injection + LFI → RCE |
| `exp destruct` | Handler mismatch → `__destruct` → RCE |
| `poc session` | Verify session file injection |
| `poc mismatch` | Verify that the session handler does not match |
| `poc fpm` | Verify that FPM has a residual `BG()` state across requests |
| `payload uaf` | Output UAF → `var_dump` handler overrides the payload |
| `payload asan` | Output ASan-validated UAF with `varDestroy` handler |
| `payload list` | List built-in payloads |
--host HOST --port PORT [--tls] [--insecure]
Use `php2shell -h` to view all parameters for a specific command.
When the target enables `session.upload_progress.cleanup=On`:
--inject-path Any PHP endpoint that can accept POST requests; default: /index.php
--lfi-path: The path for LFI operations, default is /vuln.php
--session-path: The path where PHP sessions are stored on the target, default is /tmp/sessions
Default paths and handlers need to be adjusted according to the target environment:
--pollute-path: The endpoint where session.serialize_handler=php_serialize is set
--upload-path: The PHP endpoint used for injecting sessions
--trigger-path: The endpoint that uses a PHP handler and calls session_start()
--gadget: A custom serialization gadget. Use this parameter if you want to ignore --command.
This module uses the `Evil` class as an example gadget by default. The actual target requires replacing it with a POP gadget available in the target application.
php2shell poc session --target
php2shell poc mismatch --target
php2shell poc oom --target --strategy headers
# Requires existing sessions of approximately 30MB on the target
php2shell poc fpm --target
no_length: Blocked transfer, no Content-Length usage
Upload the generated `uaf.php` to the target and execute it using PHP. This payload locates `zif_system` through `/proc/self/mem`, overrides the `var_dump` handler, and then executes the command.
USE_ZEND_ALLOC=0 ASAN_OPTIONS=detect_leaks=0 php asan.php
- `poc fpm` does not create session files. It assumes that there are existing sessions of approximately 30MB corresponding to `--producer-sid` (default SID: `hugesession000000000000000`).
- The default endpoints, session paths, and gadgets for `exp destruct` depend on the specific application. Please use parameters to match the actual target.
- `poc oom` primarily targets Apache mod_php. If the target does not crash or returns memory errors, you can increase `--num-headers` or `--header-size`.
- This tool only implements public PoC and exploitation paths; it does not include full memory layout adaptation for weaponized payloads.
This tool is used solely for authorized security testing and education purposes. Please use it only on targets for which explicit written authorization has been obtained.
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
