Skip to content
Info disclosure Write-up Beginner

Holy Ffuf easy Bounty in 15 mins

A publicly reachable environment file was left on a website and exposed sensitive configuration data, including keys, usernames and passwords. An attacker who found the file could read those credentials and use them to reach other systems.

Xt3sY Follow

Published on medium.com

Hey, my hacker buddies! I hope you’re enjoying WFH (if you have) or your bounty days!

Pushkar Bhagat, 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 the .env file was deployed into the public web root and the server was configured to serve it as a static file.

Impact

Sensitive keys, usernames and passwords were exposed to anyone who requested the file, which could allow further access to the site's systems.

What the attacker needed

Access to a private programme scope; the .env file is publicly reachable

How it was found

  1. Notice a new scope added to a private programme.
  2. Run reconnaissance on the scope.
  3. Use FFUF to brute-force paths and file names.
  4. Find a .env file served publicly and view its contents.

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.

A .env file is a small settings file that programs use to store secrets such as passwords and API keys. It should never be reachable from the internet, but here it was, so anyone who guessed the address could download it. The author found it by trying many common file names against the site.

What is Info disclosure?

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

More by Xt3sY

View all

4 more disclosed reports, best first.

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.