How I Found a Critical Biometric 2FA Bypass… and Lost the Bounty
A hardcoded superadmin API key for a third-party biometric authentication service was exposed in client-side JavaScript. An attacker could use this key to forge a successful biometric verification response, bypassing 2FA for administrative accounts.
I was manually browsing subdomains of a large Indian appliance manufacturer (let’s call them Target-X). Expectations were high.
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
Impact
An attacker could completely bypass biometric authentication for any administrative user, potentially gaining system administrator access to the organization.
What the attacker needed
Access to the login page; ability to view JavaScript files
How it was found
- Open the target PAM portal login page.
- Open browser developer tools and go to the Sources tab.
- Browse the JavaScript files under /resources/js/custom/.
- Open LegendScript.js and find the hardcoded API key on line 31.
- Use curl to test the key against the third-party biometric API endpoint.
- Observe that the API responds, confirming the key is live.
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.
The website's login page loaded a JavaScript file that anyone can read. Inside that file was a secret password (an API key) meant for a service that checks fingerprints. Because the key was public, an attacker could pretend to be that service and always say 'fingerprint is valid', skipping the fingerprint check entirely.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.