How I earned ₹₹₹₹₹ by reporting API key to massive paym
A JavaScript file on a blank subdomain exposed an Azure Speech Service API key. An attacker could use the key to make unauthorised speech API calls, causing financial loss through increased operational costs.
Past few months back I’ve been hunting on one of the massive Indian payment company.
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 a secret API key was embedded in client-side JavaScript that was publicly accessible.
Impact
If the key fell into the wrong hands, it could lead to direct financial loss for the business through increased unauthorised API usage and higher operational costs.
What the attacker needed
None
The fix
The report says the security team fixed it within a few days, but does not describe the fix; the key should be removed from client-side code and rotated.
How it was found
- Find subdomains using tools such as subfinder, Amass and findomain.
- Check which subdomains are alive with httpx.
- Visit a subdomain that shows a blank page.
- Collect JavaScript files from that subdomain, for example with katana.
- Find an Azure Speech Service API key inside a JavaScript file.
- Verify the key by sending a request to the speech service and receiving an audio file.
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 software talk to a paid service. Here the key was left inside a JavaScript file that any visitor could download, so anyone could find it and use the company's paid speech service for free, sticking the company with the bill.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.