ZeroDayEvil/CVE-2026-21858-n8n-FullChain
🛡️ Official AI Security Tool module for CVE-2026-21858 + CVE-2025-68613 (n8n "Ni8mare" Unauthenticated Arbitrary File Read & Expression Injection RCE Full Chain).
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository Của Tuần
#1 Repository Của Tuần
#1 Repository Của Tuần
🛡️ Ni8mare: Chuỗi khai thác đầy đủ n8n từ đọc file tùy ý đến RCE
Module AI Security Tool chính thức tái hiện chuỗi tấn công "Ni8mare" trên n8n — kết hợp CVE-2026-21858 (đọc file tùy ý không cần xác thực) và CVE-2025-68613 (bypass sandbox expression injection) để đạt RCE không cần xác thực ban đầu.
Dự án này là một module của hệ sinh thái AI Security Tool do ZeroDayEvil phát hành, cung cấp công cụ chẩn đoán và khai thác hoàn chỉnh cho lỗ hổng chuỗi trên n8n workflow automation engine. Lỗ hổng được đặt biệt danh Ni8mare (kết hợp "n8n" + "nightmare"), cho phép kẻ tấn công từ việc đọc file hệ thống tùy ý (như /proc/self/environ, database.sqlite) để lấy encryptionKey và hash mật khẩu, sau đó giả mạo JWT cookie admin, cuối cùng bypass sandbox JavaScript qua this.process.mainModule.require để thực thi lệnh hệ thống tùy ý. Ảnh hưởng n8n phiên bản ≤ 1.65.0 (AFR) và ≥ 0.211.0 (RCE), đã được vá trong 1.121.0 và 1.120.4+.
✨ Điểm nổi bật
- Chuỗi khai thác 3 bước: Đọc file tùy ý không cần xác thực → Giả mạo JWT admin qua encryptionKey/hash → Expression injection bypass sandbox để RCE
- CVE-2026-21858 (Arbitrary File Read): Lợi dụng nhầm lẫn Content-Type (
application/json) trên endpoint upload form để kiểm soát tham sốfilepathđọc file hệ thống - CVE-2025-68613 (Expression Injection): Bypass sandbox JavaScript n8n qua
this.process.mainModule.require('child_process').execSync()thực thi lệnh tùy ý - Payload expression injection mẫu:
={{ (function() { var require = this.process.mainModule.require; var execSync = require("child_process").execSync; return execSync("id").toString(); })() }} - Yêu cầu tiên quyết: Cần một workflow form công khai với binary output để kích hoạt đọc file; expression injection hoạt động trên cài đặt mặc định không cần node đặc biệt
- Độ nghiêm trọng Critical: CVSS v3.1 10.0 (AFR) + 9.9 (RCE) — chuỗi RCE không cần xác thực
- Module tích hợp AI Security Tool: Có thể chạy độc lập hoặc như một phần hệ sinh thái audit bảo mật tự động hóa
- Mã nguồn mở MIT: Cung cấp tài liệu kỹ thuật chi tiết, sơ đồ tấn công Mermaid, và payload thực tế
💡 Vì sao đáng chú ý
Ni8mare minh họa rõ ràng nguy hiểm của việc chuỗi các lỗ hổng "thấp" thành tác động Critical: một lỗi nhầm lẫn Content-Type cho phép đọc file môi trường, kết hợp với bypass sandbox expression injection có sẵn trong thiết kế n8n, tạo thành đường dẫn RCE hoàn chỉnh không cần xác thực. Điểm khác biệt so với các PoC đơn lẻ là module này cung cấp toàn bộ chuỗi khai thác tự động hóa — từ phát hiện form dễ bị tấn công, trích xuất secret, forge JWT, đến thực thi lệnh — phản ánh quy trình tấn công thực tế của red team. Phù hợp cho security researcher, pentester audit n8n, và team DevSecOps kiểm tra việc vá lỗ hổng (cần nâng cấp ≥ 1.121.0).
#n8n #CVE-2026-21858 #CVE-2025-68613 #RCE #ArbitraryFileRead #SecurityResearch #AI-Security-Tool #TiniX
Similar Projects
Discover other similar projects and AI models.
Fully autonomous AI Agents system capable of performing complex penetration testing tasks
Reverse engineer anything with agents, from app behavior down to native binaries.
HexStrike AI MCP Agents is an advanced MCP server that lets AI agents (Claude, GPT, Copilot, etc.) autonomously run 150+ cybersecurity tools for automated pentesting, vulnerability discovery, bug bounty automation, and security research. Seamlessly bridge LLMs with real-world offensive security capabilities.
The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.
agent runtime security - zero trust, zero setup, zero latency agent sandboxing
PentestAgent is an AI agent framework for black-box security testing, supporting bug bounty, red-team, and penetration testing workflows.
Akto is the fastest growing AI Security platform for your teams to secure AI agents, MCPs, LLMs, Agent skills, Gen AI apps in your organization.
LuaN1aoAgent is a fully autonomous AI-driven penetration testing agent powered by graph-based cognitive reasoning.
Open-source autonomous AI penetration testing. 50 specialist agents across web, API, cloud, Active Directory, Kubernetes, CI/CD and AI/LLM (OWASP LLM Top 10). Runs on a local LLM behind a Privacy Gateway. Integrates with GitHub, GitLab, Jenkins, VS Code, JetBrains, n8n, Grafana & Splunk.