Database Backup File Exposure

Detects database backup files stored in web-accessible directories or referenced with predictable names.

zakirkun a7225f1 2 files · 2.3 KB Updated

File contents

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

zakirkun/ice-tea/tree/main/skills/database/db-backup-exposed commit a7225f19f7

Frequently asked questions

npx skillmds@latest add zakirkun/database-backup-file-exposure