Skip to content
Info disclosure Write-up Beginner

Fuzzing Backup File Path to Get Sensitive Data Exposure

A publicly reachable backup ZIP file contained the website's source code, including database credentials, API tokens and service usernames and passwords. An attacker who found the path could download it and obtain those secrets.

medium.com

Published on medium.com

Hello, in this article, I will share tips on how to perform fuzzing for backup file paths in the terminal.

Just R, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a backup archive of the site's source code was left in a web-accessible directory without access control.

Impact

An attacker could obtain database credentials, API tokens and service usernames and passwords, which the author rates as high or critical severity.

What the attacker needed

Backup file left in a web-accessible path; guessable or wordlist-matching file name

How it was found

  1. Run path fuzzing against the target with a wordlist of common backup paths
  2. Notice a backup file path returning a ZIP file
  3. Download the ZIP file
  4. Extract it and inspect the contents in an editor
  5. Find credentials, API tokens and an SQL file inside

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Websites sometimes leave old backup copies of their files on the server, and if the name is guessable anyone can download them. Here a backup archive held the site's source code plus passwords and API tokens, so finding the right file name gave away secrets. Attackers find such names by trying many common file names automatically, which is called fuzzing.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.