How I Found a $8,560 Password Reset Bug
A hidden admin API endpoint accepted a POST request with an email and password and overwrote the existing account's credentials without any verification. An attacker could silently change any user's password and take over their account.
medium.com
Published on medium.com
Asingle unexpected API endpoint was all that was needed to trigger a critical vulnerability. This discovery did not just reveal a flaw; it led to one of my most significantbug bounty rewards: an$8,560 bug bounty.
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 registration endpoint lacked a check for existing accounts and performed an update instead of rejecting duplicates, allowing credential overwrite.
Impact
An attacker could silently change any user's password and achieve complete account takeover, potentially compromising sensitive family and student data.
What the attacker needed
Knowledge of victim's email address; network access to the API
The fix
The text states the security team validated the issue and moved promptly to develop a fix, but does not describe the fix itself.
How it was found
- Set up a proxy to capture all requests from the mobile application.
- Examine JavaScript files to find endpoints and parameters, then build a custom wordlist.
- Run ffuf against the admin endpoint to discover hidden directories.
- Send a GET request to the new endpoint and observe it is blocked, requiring POST.
- Send a POST request with a JSON body containing an email and password, receiving a success response.
- Repeat the POST request using a known valid user's email address and observe the same success response.
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 application had a hidden web address meant for creating new accounts. When someone sent it an email and a new password, it did not check whether that email already belonged to an existing user. It just replaced the old password with the new one, so anyone who knew a victim's email could change their password and log in as them.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.