Skip to content
Leaked secrets Write-up Beginner

Google Map API Key Exposure: A Bug Bounty Journey

A Google Maps API key was exposed in the application's source code and was found to be valid and vulnerable to unauthorised use. An attacker could use the key without permission, potentially causing financial loss for the organisation.

iamrizwanvp Follow

Published on medium.com

Hello fellow bug hunters! Peace be upon you Today, I want to share my recent bug bounty experience – a low-hanging fruit vulnerability related to Google API key exposure.

iamrizwanvp, 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 API key was embedded in client-side source code without restrictions, making it publicly accessible.

Impact

Unauthorised use of the key could lead to financial losses for the organisation.

What the attacker needed

Access to the application's source code

How it was found

  1. Received an invitation to a private Bugcrowd program and began hunting.
  2. Explored server-side and client-side but found no impactful vulnerabilities.
  3. Decided to examine the application's source code.
  4. Found an exposed Google Maps API key in the source code.
  5. Used a Python scanner tool to confirm the key was valid and vulnerable.

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 an app use a paid service, such as Google Maps. Here, the key was left visible in the website's code, so anyone could copy it and use the service on the company's bill. This can cost the company money.

What is Leaked secrets?

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

More by iamrizwanvp

View all

2 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.