Unlocking the Doors: How I Took Over Accounts with a Single Flaw!
The password-reset endpoint accepted a caller-supplied URL template and used it to build the reset link sent to the victim, so an attacker could point the link at a server they control. When the victim clicked it, the reset token was delivered to the attacker, allowing full account takeover.
medium.com
Published on medium.com
👋 Hi, I’m Om Dubey, a Security Analyst and Bug Hunterwith a knack for uncovering hidden vulnerabilities in tech. I specialize in web hacking, API pentesting, and Mobile App Testing, constantly pushing boundaries to secure systems. 🔍💻
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 password-reset endpoint trusted a client-supplied url_template parameter and built the emailed reset link from it without validating the host.
Impact
An attacker could obtain the victim's reset token and take over the account, though the report notes the submission was later marked as a duplicate.
What the attacker needed
Victim clicks the emailed link; attacker-controlled host to receive the token
How it was found
- Open the forgot-password page and submit the victim's account details to request a reset.
- Capture the reset request in an intercepting proxy and send it to the repeater.
- Replace the url_template value with a URL pointing at an attacker-controlled host.
- Send the modified request and receive a success response.
- The victim's email contains a reset link pointing at the attacker's host.
- The victim clicks the link and the reset token appears on the attacker's server.
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 a password, a site emails you a special link containing a secret code that lets you set a new one. Here the site let the person requesting the reset choose the web address used in that link, so the attacker made the link point to their own server. The victim clicked it, the secret code arrived at the attacker's server, and the attacker used it to take over the account.
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.