Escalating a Duplicate Finding to a CVSS 10.0: Chaining Logic and Session Flaws for Persistent ATO
A registration logic flaw allowed an attacker to pre-create a pending account with a victim's email, so when the victim verified their own OTP the server validated the attacker's pending account instead. Chained with a session flaw where password resets did not invalidate existing SSO sessions, this gave persistent account takeover even after the victim reset their password.
In bug bounty and penetration testing, a “duplicate” finding is often viewed as a dead end. However, a duplicate bug is essentially a known exploit primitive.
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 registration flow looked up pending accounts by email without binding the OTP to the specific signup, and session invalidation was not performed on password reset.
Impact
A remote unauthenticated attacker could gain full, persistent control of a new user's account, and the victim's password reset did not remove the attacker's access.
What the attacker needed
Attacker knows victim's email; victim registers with that email; victim submits the OTP they receive
The fix
The registration flow should atomically reject a second pending signup for the same email and bind OTP verification to the specific signup, and all sessions and refresh tokens should be revoked on password change or reset.
How it was found
- Start a registration using the victim's email address with attacker-chosen credentials and stop at the OTP page.
- Wait for the victim to register with the same email and submit the OTP they receive.
- Refresh the attacker's open OTP page to become logged in as the victim.
- After the victim resets their password, use the still-valid SSO session to log in again.
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 sign up, the site often holds your account in a 'pending' state until you prove you own the email by entering a code sent to you. Here, the site checked the code against the wrong pending signup, so the attacker's signup got confirmed using the victim's code. Separately, logging out or resetting a password did not end existing logged-in sessions, so the attacker stayed logged in.
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.