P4 bug’s and their POC steps | Part 3
A password reset token could be reused multiple times, so the same reset link kept changing the account password. An attacker holding such a token could reuse it to change the victim's password and take over the account. The article also describes a site served only over plain HTTP, where someone on the same network could intercept credentials.
Published on medium.com
Read For Free: https://nexguardians.com/p4-bugs-and-their-poc-steps-part-3/
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 token was never invalidated or expired after a successful password change, so it remained valid for repeated use.
Impact
An attacker who obtains a user's reset token could reuse it to change that user's password, leading to account takeover; the HTTP issue could let someone on the same network capture credentials via a man-in-the-middle attack.
What the attacker needed
A reset link issued to the account; access to the victim's reset token
How it was found
- Open the site and go to the forgot password page.
- Enter your email address and receive the reset link.
- Use the same reset link to change the password several times.
- Observe that the password changes on every attempt.
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 site emails you a special link with a secret code (a token) that lets you set a new one. That code should stop working after one use, but here it kept working, so anyone who got hold of the link could keep resetting the password. The second issue is a site that only uses the unencrypted version of the web (HTTP), so data travelling over a shared network can be read by others.
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.