Google Maps API key stored as plain text leading to DOS and financial damage
A Google Maps API key embedded in the Android app lacked restrictions, so anyone could extract it and query the Google Static Maps API. This could cause financial damage and possibly denial of service.
Originally disclosed on HackerOne
- Paid in 5 months
- Disclosed after 5 months
Summary by the program
The researcher highlighted the fact that the Google Maps API key (which is by design easily retrievable from the .apk) was missing some restrictions. It then could be used by anyone to query the Google Static Map API, and possibly lead to financial damage. Resolved by enforcing missing restrictions.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Google Maps API key lacked restrictions, allowing anyone to query the Static Maps API.
Impact
An attacker could use the exposed key to query the Static Maps API, possibly causing financial damage.
What the attacker needed
Extract key from the app; no key restrictions
The fix
The missing restrictions on the API key were enforced.
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 report 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. Here the key was easy to find inside the app and had no limits, so anyone could use it and run up the owner's bill. The fix was to add limits to the key.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.