
Pre-Auth-n8n-Exploit-Kette: beliebiges Dateilesen (CVE-2026-21858) bis hin zu RCE per Expression-Injection (CVE-2025-68613), mit Docker-Lab, PoC-Skripten und Analyse.
Übungsumgebung (Vulnerable Lab) und detaillierter Exploit-Analysebericht der Schwachstellenkette Ni8mare auf der Plattform n8n — von Arbitrary File Read (CVE-2026-21858) bis Remote Code Execution (CVE-2025-68613), ohne Authentifizierung.
Bitte sehen Sie sich das vollständige Analyse-Dokument mit PoC-Abbildungen, die jeden Schritt veranschaulichen, im offiziellen Bericht an:
(Der Bericht umfasst: Analyse der n8n-Architektur, das Prinzip der Content-Type-Confusion, Expression-Injection-Sandbox-Escape, die Angriffskette von File Read bis RCE, Debug-Trace des Quellcodes, Root-Cause-Analyse sowie Empfehlungen zur Behebung.)
Content-Type Confusion Forge Admin JWT Expression Injection
(CVE-2026-21858) (CVE-2025-68613)
POST application/json --> Đọc config + DB --> Tạo workflow với
filepath: /etc/passwd Tính jwt_secret malicious expression
Ký admin token this.process.mainModule
.require("child_process")
Arbitrary File Read --> Auth Bypass --> Remote Code Execution
(CVSS 10.0) (CVSS 9.9)
cd ni8mare-lab
docker compose up -d --build
docker compose logs -f
Sobald das Banner "Ni8mare Lab -- READY!" zusammen mit Version 1.65.0 erscheint, ist das Labor bereit. Greife auf n8n unter http://localhost:5678/ zu.
[email protected] / ExploitLab123!docker compose down -v
├── REPORT.md # Báo cáo phân tích kỹ thuật & PoC chi tiết
├── ni8mare-lab/ # Môi trường Docker lab
│ ├── docker-compose.yml # Cấu hình Docker n8n 1.65.0
│ ├── Dockerfile # Custom image với setup script
│ └── init/setup.sh # Script tạo admin + workflow vulnerable
├── ni8mare_exploit.py # Exploit script — target Docker Linux (lab)
├── ni8mare_exploit_2.py # Exploit script — target Windows (n8n build từ source, dùng để debug)
└── img/ # Hình ảnh minh chứng PoC
├── setup-*.png # Screenshots thiết lập lab
├── condition-*.png # Screenshots điều kiện khai thác
├── recon-*.png # Screenshots reconnaissance
├── exploit-*.png # Screenshots exploitation
└── debug-*.png # Screenshots debug source code
| Eigenschaft | Details |
|---|
| CVE-ID | CVE-2026-21858 (File Read) + CVE-2025-68613 (RCE) |
| Name | Ni8mare |
| Schwachstellentyp | Content-Type Confusion (Arbitrary File Read) + Expression Injection (Sandbox Escape → RCE) |
| Schweregrad | Kritisch — CVSS 10.0 + 9.9 |
| Betroffenes Produkt | n8n < 1.121.0 (file read) / 0.211.0 – < 1.120.4 (RCE) |
| Authentifizierungsanforderung | Nicht erforderlich (Pre-Auth-Vollkette) |