One Click To Account Takeover
The password reset endpoint accepted an undocumented 'Url' parameter in the JSON body, allowing an attacker to replace the host and path of the reset link sent to the victim. By setting this parameter to an attacker-controlled URL, the victim's reset token would be sent to the attacker when the victim clicked the link, enabling account takeover.
I noticed in the laststory , How i able to takeover user’s account with zero click.
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 accepted an undocumented 'Url' parameter in the JSON request body (mass assignment) and used it to build the reset link without validating or restricting the host and path.
Impact
An attacker could take over a victim's account with one click from the victim, by stealing the password reset token.
What the attacker needed
Victim clicks a link; attacker can send reset request for victim
How it was found
- Send a password reset request for the victim's email and capture it.
- Add a 'Url' parameter with an attacker-controlled URL to the JSON body.
- Forward the request; the victim receives a reset link pointing to the attacker's URL.
- The victim clicks the link, and the reset token is sent to the attacker's server (e.g., Burp Collaborator).
- Use the stolen token to reset the victim's password and take over the account.
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 emails you a special link with a secret code (token) that lets you set a new password. The researcher found that the website also accepted an extra hidden setting in the request that changed where that link pointed. By pointing it to their own server, they could receive the victim's secret code when the victim clicked the link, and then use 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.