
Nuclei YAML template for CVE-2024-4577, a Windows PHP-CGI argument injection vulnerability enabling unauthenticated RCE in affected PHP and XAMPP setups.
php-CGI is an interface used by web servers to run PHP scripts. It connects the PHP interpreter to the web server through CGI (Common Gateway Interface).
PHP ignored the Best-Fit feature for character conversion in Windows during design. When php-cgi runs on Windows and uses the following character sets (Simplified Chinese 936 / Traditional Chinese 950 / Japanese 932, etc.), attackers can bypass the CVE-2012-1823 patch, thereby executing arbitrary PHP code without requiring login.
PHP Windows 8.3.0 <= affected versions < 8.3.8
PHP Windows 8.2.0 <= affected versions < 8.2.20
PHP Windows 8.1.0 <= affected versions < 8.1.29
XAMPP Windows affected versions <= 8.2.12
XAMPP Windows affected versions <= 8.1.25
XAMPP Windows affected versions <= 8.0.30
WeChat Official Account: nday POC
This file can be used with the nuclei tool. Finding vulnerabilities, after all, should be a joyful experience.
If you have any questions, feel free to raise them. Thank you.