My first and simple ATO in a private program
The password reset endpoint returned the reset URL and token in the HTTP response body instead of only sending it by email. An attacker who knew a victim's email address could obtain the reset link and set a new password, taking over the account.
Hello guys, I’m Pansa and I’m here to tell you about my first ATO bug. It was very easy to find.
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 included the reset token and link in the HTTP response body rather than only delivering them to the account owner's email.
Impact
An attacker who knows a victim's email address could take over the account by setting a new password.
What the attacker needed
Know the victim's email address
How it was found
- Create an account and use the forgotten password function.
- Capture the reset request in Burp Suite and note the server asks for an email.
- Observe the 200 OK response contains the reset URL and token.
- Submit another person's email address in the same request.
- See the victim's reset link returned, open it, and set a new password.
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 usually emails you a special link that lets you set a new one. Here the site also put that secret link directly in the reply to the web request, so anyone who asked for a reset for someone else's email could read it and change that person's password.
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.