r/redteamsec • • 29d ago

intelligence php2shell-lab — a black-box Docker range for PHP2Shell (CVE-2026-109618/19) with a closing heap-leak window

https://github.com/taniungou/php2shell-lab

I built a reproducible, engine-level practice range for PHP2Shell and put it on GitHub. Not another "run the PoC" box:

Black-box by design — no Server: PHP, no phpinfo, version fingerprinting must come from behavior, not headers

The heap-disclosure window is time-boxed: it's open right after boot and closes. Leak first, recon second — window time spent browsing is gone until next up

Two privilege paths to proof.txt, different elegance grades

Honest platform matrix: RCE landing verified on x86_64; on Apple Silicon/ARM the disclosure chain is the intended solution (documented, not hidden)

Calibrated against an autonomous pentest agent over multiple live-fire rounds; human expectation 2–4h

>

docker compose up -d --build and go. MIT licensed, full kill chain in docs/SOLUTION.md.

https://github.com/tani2shell/php2shell-lab

Feedback and write-ups welcome — file an issue if a step fights you.

2 Upvotes

0 comments sorted by