When Password Reset Fails: Account Takeover via User Enumeration
The password reset flow exposed a backend API that returned all users and their identifiers when the request body was removed, and a second API trusted a client-supplied user identifier and email address. An unauthenticated attacker could enumerate users, obtain PII, and send password reset emails to an address they controlled, leading to account takeover.
The application was found vulnerable to a critical Account Takeover vulnerability within the password reset functionality. By manipulating internal API calls, it was possible to enumerate registered users, retrieve sensitive Personally Identifiable Information (PII), and reset passwords for arbitrary accounts.
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 missing server-side validation and authorization on the password reset APIs, combined with trusting client-supplied user identifiers and returning excessive user data.
Impact
An unauthenticated remote attacker could enumerate all users, disclose PII, and reset passwords for arbitrary accounts, potentially including administrative accounts.
What the attacker needed
No authentication; network access to the web app
The fix
The text says the issue was responsibly reported and fixed; the recommendations are to validate request bodies, never trust client-supplied identifiers, bind email and userId server-side, enforce authorization, add rate limiting, and return generic responses.
How it was found
- Enter a valid email in the Forgot Password form and observe the two backend API requests.
- Modify the first API request by removing the JSON body parameter and send it.
- Observe that the response lists all users with email addresses and user IDs.
- Copy a valid userId and replace it in the second API request, also changing the email to an attacker-controlled address.
- Observe that the verification email is sent to the attacker's address, allowing a password reset and account takeover.
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 password reset normally asks for your email and then sends a reset link to that same email. Here, the server had two separate steps: one looked up the account, and the other sent the email. The lookup step returned every user's details when asked with an empty request, and the send step believed whatever user ID and email the browser supplied. So an attacker could pick any account and have the reset link delivered to their own inbox.
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.