Detailed writeup of three Web challenges from the Jinghua Cup finals: achieving RCE with the PHP2Shell exploit chain
京华杯决赛部分题目详细wp
AI summary
The author published detailed writeups of three Web challenges from the Jinghua Cup finals; all three exploited the PHP 8.5.11 request lifecycle memory corruption vulnerabilities CVE-2026-109618 / CVE-2026-109619 (PHP2Shell) to achieve RCE before entering application code. The mechanism is that multipart parsing hits the 16M memory_limit and triggers OOM, leaving dangling pointers such as PS(id); after reclaiming them with controllable form fields, the heap and libphp base address are leaked via Set-Cookie, and finally a forged HashTable changes the destructor callback to zif_system to execute commands. The end of the article includes the complete exploit script and steps to reproduce it on a local Docker target.