Skip to content
KitploitKITPLOIT
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-27520-PoC — Safe educational simulation of CVE-2025-27520 with a Flask vulnerable service and Python PoC scanner for demonstrating deserialization and broken access control vulnerabilities. | Kitploit
Tools/GitHubGitHub/evillm/cve-2025-27520-poc
Container SecurityVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubevillm/cve-2025-27520-poc

CVE-2025-27520-PoC

Safe educational simulation of CVE-2025-27520 with a Flask vulnerable service and Python PoC scanner for demonstrating deserialization and broken access control vulnerabilities.

View Repository
37 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2025-27520 — Safe Educational Simulation / PoC (Demo Stand)

⚠️ Important: This is a safe educational simulation of the CVE-2025-27520 vulnerability.
The project includes a simulation service (Flask) and a safe PoC scanner (Python).
On receiving a test marker, the simulation creates an evidence file in data/ instead of executing arbitrary commands.

📋 Repository Contents

root@kitploit:~
CVE-2025-27520-final/
├── 📄 README_ru.md                 # This documentation file
├── 🐳 Dockerfile                   # Stand image (Flask)
├── 🐳 docker-compose.yml           # Container launch configuration
├── 📊 result.json                  # Example scanner result
├── ⚙️ setup.cfg                    # flake8 configuration
├── 📁 app/                         # Service source code
│   ├── 🐍 app.py                   # Flask simulation service
│   └── 📦 requirements.txt         # Service dependencies
├── 📁 src/                         # Scanner source code
│   ├── 🐍 scanner.py               # PoC / scanner (Python)
│   └── 📦 requirements.txt         # Scanner dependencies
├── 📁 data/                        # Mounted folder for evidence

---

## 🎯 Vulnerability Brief Description

**CVE-2025-27520 (simulation)** — demonstration of vulnerable deserialization / broken access control  

**In a real product this could lead to:**
- Privilege escalation
- Remote code execution  
- Disclosure of confidential data

**In this educational version we:**
- Safely confirm the vulnerability by creating an evidence file
- Provide a lightweight stand for local testing
- Follow responsible disclosure principles

---

## 🛠 System Requirements

- **OS:** Linux 
- **Docker:** Docker
- **Python:** 3.11 or newer
---

## 🚀 Quick Start 

### 1. Start the Service
```bash
docker-compose up -d

2. Check Service Status

root@kitploit:~
curl http://127.0.0.1:5000/health

Expected response: {"status":"ok"} or HTTP 200

3. Set up Environment and Run Scanner

root@kitploit:~
python3 -m venv venv
source venv/bin/activate
pip install -r src/requirements.txt
python3 src/scanner.py --url http://127.0.0.1:5000

4. Check Results

root@kitploit:~
cat result.json
ls -l data/
cat data/EVIDENCE_LANG_BENTO_SIM.txt

📦 Detailed Installation (Docker)

Build and Start Containers

root@kitploit:~
# In the project root
docker-compose build --no-cache
docker-compose up -d

Check Status

root@kitploit:~
docker ps
docker-compose ps
docker logs bento-sim --tail 100

Expected result: container bento-sim in Up state with port forwarding 0.0.0.0:5000->5000/tcp


🔍 PoC / Scanner: Description and Usage

Key Features

  • Accepts target URL via --url parameter
  • Sends a safe JSON request with a test marker
  • Checks for evidence of the vulnerability
  • Saves results in JSON format

Run Commands

root@kitploit:~
source venv/bin/activate
python3 src/scanner.py --url http://127.0.0.1:5000

Output Format

root@kitploit:~
[
  {
    "ip": "http://127.0.0.1:5000",
    "vuln": true
  }
]

🖥 Simulation Service Description

Main endpoints:

  • POST /simulate_deserialize - accepts JSON with key payload
  • GET /evidence - checks for the existence of an evidence file
  • GET /health - service health check

Logic:

  • On receiving the marker EVIDENCE_TRIGGER, creates an evidence file
  • Listens on 0.0.0.0:5000
  • All operations are isolated in the container

📁 Evidence File Structure

  • data/EVIDENCE_LANG_BENTO_SIM.txt - evidence file, created on successful simulation
  • result.json - scan results, generated by the PoC script

🐛 Troubleshooting

If PoC reports vuln: false

  1. Check service availability:
root@kitploit:~
docker ps
curl http://127.0.0.1:5000/health
  1. Manual trigger check:
root@kitploit:~
curl -v -X POST http://127.0.0.1:5000/simulate_deserialize \
  -H "Content-Type: application/json" \
  -d '{"payload":"Hello EVIDENCE_TRIGGER"}'

Expected response: {"result":"evidence created"}

  1. View logs:
root@kitploit:~
docker logs bento-sim --tail 200
  1. Check network settings:
root@kitploit:~
sudo ss -ltnp | grep 5000
sudo iptables -L -n -v
  1. Code style check (PEP8):
root@kitploit:~
pip install black autopep8
black src/scanner.py
# or
autopep8 --in-place --aggressive --aggressive src/scanner.py

Create Split Archive

root@kitploit:~
7z a -v3g -m0=Copy "CVE-2025-27520-stand.7z" "file.ova"

Check OVA Contents

root@kitploit:~
tar -tf file.ova | head -n 20

Import into VMware

  • Use File → Import in VMware Workstation / VirtualBox

📤 Release Packaging

Prepare Final Structure

root@kitploit:~
CVE-2025-27520-final/
  ├── 📄 README_ru.md
  ├── 🐳 Dockerfile
  ├── 🐳 docker-compose.yml
  ├── 📁 app/
  ├── 📁 src/
  ├── 📊 result.json
  ├── 📁 data/

Create Archive (< 4GB)

root@kitploit:~
zip -r CVE-2025-27520-final.zip CVE-2025-27520-final
sha256sum CVE-2025-27520-final.zip > CVE-2025-27520-final.zip.sha256

Test Archive

root@kitploit:~
# For ZIP
unzip -t CVE-2025-27520-final.zip
Download Tool