How Laravel Ignition remote code execution works
Ignition is the error page Laravel shows when debug mode is on. Before version 2.5.2, facade/ignition had a feature attackers could abuse to write files and run code on the server. It only works when the app is in debug mode, which is exactly what a forgotten APP_DEBUG=true in production gives them.
CISA lists it as known exploited and notes it has been used in ransomware campaigns. Bots scan for Laravel apps with debug mode on all the time. Updating Ignition fixes this bug. Turning debug mode off removes the conditions it needs, and stops error pages leaking secrets as well.
What attackers do with it
- Code running on your server: webshells, crypto miners, and copies of your .env and database.
