Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2024-4577 PoC — PHP 操作系统命令注入漏洞

Source
Associated Vulnerability
Title:PHP 操作系统命令注入漏洞 (CVE-2024-4577)
Description:PHP是一种在服务器端执行的脚本语言。 PHP存在操作系统命令注入漏洞,该漏洞源于在特定条件下,Windows系统使用“Best-Fit”行为替换命令行中的字符,这可能导致PHP CGI模块错误地将这些字符解释为PHP选项,从而泄露脚本的源代码,在服务器上运行任意PHP代码等。以下版本受到影响:8.1至8.1.29之前版本,8.3至8.3.8之前版本,8.2至8.2.20之前版本。
Description
PHP CGI Parameter Injection Vulnerability (RCE: Remote Code Execution)
Readme
# CVE-2024-4577 Exploit
Exploit of the PHP CGI Argument Injection vulnerability (CVE-2024-4577) to achieve Remote Code Execution (RCE) on a vulnerable PHP version running in a Windows environment, discovered by [Orange Tsai](https://x.com/orange_8361). For more details, check out [DEVCORE's Blog](https://devco.re/blog/2024/06/06/security-alert-cve-2024-4577-php-cgi-argument-injection-vulnerability-en/).
## Requirements
Language Used = Python3<br />
Modules/Packages used:
* random
* string
* requests
* warnings
* datetime
* optparse
* colorama
* multiprocessing
* time
<!-- -->
Install the dependencies:
```bash
pip install -r requirements.txt
```
File Snapshot

[4.0K] /data/pocs/4079d1687dde5c515b98b744564dd8be15aea0f9 ├── [4.1K] main.py ├── [ 652] README.md └── [ 26] requirements.txt 0 directories, 3 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.