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
Laravel-CVE-2018-15133 — Docker-based PoC environment for CVE-2018-15133 Laravel APP_KEY unserialization vulnerability. Includes exploit script to verify remote code execution via malicious payloads on Laravel <= 5.7.27. | Kitploit
Tools/GitHubGitHub/yeahhbean/laravel-cve-2018-15133
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationLabs & Practice
GitHubyeahhbean/laravel-cve-2018-15133

Laravel-CVE-2018-15133

Docker-based PoC environment for CVE-2018-15133 Laravel APP_KEY unserialization vulnerability. Includes exploit script to verify remote code execution via malicious payloads on Laravel <= 5.7.27.

View Repository
121 year 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-2018-15133 - Laravel APP_KEY Unserialization Vulnerability

White Hat School 3rd Term 28th Class Yebin Lee Virtualization - Vulnerable Docker Configuration https://github.com/yeahhbean/Laravel-CVE-2018-15133

Overview

This project is a Docker-based environment set up to verify (PoC) the CVE-2018-15133 vulnerability (Laravel APP_KEY deserialization vulnerability).
We built the vulnerable environment using only the Dockerfile and docker-compose.yaml, and confirmed that the PoC works correctly through the exploit.

  • Vulnerable target: Laravel <= 5.7.27
  • Main issue: If the APP_KEY is exposed, malicious payloads can execute server commands.

Environment Configuration

  • PHP 7.2.10-fpm
  • Nginx (reverse proxy)
  • MySQL 5.7
  • Laravel 5.7.28 (includes vulnerable version)

The vulnerable environment is automatically installed and launched via the Dockerfile and docker-compose.yaml.


File Structure

File NameDescription
DockerfileFor installing PHP + Composer + Laravel 5.7
docker-compose.yamlConfigures all services (Nginx, PHP, MySQL)
nginx/default.confNginx reverse proxy configuration file
exploit.pyPoC code based on APP_KEY

Local Environment Operation

  • Directory structure Directory structure

  • Change directory cd C:\Users\Admin\Desktop\WHS\CVE Change directory

  • Build Docker image docker-compose build Build Docker image

  • Start Docker containers docker-compose up -d Start Docker containers

  • Access container docker exec -it laravel_app bash Access container

  • Exit container and run PoC exit python exploit.py PoC result 1 PoC result 2 PoC result 3

  • Access via browser Open a web browser and go to http://localhost:8080 Local page


Setup Method

root@kitploit:~
# 1. Download the source and navigate to the directory
cd [project directory]

# 2. Build Docker image
docker-compose build

# 3. Start Docker containers
docker-compose up -d

Once successfully running, you can view the Laravel default page at http://localhost:8080.


PoC (Vulnerability Verification)

root@kitploit:~
# 1. Extract the Laravel APP_KEY from inside the container
docker exec -it laravel_app bash
cat /var/www/html/laravel/.env | grep APP_KEY

# 2. Use the extracted APP_KEY in exploit.py and run it
python exploit.py

# 3. If the Laravel page HTML is returned normally, it means the payload via APP_KEY was successfully delivered.

Notes

  • Versions after Laravel 5.7.28 have patched this vulnerability and it no longer works.

  • The PoC code (exploit.py) was written by referencing publicly disclosed attack methods.


Reference

  • https://nvd.nist.gov/vuln/detail/cve-2018-15133
  • https://laravel.com/docs/5.7/releases#laravel-5.7.27
Download Tool