My experience with simple recon and getting a Bounty.
While crawling a program's subdomains and JavaScript files, the author found an API key that was publicly exposed and should not have been. The text does not say what the key granted access to or what an attacker could do with it.
medium.com
Published on medium.com
I am sharing my methodology, on which I have spent 100 of hours,trust me no bug hunter will share this.
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
Impact
The exposed key may have allowed anyone who found it to use whatever service it was issued for, but the text does not describe the key's permissions or any actual abuse.
What the attacker needed
Publicly reachable JavaScript files; none beyond internet access
How it was found
- Enumerate subdomains with passive recon tools and save the results to a text file.
- Filter the list down to live hosts and keep only those returning a success status.
- Crawl the live hosts for JavaScript and endpoint URLs.
- Grep the collected URLs for interesting keywords to build a shortlist of juicy JavaScript files.
- Run a secret-scanning tool over the shortlisted files and review the results.
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 company's website is made of many smaller sites and script files, and some of those files can accidentally contain secret passwords called API keys. If a secret like that is left where anyone can read it, other people may be able to use it to reach the company's systems. This write-up is mostly about how the author searched for such files, not about what the key could do.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.