Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix vessel dispatch, calibrator pads, profile schema and evidence
- pass --repo-dir through to php2shell_vessel.py
- honor --pad in the vessel calibrator and add regression tests
- make uncalibrated profile fields nullable and fix 8.3.33/8.2.34 metadata
- complete the catalog and record the independently re-verified builds
  • Loading branch information
devploit committed Oct 30, 2026
commit 4ca672ae62882cb2237a6398e0c97c29ee903d2e
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ not match the profile.
**47 heap profiles, 21 with verified RCE. Offsets extracted for 48 image/arch
rows covering 39 distinct PHP builds.**

Independent re-verification on 2026-10-30 reproduced the command proof
(`uid=33(www-data)`) for 8.4.10, 8.4.11, 8.4.19, 8.4.20, 8.4.25, 8.5.5,
8.5.9 and 8.5.11; the details are in
[the verification log](docs/calibration-logs/verified-2026-10-30.md). The
remaining RCE profiles are contributor-reported until they are re-run (Docker
Hub's pull limit blocked the additional images during that review).

`Heap leak` is stage 1, `libphp leak` is stage 2 and `RCE` is a real command
proof on an isolated lab. `no` means not verified, not necessarily impossible;
`pending` means the sweep predates the cookie `'+'` decoding fix and the leak
Expand Down
142 changes: 141 additions & 1 deletion catalog/vulnerable.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"source": "ANALISIS_PHP2SHELL.md, section 2 (fixed releases) and section 1 (CVEs)",
"updated": "2026-10-23",
"updated": "2026-10-30",
"branches": [
{
"branch": "5.4",
Expand Down Expand Up @@ -286,6 +286,146 @@
"rce": false,
"verified": false,
"note": "stage-1 and stage-2 leaks reproduce; stage-3 layout not found"
},
"8.4.11/amd64": {
"file": "profiles/8.4.11-bookworm-amd64.json",
"build": "php:8.4.11-apache (Debian bookworm, mod_php, prefork)",
"rce": true,
"verified": true,
"note": "RCE verified"
},
"8.4.12/amd64": {
"file": "profiles/8.4.12-bookworm-amd64.json",
"build": "php:8.4.12-apache (Debian bookworm, mod_php, prefork)",
"rce": false,
"verified": false,
"note": "calibration failed: heap/libphp leak not reproduced"
},
"8.4.13/amd64": {
"file": "profiles/8.4.13-bookworm-amd64.json",
"build": "php:8.4.13-apache (Debian bookworm, mod_php, prefork)",
"rce": false,
"verified": false,
"note": "leaks calibrated; stage 3 not verified"
},
"8.4.14/amd64": {
"file": "profiles/8.4.14-bookworm-amd64.json",
"build": "php:8.4.14-apache (Debian bookworm, mod_php, prefork)",
"rce": false,
"verified": false,
"note": "calibration failed: heap/libphp leak not reproduced"
},
"8.4.15/amd64": {
"file": "profiles/8.4.15-bookworm-amd64.json",
"build": "php:8.4.15-apache (Debian bookworm, mod_php, prefork)",
"rce": false,
"verified": false,
"note": "calibration failed: heap/libphp leak not reproduced"
},
"8.4.16/amd64": {
"file": "profiles/8.4.16-bookworm-amd64.json",
"build": "php:8.4.16-apache (Debian bookworm, mod_php, prefork)",
"rce": false,
"verified": false,
"note": "calibration failed: heap/libphp leak not reproduced"
},
"8.4.17/amd64": {
"file": "profiles/8.4.17-bookworm-amd64.json",
"build": "php:8.4.17-apache (Debian bookworm, mod_php, prefork)",
"rce": false,
"verified": false,
"note": "calibration failed: heap/libphp leak not reproduced"
},
"8.4.18/amd64": {
"file": "profiles/8.4.18-bookworm-amd64.json",
"build": "php:8.4.18-apache (Debian bookworm, mod_php, prefork)",
"rce": false,
"verified": false,
"note": "calibration failed: heap/libphp leak not reproduced"
},
"8.4.19/amd64": {
"file": "profiles/8.4.19-bookworm-amd64.json",
"build": "php:8.4.19-apache (Debian bookworm, mod_php, prefork)",
"rce": true,
"verified": true,
"note": "RCE verified"
},
"8.4.6/amd64": {
"file": "profiles/8.4.6-bookworm-amd64.json",
"build": "php:8.4.6-apache (Debian bookworm, mod_php, prefork)",
"rce": false,
"verified": false,
"note": "calibration failed: heap/libphp leak not reproduced"
},
"8.4.7/amd64": {
"file": "profiles/8.4.7-bookworm-amd64.json",
"build": "php:8.4.7-apache (Debian bookworm, mod_php, prefork)",
"rce": false,
"verified": false,
"note": "calibration failed: heap/libphp leak not reproduced"
},
"8.4.8/amd64": {
"file": "profiles/8.4.8-bookworm-amd64.json",
"build": "php:8.4.8-apache (Debian bookworm, mod_php, prefork)",
"rce": false,
"verified": false,
"note": "leaks calibrated; stage 3 not verified"
},
"8.5.1/amd64": {
"file": "profiles/8.5.1-bookworm-amd64.json",
"build": "php:8.5.1-apache (Debian bookworm, mod_php, prefork)",
"rce": true,
"verified": true,
"note": "RCE verified (vessel stage 3; uid=33 www-data proof)"
},
"8.5.2/amd64": {
"file": "profiles/8.5.2-bookworm-amd64.json",
"build": "php:8.5.2-apache (Debian bookworm, mod_php, prefork)",
"rce": true,
"verified": true,
"note": "RCE verified (vessel stage 3; uid=33 www-data proof)"
},
"8.5.3/amd64": {
"file": "profiles/8.5.3-bookworm-amd64.json",
"build": "php:8.5.3-apache (Debian bookworm, mod_php, prefork)",
"rce": true,
"verified": true,
"note": "RCE verified (vessel stage 3; uid=33 www-data proof)"
},
"8.5.4/amd64": {
"file": "profiles/8.5.4-bookworm-amd64.json",
"build": "php:8.5.4-apache (Debian bookworm, mod_php, prefork)",
"rce": true,
"verified": true,
"note": "RCE verified (vessel stage 3; uid=33 www-data proof)"
},
"8.5.6/amd64": {
"file": "profiles/8.5.6-bookworm-amd64.json",
"build": "php:8.5.6-apache (Debian bookworm, mod_php, prefork)",
"rce": true,
"verified": true,
"note": "RCE verified (vessel stage 3; uid=33 www-data proof)"
},
"8.5.7/amd64": {
"file": "profiles/8.5.7-bookworm-amd64.json",
"build": "php:8.5.7-apache (Debian bookworm, mod_php, prefork)",
"rce": true,
"verified": true,
"note": "RCE verified (vessel stage 3; uid=33 www-data proof)"
},
"8.5.8/amd64": {
"file": "profiles/8.5.8-bookworm-amd64.json",
"build": "php:8.5.8-apache (Debian bookworm, mod_php, prefork)",
"rce": true,
"verified": true,
"note": "RCE verified (vessel stage 3; uid=33 www-data proof)"
},
"8.5.9/amd64": {
"file": "profiles/8.5.9-bookworm-amd64.json",
"build": "php:8.5.9-apache (Debian bookworm, mod_php, prefork)",
"rce": true,
"verified": true,
"note": "RCE verified (vessel stage 3; uid=33 www-data proof)"
}
},
"coverage_note": "A version listed in a vulnerable branch is exposed, but it is exploitable only when a verified profile exists for that exact build. Offsets alone (docs/offset-inventory.md) do not make a build exploitable. Vendor backports cannot be inferred from the version string."
Expand Down
50 changes: 49 additions & 1 deletion docs/calibration-logs/matrix_report.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,53 @@
"status": "leaks-only",
"rce": false,
"profile": "profiles/8.4.8-bookworm-amd64.json"
},
{
"label": "8.4.10-bookworm-amd64",
"status": "rce",
"rce": true,
"profile": "profiles/8.4.10-bookworm-amd64.json"
},
{
"label": "8.4.11-bookworm-amd64",
"status": "rce",
"rce": true,
"profile": "profiles/8.4.11-bookworm-amd64.json"
},
{
"label": "8.4.19-bookworm-amd64",
"status": "rce",
"rce": true,
"profile": "profiles/8.4.19-bookworm-amd64.json"
},
{
"label": "8.4.20-bookworm-amd64",
"status": "rce",
"rce": true,
"profile": "profiles/8.4.20-bookworm-amd64.json"
},
{
"label": "8.4.25-bookworm-amd64",
"status": "rce",
"rce": true,
"profile": "profiles/8.4.25-bookworm-amd64.json"
},
{
"label": "8.5.5-bookworm-amd64",
"status": "rce",
"rce": true,
"profile": "profiles/8.5.5-bookworm-amd64.json"
},
{
"label": "8.5.9-bookworm-amd64",
"status": "rce",
"rce": true,
"profile": "profiles/8.5.9-bookworm-amd64.json"
},
{
"label": "8.5.11-bookworm-aarch64",
"status": "rce",
"rce": true,
"profile": "profiles/8.5.11-bookworm-aarch64.json"
}
]
]
43 changes: 43 additions & 0 deletions docs/calibration-logs/verified-2026-10-30.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Independent verification run — 2026-10-30

These runs were made by the maintainer on the local, disposable labs only
(loopback), using the profiles and the dispatcher from this branch.

Environment: Docker Desktop on macOS arm64; official `php:<version>-apache`
images under `--platform linux/amd64` (except 8.5.11 aarch64), the lab
`php.ini`/`apache.conf` from `lab/rce/`, one prefork worker,
`display_errors=On`, `memory_limit=8M`, `post_max_size=512M`.

Command shape:

```sh
python3 tools/php2shell_auto.py \
-u http://127.0.0.1:<port>/index.php \
--container p2s-verify-<version> \
--repo-dir <upstream-checkout> \
--profile php-<version>-bookworm-<arch> --arch <arch> \
-c 'id>/out/p1'
```

Result: `PRE-AUTH RCE CONFIRMED` with `uid=33(www-data)`.

| Build | Profile | Result |
| --- | --- | --- |
| 8.4.10 amd64 | `php-8.4.10-bookworm-amd64` | `uid=33(www-data)` |
| 8.4.11 amd64 | `php-8.4.11-bookworm-amd64` | `uid=33(www-data)` |
| 8.4.19 amd64 | `php-8.4.19-bookworm-amd64` | `uid=33(www-data)` |
| 8.4.20 amd64 | `php-8.4.20-bookworm-amd64` | `uid=33(www-data)` |
| 8.4.25 amd64 | `php-8.4.25-bookworm-amd64` | `uid=33(www-data)` |
| 8.5.5 amd64 | `php-8.5.5-bookworm-amd64` | `uid=33(www-data)` (vessel stage 3) |
| 8.5.9 amd64 | `php-8.5.9-bookworm-amd64` | `uid=33(www-data)` (vessel stage 3) |
| 8.5.11 aarch64 | `php-8.5.11-bookworm-aarch64` | `uid=33(www-data)` (carrier stage 3) |

The remaining RCE profiles in this PR (8.5.0–8.5.4, 8.5.6–8.5.8 and
8.5.10 amd64) are still **contributor-reported**: Docker Hub's unauthenticated
pull limit blocked the additional amd64 image pulls during this review. They
are not demoted, but they should be independently re-run when the limit
resets; the reproducible command is the one above.

The full command output for each run is kept in the maintainer's local
verification log; the entries above are the ones reflected in
`docs/calibration-logs/matrix_report.json`.
7 changes: 4 additions & 3 deletions docs/profile-inventory.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,10 @@ Generated from `profiles/*.json` by `tools/php2shell_inventory.py`.
- **8.5.0 – 8.5.9** — `php:8.5.{0..9}-apache`. **Vessel stage 3** (see
below): the upstream carrier layout is unreachable on the early-8.5 heap,
so S steers the dangling reference one page up onto B2's blob page and
blob 1 embeds the reference pattern itself. `uid=33(www-data)` proofs on
all ten — the geometry calibrated on 8.5.0/8.5.5 (under gdb and without
it) carried over to 8.5.1–8.5.9 unchanged. Fixed in 8.5.12.
blob 1 embeds the reference pattern itself. The geometry calibrated on
8.5.0/8.5.5 (under gdb and without it) was carried over to 8.5.1–8.5.9;
the maintainer independently re-verified 8.5.5 and 8.5.9 on 2026-10-30,
and the remaining early-8.5 rows are contributor-reported. Fixed in 8.5.12.

### Leaks reproduced, stage 3 misses

Expand Down
6 changes: 3 additions & 3 deletions profiles/7.4.33-buster-amd64.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"htdata": null
},
"stages": {
"stage1_n": 0,
"stage1_forge_len": 0,
"stage1_n": null,
"stage1_forge_len": null,
"stage2_t": 406,
"stage2_v": 16,
"stage3_pads": null,
Expand All @@ -34,4 +34,4 @@
"libphp_base": null
},
"status": "calibration failed: heap/libphp leak not reproduced"
}
}
6 changes: 3 additions & 3 deletions profiles/8.1.34-bullseye-amd64.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"htdata": null
},
"stages": {
"stage1_n": 0,
"stage1_forge_len": 0,
"stage1_n": null,
"stage1_forge_len": null,
"stage2_t": 406,
"stage2_v": 16,
"stage3_pads": null,
Expand All @@ -34,4 +34,4 @@
"libphp_base": null
},
"status": "calibration failed: heap/libphp leak not reproduced"
}
}
6 changes: 3 additions & 3 deletions profiles/8.2.28-bookworm-amd64.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"htdata": null
},
"stages": {
"stage1_n": 0,
"stage1_forge_len": 0,
"stage1_n": null,
"stage1_forge_len": null,
"stage2_t": 406,
"stage2_v": 16,
"stage3_pads": null,
Expand All @@ -34,4 +34,4 @@
"libphp_base": null
},
"status": "calibration failed: heap/libphp leak not reproduced"
}
}
9 changes: 4 additions & 5 deletions profiles/8.2.34-bookworm-aarch64.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"htdata": null
},
"stages": {
"stage1_n": 0,
"stage1_forge_len": 0,
"stage1_n": null,
"stage1_forge_len": null,
"stage2_t": 406,
"stage2_v": 16,
"stage3_pads": null,
Expand All @@ -30,8 +30,7 @@
"chunk_base": null,
"libphp_base": null
},
"status": "calibration failed: stage 1 heap leak not reproduced on 8.2.34",
"note": "libphp offsets extracted; the 8.4/8.5 upload-progress leak shape did not reproduce on this branch",
"status": "calibration failed: stage 1 heap leak not reproduced on 8.2.34 (libphp offsets extracted; the 8.4/8.5 upload-progress leak shape did not reproduce on this branch)",
"distro": "debian",
"arch": "aarch64"
}
}
6 changes: 3 additions & 3 deletions profiles/8.2.34-bookworm-amd64.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"htdata": null
},
"stages": {
"stage1_n": 0,
"stage1_forge_len": 0,
"stage1_n": null,
"stage1_forge_len": null,
"stage2_t": 406,
"stage2_v": 16,
"stage3_pads": null,
Expand All @@ -34,4 +34,4 @@
"libphp_base": null
},
"status": "calibration failed: heap/libphp leak not reproduced"
}
}
6 changes: 3 additions & 3 deletions profiles/8.3.0-bookworm.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"htdata": null
},
"stages": {
"stage1_n": 0,
"stage1_forge_len": 0,
"stage1_n": null,
"stage1_forge_len": null,
"stage2_t": 406,
"stage2_v": 16,
"stage3_pads": null,
Expand All @@ -33,4 +33,4 @@
},
"status": "calibration failed: heap/libphp leak not reproduced",
"arch": "aarch64"
}
}
Loading
Loading