RCE On A Laravel Private Program
A Laravel application with debug mode enabled and the Ignition library was vulnerable to CVE-2021-3129, allowing remote code execution. The author found the target through recon and exploited it because the log file was at the default path.
Published on zdresearch.com
The recent Laravel CVE enables remote attackers to exploit a RCE flaw in websites using Laravel. I’ve read the article about the exploitation procedure using the Ignition library on Laravel.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application ran Laravel with debug mode enabled and the vulnerable Ignition library, exposing a flaw that allows remote code execution.
Impact
An attacker could achieve remote code execution on the server, though the exploit depended on the log file being at the default path.
What the attacker needed
Laravel with debug mode enabled; Ignition library present; log file at default path
How it was found
- Search a recon database of live assets for Laravel signatures by sending HTTP requests and filtering responses.
- Check each match for Ignition running.
- Test if debug mode is enabled by sending a PUT request to the login endpoint and observing a debug error.
- Confirm the Laravel version is greater than 6 and Ignition is present.
- Run the public exploit, relying on the log file being at the default path.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Laravel is a popular framework for building websites in PHP. Debug mode shows detailed error messages that can leak information, and a known flaw in a debugging tool called Ignition let an attacker turn that into running their own commands on the server. This report shows how the author found such a site and used a public exploit.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.