Skip to content
Account takeover Write-up Advanced

0-click Full Account Takeover

The password reset flow used a session cookie to track OTP verification, but only checked that the session had been verified, not which user had verified it. An attacker could verify an OTP on their own account, then reuse that verified session to reset the password of any other user, leading to full account takeover.

dynnyd20 Follow

Published on dynnyd20.medium.com

It has been four months since my last blog post, and my bug hunting activities have also been on hold for many months. In recent weeks, due to various reasons (specifically temporary unemployment), I have returned to bug hunting and can now spend more time on it.

Duyen Le, on dynnyd20.medium.com

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 could change the password of any account and completely take over it, though the attacker needed an existing low-privilege account because self-registration was not available.

What the attacker needed

An existing low-privilege account; knowledge of victim's email or phone

The fix

The application should bind OTP verification to the specific user account, not just the session, and was fixed on the day it was reported.

How it was found

  1. As the attacker, request an OTP and confirm it successfully, then stop.
  2. Save the session that has been confirmed successfully by the attacker.
  3. With the saved session, send the get reset password options request for the victim to point this session to the victim's account.
  4. With the saved session, send the OTP request for the victim.
  5. With the saved session, force calling the reset password API to reset the victim's 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 your password, a website sends a one-time code to your email or phone. You enter that code to prove it's you, and then you can set a new password. In this case, the website remembered that 'this browser session passed the code check' but forgot to check whose code was checked. So an attacker could pass the check on their own account, then trick the same session into resetting someone else'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.

More by dynnyd20

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.