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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-35374 PoC — Mocodo 安全漏洞

Source
Associated Vulnerability
Title: Mocodo 安全漏洞 (CVE-2024-35374)
Description:Mocodo Mocodo Online 4.2.6 and below does not properly sanitize the sql_case input field in /web/generate.php, allowing remote attackers to execute arbitrary commands and potentially command injection, leading to remote code execution (RCE) under certain conditions.
Description
A Metasploit module for CVE-2024-35374
Readme
# CVE-2024-35374
A Metasploit module for [CVE-2024-35374](https://nvd.nist.gov/vuln/detail/CVE-2024-35374)
## Usage
To use this module, you will first need to add it to Metaploit. Copy the `.rb` file into the Metasploit database with the following comamnd.
```bash
sudo cp cve_2024_35374.rb /usr/share/metasploit-framework/modules/exploits/unix/http/cve_2024_35374.rb
```
Then, open the Metasploit console, reload the database, and use the exploit.
```
reload_all
use exploit/unix/http/cve_2024_35374
```
Then, run `info` to see the options and information provided. The default payload, `generic/custom` works best with this exploit. Use the `PAYLOADSTR` variable to execute shell commands on the remote host. 
## Testing
Use the provided Dockerfile to build a test web application.
```bash
docker build -t mocodo .
docker run -d -p 80:8080 mocodo
```
Once built and running, you can then run the Metasploit module against the container. 
## Notes
For additional information on this exploit, see my [blog post](https://blog.rikoot.com/posts/cve-2024-35374/). 
File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →