ZERO — Finding First BUG
The password reset flow exposed user details and lacked server-side OTP verification, allowing an attacker to change any user's password by modifying the client-side response. The attacker could then take over accounts, including an admin account, gaining access to sensitive data.
medium.com
Published on medium.com
Hi there, myself Vansh a BCA student who has just started writing Blogs on Medium.
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 server trusted the client-side response to confirm OTP validation instead of verifying the OTP itself.
Impact
An attacker could change any user's password, including an admin's, leading to full account takeover and access to sensitive data.
What the attacker needed
Knowledge of victim's phone number; ability to intercept and modify HTTP responses
The fix
The vulnerability was fixed after being reported.
How it was found
- Go to the login page and select 'Forgot Credentials'.
- Enter a phone number to receive an OTP.
- Submit an incorrect OTP and observe the error response.
- Modify the response to indicate a valid OTP and submit a new password.
- The password is changed without further verification.
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 reset a password, the website asks for a code sent to your phone. The site checked the code only in the browser, not on the server, so an attacker could fake a successful check and set a new password for any account. This let them break into accounts, even an admin's.
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.