The Thousand Dollar Bug
The password reset token was returned in the API response and was identical to the token in the reset link sent by email. An attacker who could intercept the response could use the token to reset another user's password.
Published on medium.com
Hiyya, I am Raunak Gupta, a Security Researcher and Bug Bounty Hunter for fun and profit.
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
Impact
An attacker who could intercept the API response could obtain the reset token and reset another user's password, though the vendor rated it High rather than Critical because bypassing root and SSL pinning increases attack complexity.
What the attacker needed
Android app installed; Bypass root detection and SSL pinning; Ability to intercept API responses
How it was found
- Install the Android app and bypass root detection and SSL pinning.
- Open the forgot password page and submit your email through the proxy.
- Inspect the response and note the password reset token.
- Compare it with the token in the reset link received by email and see they are the same.
- Change the email in the request to the victim's email and extract the token from the 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.
When you forget your password, a website sends a secret code to your email so you can prove it is you. Here, the app also sent that same secret code back in the reply to the app itself, where someone watching the network could see it. That would let them reset your password without access to your email.
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.