Skip to content
Leaked secrets Write-up Beginner

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.

cybertechajju Follow

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.

CyberTechAjju, 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 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

  1. Used a Google dork to search for pages containing 'test_' and 'api key'.
  2. Clicked a search result that led to a public HTML-to-PHP code conversion page.
  3. Found a test API key displayed on that page.
  4. Sent a curl request using the key to create a test payment.
  5. 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.

More by cybertechajju

View all

7 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Leaked secrets and credentials

The lesson behind this report.

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.