A misconfiguration in the password reset process can lead to an account takeover.
The password reset link contained a base64-encoded user ID that was the only parameter checked, and the link could be reused. An attacker could guess user IDs in a small numeric range and change any user's password, leading to account takeover.
While I was conducting testing on a web application, I came across the Reset Passwordpage. Since this page often contains vulnerabilities that could lead to an account takeover, I spent some time analyzing the requests from the page using burp suite, one request catch my eye the request was made after I put my email…
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 reset link relied solely on a predictable, static user identifier (uid) without a secure, single-use token or additional validation.
Impact
An attacker could change the password of any user whose uid falls within a guessed range, leading to account takeover.
What the attacker needed
Ability to request a password reset; ability to intercept and modify requests; knowledge of target user ID range
How it was found
- Request a password reset for your own account and capture the email link.
- Use the link to change your password, then reuse the same link to confirm it still works.
- Remove the ts and v parameters and observe the reset still succeeds.
- Decode the uid parameter to see it is a simple number.
- Use Burp Intruder to iterate uid values over a range and reset other users' passwords.
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.
When you forget your password, a website emails you a special link to set a new one. Here, that link only contained a user number, hidden in a simple encoding, and the site did not check anything else. Because the numbers were easy to guess, someone could try many numbers and reset other people's passwords.
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.