# CVE-2024-7954 - SPIP 4.2.8 Remote Command Execution (RCE) Exploit
This script exploits a Remote Code Execution vulnerability in SPIP version 4.2.8 via the `porte_plume_previsu` endpoint. The vulnerability allows unauthenticated attackers to inject PHP code through preview rendering of crafted image tags.
> **CVE ID:** CVE-2024-7954
> **Component:** SPIP CMS (`porte_plume_previsu`)
> **Impact:** Unauthenticated Remote Command Execution
> **Severity:** Critical
---
## Exploit Capabilities
- Execute arbitrary system commands
- Retrieve live command output
- Automatically extract and display IP geolocation info
- Proxy support (Burp/ZAP or other)
---
## Usage
```bash
python3 cve_2024_7954_rce.py --url <TARGET_URL> --cmd <COMMAND> [--proxy <IP:PORT>]
```
---
#### Example 1
```bash
python3 cve_2024_7954_rce.py --url <TARGET_URL> --cmd "whoami" --proxy "127.0.0.1:8080"
```

#### Burp Suite Request/Response:

---
#### Example 2
```bash
python3 cve_2024_7954_rce.py --url <TARGET_URL> --cmd "id" --proxy "127.0.0.1:8080"
```

#### Burp Suite Request/Response:

---
#### Example 3
```bash
python3 cve_2024_7954_rce.py --url <TARGET_URL> --cmd "uname -a" --proxy "127.0.0.1:8080"
```

##### Burp Suite Request/Response:

---
## ⚠️ Disclaimer
This exploit script is for authorized security testing, defensive research, and educational purposes only.
---
## Official Channels
- [YouTube @rootctf](https://www.youtube.com/@rootctf)
- [X @r0otk3r](https://x.com/r0otk3r)
[4.0K] /data/pocs/f635bc233d6fe5c405542e8b90bb6ef558269998
├── [4.1K] cve_2024_7954_rce.py
└── [2.0K] README.md
0 directories, 2 files