How I Earned My First $50 Bug Bounty with a Google Dork and a Test Key
A test API key for a payment service was publicly exposed on a code-sharing site. An attacker could use it to create fake test transactions, redirect users to malicious sites, and spoof webhook calls.
Published on medium.com
It was just another late night in my setup — headphones on, browser tabs open, tea in one hand, and curiosity in the other.
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 test API key was accidentally published on a public code-sharing site.
Impact
The key could be used to create fake test transactions, redirect users to malicious sites, and spoof webhook calls, but the company stated it only allowed test payments and no access to real user data.
What the attacker needed
Publicly exposed test API key; internet access
The fix
The report was resolved and a bounty was awarded, but the text does not specify the fix; likely the key was revoked or removed from the public page.
How it was found
- Used a Google dork to search for pages containing 'test_' and 'api key'.
- Clicked a search result that led to a public HTML-to-PHP code conversion page.
- Found a test API key displayed on that page.
- Sent a curl request using the key to create a test payment.
- Observed that the request succeeded, confirming the key was active.
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.
An API key is like a password that lets software talk to a service. Here, a test key was left on a public website, so anyone could use it to make fake test payments. The company said it only affected test payments, not real money.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.