Bug Bounty Google Maps Api Key Leaked On Reconnaissance
A Google Maps API key was exposed in a publicly accessible path and page source of a target web application. An attacker could use the key to make unauthorised API calls, potentially consuming the company's quota and causing financial loss or a denial-of-service if billing was not configured properly.
Published on systemweakness.com
Hi folks, this article is about how I discovered a leaked google map API key on public facing web application during a bug bounty program.
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 code or a publicly accessible file without restrictions, allowing anyone to extract and use it.
Impact
An attacker could make unauthorised API calls, potentially consuming the company's quota and causing financial loss or a denial-of-service if billing was not configured properly.
What the attacker needed
Publicly accessible web application; leaked API key in page source or path
How it was found
- Discover original IPs of target domains using tools like Shodan, Censys, or Zoomeye, bypassing Cloudflare WAF.
- Feed the IPs to a vulnerability scanner such as nuclei to automate checks.
- After scanning, discover a path that leads to credential and informational leaks.
- Validate the page source and find the leaked key.
- Use Keyhacks to test the Google Maps API key and confirm that some services are enabled.
- Make unauthorised API calls using the key, demonstrating potential financial impact.
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 application use a paid service, such as Google Maps. Here, the key was left visible in a public web page, so anyone could copy it and use the service at the company's expense. This can lead to unexpected bills or, if usage limits are not set, the service becoming unavailable.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.