A Metasploit module for CVE-2024-35374
# 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/).
登录后查看神龙缓存的 POC 文件快照
登录查看