Exposed Database Dumps and Backups Check
Looks for database dumps and site archives downloadable from the web root.
What This Check Detects
Looks for database dumps and site archives downloadable from the web root.
Full Documentation
What this check looks for
StackShield requests the names backups are usually given, such as /backup.sql, /dump.sql.gz, /database.sqlite and archives named after your domain. It asks for only the first two kilobytes of each and checks whether they are a real SQL dump, SQLite file or archive, so a site that answers every URL with a page produces no findings.
Why it matters
A dump made during a migration or a zip made before a risky deploy is easy to leave in the web root, and the web server will hand it to anyone who guesses the name. Attackers guess these names constantly. One file can contain every user record and password hash, or the full source code with its .env.
What a failed check means
The file is public and may already have been downloaded. Delete it, rotate the credentials it contains and treat the data as disclosed. A SQL dump or SQLite database is rated critical; a zip or gzip archive is rated high because its contents cannot be seen without downloading all of it.
Write backups to a private disk outside public/, and serve only the public directory as the document root.
Related Security Checks
Is your Laravel app exposed right now?
34% of Laravel apps we scan have at least one critical issue, and most teams do not find out until something breaks. The free scan checks your live app in 60 seconds. Then StackShield re-runs every check after each deploy, so a fix you ship today does not quietly regress next week.