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.
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.
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
- Received an invitation to a private Bugcrowd program and began hunting.
- Explored server-side and client-side but found no impactful vulnerabilities.
- Decided to examine the application's source code.
- Found an exposed Google Maps API key in the source code.
- 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.