Re-captcha token generating secret key leaking identified via way
An API endpoint exposed a secret key that was used to issue reCAPTCHA tokens for every session. An attacker who found the key could generate valid reCAPTCHA tokens, potentially bypassing the CAPTCHA protection.
Published on medium.com
Hello viewers and fellow hackers! Today, I want to share a unique vulnerability that I haven’t heard of before — it’s the first time I’m encountering something like this.
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 secret key was exposed in a URL path that was archived by the Wayback Machine, and the endpoint did not require authentication.
What the attacker needed
Access to the archived URL; knowledge of the secret key
How it was found
- Collect subdomains and filter active ones.
- Manually check each target.
- Submit the URL to the Wayback Machine.
- Review archived pages and find a URL containing a secret.
- Validate the secret using a public key-checking repository.
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 secret key is like a password that a website uses to create special tokens. If that key is exposed in a URL, anyone who finds it can create fake tokens that look real. This could let attackers bypass a security check called reCAPTCHA, which is meant to stop automated abuse.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.