.. / CVE-2021-3129

Exploit for Laravel with Ignition <= v8.4.2 Debug Mode - Remote Code Execution (CVE-2021-3129)

Description:

Laravel version 8.4.2 and before with Ignition before 2.5.2 allows unauthenticated remote attackers to execute arbitrary code because of insecure usage of file_get_contents() and file_put_contents(). This is exploitable on sites using debug mode with Laravel before 8.4.2.

Nuclei Template

View the template here CVE-2021-3129.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2021/CVE-2021-3129.yaml
Copy

References:

https://github.com/facade/ignition/pull/334
https://github.com/vulhub/vulhub/tree/master/laravel/CVE-2021-3129
https://nvd.nist.gov/vuln/detail/CVE-2021-3129
https://www.ambionics.io/blog/laravel-debug-rce
https://github.com/d4n-sec/d4n-sec.github.io