Share
## https://sploitus.com/exploit?id=08DF24ED-5A3C-5A4F-A112-CEB9CF265340
# ๐Ÿ” Replayable Attack Simulation โ€“ CVE-2025-20029

![Docker](https://img.shields.io/badge/container-docker-blue)
![PoC](https://img.shields.io/badge/type-replayable%20PoC-critical)
![CVE](https://img.shields.io/badge/CVE-2025--20029-red)
![License](https://img.shields.io/badge/license-MIT-green)
![Status](https://img.shields.io/badge/status-lab%20use%20only-yellow)

> โš ๏ธ This repository simulates CVE-2025-20029 in a **safe and controlled environment**.  
> It does **not** interact with real F5 BIG-IP systems or exploit any production service.  
> The goal is educational: to study the vulnerability pattern and test payloads safely.

## ๐Ÿ›  About CVE-2025-20029

CVE-2025-20029 is a high-severity command injection vulnerability affecting F5 BIG-IP systems.  
The issue resides in the **iControl REST API**, which, under certain configurations, allows an authenticated user to execute arbitrary system commands via the `/mgmt/tm/util/bash` endpoint.

- **Impact:** Remote Code Execution (RCE) as root
- **Authentication Required:** Yes (standard user is sufficient)
- **CVSS v3.1 Score:** 8.8
- **Attack Vector:** HTTP POST to iControl REST with crafted JSON payload

> This simulation demonstrates how the vulnerability could be exploited in a controlled, containerized environment.

## ๐Ÿงช Exploit Script Overview

The `exploit/exploit.py` script simulates a remote code execution scenario by sending a crafted JSON payload to the vulnerable F5 BIG-IP endpoint `/mgmt/tm/util/bash`.

**Key functionalities:**

- Sends a POST request with a JSON payload like `{"command": "id"}`  
- Emulates real-world misconfiguration where user-supplied input is passed directly to `bash`  
- Prints server responses to confirm execution

This script is intentionally minimal to make the exploit path transparent and easily modifiable.  
It is ideal for testing, replaying the attack vector, or incorporating into training labs.

## ๐Ÿงฏ PoC Limitations

This project does not:

- Include the actual vulnerable F5 codebase
- Use unsafe or unauthorized access to any real infrastructure
- Reproduce the exact serialization vulnerability from CVE-2025-20029

Instead, it focuses on:

- Understanding the attack logic
- Reproducing post-exploitation behavior safely
- Teaching others how such attacks are structured

## ๐Ÿณ Features

- Reproducible PoC in a Docker-contained lab
- One-command replay (`replay.sh`)
- Auto-generated report (`report.md`)
- CVSS/metadata tagging via `meta.yaml`

## ๐Ÿ–ฅ๏ธ How to Use

### 1. Prerequisites

- Docker + Docker Compose
- Python 3.8+

### 2. Run Simulation
```sh
cd CVE-2025-20029

# Make scripts executable
chmod +x replay.sh

# Run the exploit + generate Markdown report
sudo ./replay.sh
```

![screenshot](2025-05-01_16-31.png)

## ๐Ÿ“ Directory Structure

```yaml
.
โ”œโ”€โ”€ app.py               # Flask mock app simulating vulnerable endpoint
โ”œโ”€โ”€ Dockerfile
โ”œโ”€โ”€ docker-compose.yml
โ”œโ”€โ”€ replay.sh
โ”œโ”€โ”€ report.md /         # Auto-generated report
โ”œโ”€โ”€ exploit/
โ”‚   โ””โ”€โ”€ exploit.py
โ”œโ”€โ”€ logs/
โ”‚   โ””โ”€โ”€ run1.log
โ”œโ”€โ”€ meta.yaml
โ”œโ”€โ”€ detection.md
โ”œโ”€โ”€ remediation.md
โ”œโ”€โ”€ utils/
โ”‚   โ”œโ”€โ”€ report_generator.py
```

## ๐Ÿ“„ Meta
CVE: CVE-2025-20029
- Severity: High
- CVSS: 8.8
- Tags: command-injection, rest-api, auth-required
- Safe to Run? โœ… Yes โ€” fully isolated via Docker.

## ๐Ÿ“š PoC Reference

This simulation was inspired by public research on CVE-2025-20029:

- ๐Ÿ”— [CyberSecurityNews โ€“ PoC Exploit Released for F5 BIG-IP CVE-2025-20029](https://cybersecuritynews.com/poc-exploit-released-for-f5-big-ip/?utm_source=chatgpt.com)

> ๐Ÿ’ก **Note**
> The implementation here is **not a 1:1 copy of any production environment**,  but a minimal, educational mock-up using Flask and Docker to safely demonstrate the core logic of the vulnerability.