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 — Laravel RCE Exploit PoC - CVE-2021-3129 (user-friendly with automatic log path detection) | Kitploit
Tools/GitHubGitHub/joshuavanderpoll/cve-2021-3129
Payload GenerationVulnerability AnalysisCode AnalysisExploitationWeb Application ExploitationPenetration Testing
GitHubjoshuavanderpoll/cve-2021-3129

CVE-2021-3129

Laravel RCE Exploit PoC - CVE-2021-3129 (user-friendly with automatic log path detection)

View Repository
14827353 months agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Website
Share

Remote Code Execution: Laravel (CVE-2021-3129)

Python

📜 Description

This script is designed to exploit the Remote Code Execution (RCE) vulnerability identified in several Laravel versions, known as CVE-2021-3129. By leveraging this vulnerability, the script allows users to write and execute commands on a target website running a vulnerable Laravel instance, provided that the "APP_DEBUG" configuration is set to "true" in the ".env" file.

Thanks everyone for all the GitHub stars! ❤️ Really appreciate the support! 🚀

📚 Table of Contents

  • 📜 Description
  • 🛠️ Installation
  • ⚙️ Usage
  • 🐋 Docker POC
  • 💻 Example
  • 🩹 Patch options
  • 🕵🏼 References
  • 📢 Disclaimer

🛠️ Installation

[!NOTE] To ensure a clean and isolated environment for the project dependencies, it's recommended to use Python's venv module.

OSX/Linux

root@kitploit:~
git clone https://github.com/joshuavanderpoll/CVE-2021-3129.git
cd CVE-2021-3129
python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt

Windows

root@kitploit:~
git clone https://github.com/joshuavanderpoll/CVE-2021-3129.git
cd CVE-2021-3129
python -m venv .venv 
.venv\Scripts\activate
pip3 install -r requirements.txt

⚙️ Usage

Usage

🐋 Docker POC

root@kitploit:~
docker build -t laravel_vulnerable .
docker run -p 8000:8000 laravel_vulnerable

💻 Example

Example

🩹 Patch options

  • env (Updates the .env file to set APP_DEBUG to false)
  • index (Injects code into index.php which prevents access to "/_ignition/execute-solution")
  • private (Same as the index option, but allows specific header to access "_ignition/execute-solution")

🕵🏼 References

  • https://github.com/ambionics/phpggc

📢 Disclaimer

This tool is provided for educational and research purposes only. The creator assumes no responsibility for any misuse or damage caused by the tool.

Download Tool