Database Backup File Exposure
Overview
Database backup files (.sql, .dump, .bak, .db, .sqlite) stored in web-accessible directories can be directly downloaded by attackers, exposing the full database contents including all user data and credentials.
Remediation
- Store database backups outside the web root
- Restrict backup file access with web server rules
- Encrypt backup files at rest
- Use access-controlled cloud storage for backups