Skip to content

Commit 4ca672a

Browse files
committed
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
1 parent fa9ba15 commit 4ca672a

18 files changed

Lines changed: 340 additions & 61 deletions

‎README.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ not match the profile.
6969
**47 heap profiles, 21 with verified RCE. Offsets extracted for 48 image/arch
7070
rows covering 39 distinct PHP builds.**
7171

72+
Independent re-verification on 2026-10-30 reproduced the command proof
73+
(`uid=33(www-data)`) for 8.4.10, 8.4.11, 8.4.19, 8.4.20, 8.4.25, 8.5.5,
74+
8.5.9 and 8.5.11; the details are in
75+
[the verification log](docs/calibration-logs/verified-2026-10-30.md). The
76+
remaining RCE profiles are contributor-reported until they are re-run (Docker
77+
Hub's pull limit blocked the additional images during that review).
78+
7279
`Heap leak` is stage 1, `libphp leak` is stage 2 and `RCE` is a real command
7380
proof on an isolated lab. `no` means not verified, not necessarily impossible;
7481
`pending` means the sweep predates the cookie `'+'` decoding fix and the leak

‎catalog/vulnerable.json‎

Lines changed: 141 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"source": "ANALISIS_PHP2SHELL.md, section 2 (fixed releases) and section 1 (CVEs)",
3-
"updated": "2026-10-23",
3+
"updated": "2026-10-30",
44
"branches": [
55
{
66
"branch": "5.4",
@@ -286,6 +286,146 @@
286286
"rce": false,
287287
"verified": false,
288288
"note": "stage-1 and stage-2 leaks reproduce; stage-3 layout not found"
289+
},
290+
"8.4.11/amd64": {
291+
"file": "profiles/8.4.11-bookworm-amd64.json",
292+
"build": "php:8.4.11-apache (Debian bookworm, mod_php, prefork)",
293+
"rce": true,
294+
"verified": true,
295+
"note": "RCE verified"
296+
},
297+
"8.4.12/amd64": {
298+
"file": "profiles/8.4.12-bookworm-amd64.json",
299+
"build": "php:8.4.12-apache (Debian bookworm, mod_php, prefork)",
300+
"rce": false,
301+
"verified": false,
302+
"note": "calibration failed: heap/libphp leak not reproduced"
303+
},
304+
"8.4.13/amd64": {
305+
"file": "profiles/8.4.13-bookworm-amd64.json",
306+
"build": "php:8.4.13-apache (Debian bookworm, mod_php, prefork)",
307+
"rce": false,
308+
"verified": false,
309+
"note": "leaks calibrated; stage 3 not verified"
310+
},
311+
"8.4.14/amd64": {
312+
"file": "profiles/8.4.14-bookworm-amd64.json",
313+
"build": "php:8.4.14-apache (Debian bookworm, mod_php, prefork)",
314+
"rce": false,
315+
"verified": false,
316+
"note": "calibration failed: heap/libphp leak not reproduced"
317+
},
318+
"8.4.15/amd64": {
319+
"file": "profiles/8.4.15-bookworm-amd64.json",
320+
"build": "php:8.4.15-apache (Debian bookworm, mod_php, prefork)",
321+
"rce": false,
322+
"verified": false,
323+
"note": "calibration failed: heap/libphp leak not reproduced"
324+
},
325+
"8.4.16/amd64": {
326+
"file": "profiles/8.4.16-bookworm-amd64.json",
327+
"build": "php:8.4.16-apache (Debian bookworm, mod_php, prefork)",
328+
"rce": false,
329+
"verified": false,
330+
"note": "calibration failed: heap/libphp leak not reproduced"
331+
},
332+
"8.4.17/amd64": {
333+
"file": "profiles/8.4.17-bookworm-amd64.json",
334+
"build": "php:8.4.17-apache (Debian bookworm, mod_php, prefork)",
335+
"rce": false,
336+
"verified": false,
337+
"note": "calibration failed: heap/libphp leak not reproduced"
338+
},
339+
"8.4.18/amd64": {
340+
"file": "profiles/8.4.18-bookworm-amd64.json",
341+
"build": "php:8.4.18-apache (Debian bookworm, mod_php, prefork)",
342+
"rce": false,
343+
"verified": false,
344+
"note": "calibration failed: heap/libphp leak not reproduced"
345+
},
346+
"8.4.19/amd64": {
347+
"file": "profiles/8.4.19-bookworm-amd64.json",
348+
"build": "php:8.4.19-apache (Debian bookworm, mod_php, prefork)",
349+
"rce": true,
350+
"verified": true,
351+
"note": "RCE verified"
352+
},
353+
"8.4.6/amd64": {
354+
"file": "profiles/8.4.6-bookworm-amd64.json",
355+
"build": "php:8.4.6-apache (Debian bookworm, mod_php, prefork)",
356+
"rce": false,
357+
"verified": false,
358+
"note": "calibration failed: heap/libphp leak not reproduced"
359+
},
360+
"8.4.7/amd64": {
361+
"file": "profiles/8.4.7-bookworm-amd64.json",
362+
"build": "php:8.4.7-apache (Debian bookworm, mod_php, prefork)",
363+
"rce": false,
364+
"verified": false,
365+
"note": "calibration failed: heap/libphp leak not reproduced"
366+
},
367+
"8.4.8/amd64": {
368+
"file": "profiles/8.4.8-bookworm-amd64.json",
369+
"build": "php:8.4.8-apache (Debian bookworm, mod_php, prefork)",
370+
"rce": false,
371+
"verified": false,
372+
"note": "leaks calibrated; stage 3 not verified"
373+
},
374+
"8.5.1/amd64": {
375+
"file": "profiles/8.5.1-bookworm-amd64.json",
376+
"build": "php:8.5.1-apache (Debian bookworm, mod_php, prefork)",
377+
"rce": true,
378+
"verified": true,
379+
"note": "RCE verified (vessel stage 3; uid=33 www-data proof)"
380+
},
381+
"8.5.2/amd64": {
382+
"file": "profiles/8.5.2-bookworm-amd64.json",
383+
"build": "php:8.5.2-apache (Debian bookworm, mod_php, prefork)",
384+
"rce": true,
385+
"verified": true,
386+
"note": "RCE verified (vessel stage 3; uid=33 www-data proof)"
387+
},
388+
"8.5.3/amd64": {
389+
"file": "profiles/8.5.3-bookworm-amd64.json",
390+
"build": "php:8.5.3-apache (Debian bookworm, mod_php, prefork)",
391+
"rce": true,
392+
"verified": true,
393+
"note": "RCE verified (vessel stage 3; uid=33 www-data proof)"
394+
},
395+
"8.5.4/amd64": {
396+
"file": "profiles/8.5.4-bookworm-amd64.json",
397+
"build": "php:8.5.4-apache (Debian bookworm, mod_php, prefork)",
398+
"rce": true,
399+
"verified": true,
400+
"note": "RCE verified (vessel stage 3; uid=33 www-data proof)"
401+
},
402+
"8.5.6/amd64": {
403+
"file": "profiles/8.5.6-bookworm-amd64.json",
404+
"build": "php:8.5.6-apache (Debian bookworm, mod_php, prefork)",
405+
"rce": true,
406+
"verified": true,
407+
"note": "RCE verified (vessel stage 3; uid=33 www-data proof)"
408+
},
409+
"8.5.7/amd64": {
410+
"file": "profiles/8.5.7-bookworm-amd64.json",
411+
"build": "php:8.5.7-apache (Debian bookworm, mod_php, prefork)",
412+
"rce": true,
413+
"verified": true,
414+
"note": "RCE verified (vessel stage 3; uid=33 www-data proof)"
415+
},
416+
"8.5.8/amd64": {
417+
"file": "profiles/8.5.8-bookworm-amd64.json",
418+
"build": "php:8.5.8-apache (Debian bookworm, mod_php, prefork)",
419+
"rce": true,
420+
"verified": true,
421+
"note": "RCE verified (vessel stage 3; uid=33 www-data proof)"
422+
},
423+
"8.5.9/amd64": {
424+
"file": "profiles/8.5.9-bookworm-amd64.json",
425+
"build": "php:8.5.9-apache (Debian bookworm, mod_php, prefork)",
426+
"rce": true,
427+
"verified": true,
428+
"note": "RCE verified (vessel stage 3; uid=33 www-data proof)"
289429
}
290430
},
291431
"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."

‎docs/calibration-logs/matrix_report.json‎

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,53 @@
44
"status": "leaks-only",
55
"rce": false,
66
"profile": "profiles/8.4.8-bookworm-amd64.json"
7+
},
8+
{
9+
"label": "8.4.10-bookworm-amd64",
10+
"status": "rce",
11+
"rce": true,
12+
"profile": "profiles/8.4.10-bookworm-amd64.json"
13+
},
14+
{
15+
"label": "8.4.11-bookworm-amd64",
16+
"status": "rce",
17+
"rce": true,
18+
"profile": "profiles/8.4.11-bookworm-amd64.json"
19+
},
20+
{
21+
"label": "8.4.19-bookworm-amd64",
22+
"status": "rce",
23+
"rce": true,
24+
"profile": "profiles/8.4.19-bookworm-amd64.json"
25+
},
26+
{
27+
"label": "8.4.20-bookworm-amd64",
28+
"status": "rce",
29+
"rce": true,
30+
"profile": "profiles/8.4.20-bookworm-amd64.json"
31+
},
32+
{
33+
"label": "8.4.25-bookworm-amd64",
34+
"status": "rce",
35+
"rce": true,
36+
"profile": "profiles/8.4.25-bookworm-amd64.json"
37+
},
38+
{
39+
"label": "8.5.5-bookworm-amd64",
40+
"status": "rce",
41+
"rce": true,
42+
"profile": "profiles/8.5.5-bookworm-amd64.json"
43+
},
44+
{
45+
"label": "8.5.9-bookworm-amd64",
46+
"status": "rce",
47+
"rce": true,
48+
"profile": "profiles/8.5.9-bookworm-amd64.json"
49+
},
50+
{
51+
"label": "8.5.11-bookworm-aarch64",
52+
"status": "rce",
53+
"rce": true,
54+
"profile": "profiles/8.5.11-bookworm-aarch64.json"
755
}
8-
]
56+
]
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Independent verification run — 2026-10-30
2+
3+
These runs were made by the maintainer on the local, disposable labs only
4+
(loopback), using the profiles and the dispatcher from this branch.
5+
6+
Environment: Docker Desktop on macOS arm64; official `php:<version>-apache`
7+
images under `--platform linux/amd64` (except 8.5.11 aarch64), the lab
8+
`php.ini`/`apache.conf` from `lab/rce/`, one prefork worker,
9+
`display_errors=On`, `memory_limit=8M`, `post_max_size=512M`.
10+
11+
Command shape:
12+
13+
```sh
14+
python3 tools/php2shell_auto.py \
15+
-u http://127.0.0.1:<port>/index.php \
16+
--container p2s-verify-<version> \
17+
--repo-dir <upstream-checkout> \
18+
--profile php-<version>-bookworm-<arch> --arch <arch> \
19+
-c 'id>/out/p1'
20+
```
21+
22+
Result: `PRE-AUTH RCE CONFIRMED` with `uid=33(www-data)`.
23+
24+
| Build | Profile | Result |
25+
| --- | --- | --- |
26+
| 8.4.10 amd64 | `php-8.4.10-bookworm-amd64` | `uid=33(www-data)` |
27+
| 8.4.11 amd64 | `php-8.4.11-bookworm-amd64` | `uid=33(www-data)` |
28+
| 8.4.19 amd64 | `php-8.4.19-bookworm-amd64` | `uid=33(www-data)` |
29+
| 8.4.20 amd64 | `php-8.4.20-bookworm-amd64` | `uid=33(www-data)` |
30+
| 8.4.25 amd64 | `php-8.4.25-bookworm-amd64` | `uid=33(www-data)` |
31+
| 8.5.5 amd64 | `php-8.5.5-bookworm-amd64` | `uid=33(www-data)` (vessel stage 3) |
32+
| 8.5.9 amd64 | `php-8.5.9-bookworm-amd64` | `uid=33(www-data)` (vessel stage 3) |
33+
| 8.5.11 aarch64 | `php-8.5.11-bookworm-aarch64` | `uid=33(www-data)` (carrier stage 3) |
34+
35+
The remaining RCE profiles in this PR (8.5.0–8.5.4, 8.5.6–8.5.8 and
36+
8.5.10 amd64) are still **contributor-reported**: Docker Hub's unauthenticated
37+
pull limit blocked the additional amd64 image pulls during this review. They
38+
are not demoted, but they should be independently re-run when the limit
39+
resets; the reproducible command is the one above.
40+
41+
The full command output for each run is kept in the maintainer's local
42+
verification log; the entries above are the ones reflected in
43+
`docs/calibration-logs/matrix_report.json`.

‎docs/profile-inventory.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,10 @@ Generated from `profiles/*.json` by `tools/php2shell_inventory.py`.
7171
- **8.5.0 – 8.5.9** — `php:8.5.{0..9}-apache`. **Vessel stage 3** (see
7272
below): the upstream carrier layout is unreachable on the early-8.5 heap,
7373
so S steers the dangling reference one page up onto B2's blob page and
74-
blob 1 embeds the reference pattern itself. `uid=33(www-data)` proofs on
75-
all ten — the geometry calibrated on 8.5.0/8.5.5 (under gdb and without
76-
it) carried over to 8.5.1–8.5.9 unchanged. Fixed in 8.5.12.
74+
blob 1 embeds the reference pattern itself. The geometry calibrated on
75+
8.5.0/8.5.5 (under gdb and without it) was carried over to 8.5.1–8.5.9;
76+
the maintainer independently re-verified 8.5.5 and 8.5.9 on 2026-10-30,
77+
and the remaining early-8.5 rows are contributor-reported. Fixed in 8.5.12.
7778

7879
### Leaks reproduced, stage 3 misses
7980

‎profiles/7.4.33-buster-amd64.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"htdata": null
1717
},
1818
"stages": {
19-
"stage1_n": 0,
20-
"stage1_forge_len": 0,
19+
"stage1_n": null,
20+
"stage1_forge_len": null,
2121
"stage2_t": 406,
2222
"stage2_v": 16,
2323
"stage3_pads": null,
@@ -34,4 +34,4 @@
3434
"libphp_base": null
3535
},
3636
"status": "calibration failed: heap/libphp leak not reproduced"
37-
}
37+
}

‎profiles/8.1.34-bullseye-amd64.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"htdata": null
1717
},
1818
"stages": {
19-
"stage1_n": 0,
20-
"stage1_forge_len": 0,
19+
"stage1_n": null,
20+
"stage1_forge_len": null,
2121
"stage2_t": 406,
2222
"stage2_v": 16,
2323
"stage3_pads": null,
@@ -34,4 +34,4 @@
3434
"libphp_base": null
3535
},
3636
"status": "calibration failed: heap/libphp leak not reproduced"
37-
}
37+
}

‎profiles/8.2.28-bookworm-amd64.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"htdata": null
1717
},
1818
"stages": {
19-
"stage1_n": 0,
20-
"stage1_forge_len": 0,
19+
"stage1_n": null,
20+
"stage1_forge_len": null,
2121
"stage2_t": 406,
2222
"stage2_v": 16,
2323
"stage3_pads": null,
@@ -34,4 +34,4 @@
3434
"libphp_base": null
3535
},
3636
"status": "calibration failed: heap/libphp leak not reproduced"
37-
}
37+
}

‎profiles/8.2.34-bookworm-aarch64.json‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"htdata": null
1414
},
1515
"stages": {
16-
"stage1_n": 0,
17-
"stage1_forge_len": 0,
16+
"stage1_n": null,
17+
"stage1_forge_len": null,
1818
"stage2_t": 406,
1919
"stage2_v": 16,
2020
"stage3_pads": null,
@@ -30,8 +30,7 @@
3030
"chunk_base": null,
3131
"libphp_base": null
3232
},
33-
"status": "calibration failed: stage 1 heap leak not reproduced on 8.2.34",
34-
"note": "libphp offsets extracted; the 8.4/8.5 upload-progress leak shape did not reproduce on this branch",
33+
"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)",
3534
"distro": "debian",
3635
"arch": "aarch64"
37-
}
36+
}

‎profiles/8.2.34-bookworm-amd64.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"htdata": null
1717
},
1818
"stages": {
19-
"stage1_n": 0,
20-
"stage1_forge_len": 0,
19+
"stage1_n": null,
20+
"stage1_forge_len": null,
2121
"stage2_t": 406,
2222
"stage2_v": 16,
2323
"stage3_pads": null,
@@ -34,4 +34,4 @@
3434
"libphp_base": null
3535
},
3636
"status": "calibration failed: heap/libphp leak not reproduced"
37-
}
37+
}

0 commit comments

Comments
 (0)