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.
Hey, my hacker buddies! I hope you’re enjoying WFH (if you have) or your bounty days!
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
- Notice a new scope added to a private programme.
- Run reconnaissance on the scope.
- Use FFUF to brute-force paths and file names.
- 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.