How exposed backup files put your business at risk
Exposed backup files are recovery copies that people can retrieve without the permission the business intended. They may contain website code, configuration, database records or several of these together. A backup can remain publicly accessible even when it has no link from the visible website. Its purpose as a recovery tool does not change the protection its contents require.
What is an exposed backup file?
Backups preserve information so a team can recover from a mistake, failure or incident. An archive can package many files into one download. A database export can contain a substantial collection of business records.
Problems arise when these copies are placed in a location the web server publishes, or when their storage permissions allow unnecessary access. Old versions and files left by editing tools can create similar exposure.
Removing a page from navigation does not remove the underlying file. Disabling directory listings, which show visitors the contents of a folder, also does not prevent access to a file whose location is already known.
File extension security matters because a renamed copy may be handled differently from the original, including being returned as readable content.
Why it matters
Consider an online retailer preparing a routine website update. A developer might create a recovery archive in the same public folder as the application, then leave it there after the release succeeds.
That archive could include customer information or configuration containing a database password. Depending on its contents, a single download might disclose far more than an ordinary page.
The age of the copy does not settle the risk. Historic customer records remain sensitive, and an old service password may still work if it has never been replaced.
The response should establish what the file contained and who could reach it. Discovering an exposed copy does not prove it was downloaded by an unauthorised person. Available access records and the period of exposure help the business assess that question.
How penetration testers check for it
- Review agreed publishing locations and relevant discovery evidence for unnecessary archives, old versions, exports and files left by maintenance work.
- Confirm whether representative files are accessible without the expected permission, using limited evidence rather than collecting entire datasets unnecessarily.
- Assess the likely sensitivity of confirmed material and whether disclosed credentials require coordinated validation with the relevant service owner.
- Record the affected location, access conditions and business consequence, distinguishing an available filename from a confirmed disclosure of sensitive contents.
How to fix it
- Store backups outside public website directories and use storage intended for restricted recovery access. Check the effective permissions on both the location and individual copies.
- Stop deployment and editing processes from leaving unnecessary material in published folders. Review the generated release contents before making them public.
- Remove exposed copies through a controlled process while preserving the protected backups the business needs. Revoke any disclosed passwords or keys that may still provide access.
- Apply suitable encryption, access monitoring and retention to backup storage. Protect encryption keys separately and test recovery so security changes do not undermine restoration.
Review other copies created by the same process. Correcting one file will not resolve a scheduled export or deployment routine that republishes similar material during the next maintenance cycle.
Related issues
- Why file extension security matters for your website
- Cloud storage security mistakes that expose files
- How search engine data leaks expose your business
Read about our methodology or contact pentested.com to discuss testing for your website.