Legacy Backup File Discovery
Check whether the application serves exposed copies, archives or editor leftovers of its own files within your authorized scope
Use when: a host serves versioned or templated files and you want to know whether backups or swap files are publicly reachable
Avoid when: the asset is a third-party CDN endpoint where file requests do not reach vendor-controlled storage
Procedure
- Inventory actual file paths from your crawl: scripts, configuration, exports and downloadable documents already in use.
- Derive backup naming variants from those real paths, since guessing from nothing produces noise while deriving produces leads.
- Request each variant once at your normal rate and compare against a known-missing response to filter soft-404s.
- Confirm a hit by checking content type, size and an actual file signature inside the body rather than trusting status alone.
- If an archive is served, download it locally and inspect it there instead of repeatedly fetching it from the target.
- Report exposure through the program channel with the affected path and contents summary, redacting any real secrets you find.
Signals
- A candidate returns a content type such as application/zip or application/x-tar instead of the site's normal HTML.
- Response size matches a plausible archive rather than your missing-page baseline length.
- An editor swap or temporary file contains original source that the public application does not serve.
- A configuration-shaped file contains keys or internal hostnames, which you should report without publishing values.
Patterns
1. Variant set
app.js -> app.js.bak, app.js~, app.js.old, .app.js.swp
config.yml -> config.yml.bak, config.yml~, config.yml.save
2. Content confirmation
status=200 AND type=application/zip AND magic bytes PK\x03\x04 -> real archive
status=200 AND type=text/html AND len==missing-baseline -> soft-404, discard
3. Safe handling
fetch once, save locally, inspect offline, redact values before writing anything into a report
Pitfalls
- Requesting hundreds of variants per file, which inflates traffic and breaks the rate ceiling for marginal coverage.
- Confusing an application's custom error page, served with status 200, for a discovered backup.
- Pasting discovered secret values verbatim into a report, which spreads the secret instead of getting it rotated.
Done when
- Every claimed exposure was confirmed by content type plus an in-body signature, not by status code alone.
- Files were fetched once and analyzed locally, and any secret material is described rather than reproduced in the report.
References
1---2name: legacy-backup-file-discovery3description: "Check whether the application serves exposed copies, archives or editor leftovers of its own files within your authorized scope. Use when a host serves versioned or templated files and you want to know whether backups or swap files are publicly reachable"4pack: reconcraft5version: 1.0.06category: bug-bounty-tooling7tags: [files, backup, exposure]8metadata:9 source: https://skillmd.com/skills/wsh7ash/legacy-backup-file-discovery10---1112# Legacy Backup File Discovery1314> Check whether the application serves exposed copies, archives or editor leftovers of its own files within your authorized scope1516**Use when:** a host serves versioned or templated files and you want to know whether backups or swap files are publicly reachable1718**Avoid when:** the asset is a third-party CDN endpoint where file requests do not reach vendor-controlled storage1920## Procedure21221. Inventory actual file paths from your crawl: scripts, configuration, exports and downloadable documents already in use.232. Derive backup naming variants from those real paths, since guessing from nothing produces noise while deriving produces leads.243. Request each variant once at your normal rate and compare against a known-missing response to filter soft-404s.254. Confirm a hit by checking content type, size and an actual file signature inside the body rather than trusting status alone.265. If an archive is served, download it locally and inspect it there instead of repeatedly fetching it from the target.276. Report exposure through the program channel with the affected path and contents summary, redacting any real secrets you find.2829## Signals3031- A candidate returns a content type such as application/zip or application/x-tar instead of the site's normal HTML.32- Response size matches a plausible archive rather than your missing-page baseline length.33- An editor swap or temporary file contains original source that the public application does not serve.34- A configuration-shaped file contains keys or internal hostnames, which you should report without publishing values.3536## Patterns3738**1. Variant set**3940```text41app.js -> app.js.bak, app.js~, app.js.old, .app.js.swp42config.yml -> config.yml.bak, config.yml~, config.yml.save43```4445**2. Content confirmation**4647```text48status=200 AND type=application/zip AND magic bytes PK\x03\x04 -> real archive49status=200 AND type=text/html AND len==missing-baseline -> soft-404, discard50```5152**3. Safe handling**5354```text55fetch once, save locally, inspect offline, redact values before writing anything into a report56```5758## Pitfalls5960- Requesting hundreds of variants per file, which inflates traffic and breaks the rate ceiling for marginal coverage.61- Confusing an application's custom error page, served with status 200, for a discovered backup.62- Pasting discovered secret values verbatim into a report, which spreads the secret instead of getting it rotated.6364## Done when6566- Every claimed exposure was confirmed by content type plus an in-body signature, not by status code alone.67- Files were fetched once and analyzed locally, and any secret material is described rather than reproduced in the report.6869## References7071- [OWASP Web Security Testing Guide - information gathering](https://owasp.org/www-project-web-security-testing-guide/)72- [PayloadsAllTheThings - file disclosure resources](https://github.com/swisskyrepo/PayloadsAllTheThings)