From ZIP to Zoho Hall of Fame: How I Found Exposed API Keys !
Two publicly accessible ZIP files on a Zoho asset contained HTML files with embedded Google Maps and Amap API keys. The author tested the keys and found they were valid but restricted, so they could not be used for unauthorised paid services or billing.
medium.com
Published on medium.com
The original lives on medium.com
We do not hold its text, 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 keys were accidentally included in ZIP archives during the packaging process and those archives were placed on a publicly accessible server without removing the keys.
Impact
The exposed keys were valid but restricted to development use with billing disabled, so they could not be exploited for unauthorised access to paid services or financial abuse.
What the attacker needed
Publicly accessible ZIP files; no authentication required
The fix
The ZIP files were removed and the exposed keys were revoked.
How it was found
- During reconnaissance, find two ZIP files hosted on a Zoho asset that are publicly accessible.
- Download the ZIP files for analysis.
- Use an online tool to view the contents without extracting them locally.
- Open the HTML files inside and notice the embedded API keys.
- Test the Google Maps API key with a scanner and then manually with a simple HTML page.
- Test the Amap API key with a simple HTML page.
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.
A ZIP file is a compressed folder that can hold many files. Here, two such files were left on a public web server, and inside them were small web pages that included secret codes (API keys) used to load online maps. Anyone who found the files could read those codes, but testing showed the codes were limited so they could not be used to run up bills or access paid features.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.