Laravel Common Bugs
Introduction
What would you do if you came across a website that uses Laravel?
How to Detect
Usually in the HTTP response there is a header like this Set-Cookie: laravel_session=
Find the related CVE by checking laravel version
How to find the laravel version
By checking the composer file in https://example.com/composer.json
, sometimes the version is printed there. If you found outdated laravel version, find the CVEs at CVEDetails
Some example CVE:
CVE-2021-3129 (Remote Code Execution)
Laravel 4.8.28 ~ 5.x - PHPUnit Remote Code Execution (CVE-2017-9841)
Exposed environment variables
Full Path Exploit : http://example.com/.env
Exposed log files
Full Path Exploit : http://example.com/storage/logs/laravel.log
Laravel Debug Mode Enabled
Try to request to https://example.com using POST method (Error 405)
Using [] in paramater (ex:example.com/param[]=0)
References
Last updated