Laravel APP_DEBUG=true in Production Exposed Source Code, SQL Queries for Months
A development team discovered last week that their Laravel application had been running with APP_DEBUG set to true in a production environment for several months. The misconfiguration caused every crashing route to display Laravel's full debug screen publicly, exposing file paths, stack traces, source code, SQL queries, and in some cases environment variables. The issue came to light during a routine SEO audit, when a Google Search Console alert flagged 2,246 pages returning 5xx server errors. Google had indexed all these error pages, meaning the sensitive technical details were accessible to anyone who found them via search. The team has since documented how they identified the breach, assessed the damage, and built a pre-deployment checklist to prevent similar oversights.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in