Account Takeover
Account takeover (ATO) is gaining persistent control of another user’s account. It isn’t one bug. It is where authentication, recovery, session, authorization and client-side flaws end up, usually by changing the account’s email or credentials, or by obtaining a live session.
How it works
Every ATO reduces to one of three primitives:
- Authenticate as the victim: forge or replay the proof (SSO assertion, OTP, passkey assertion, password), or exploit a login-logic bug.
- Obtain the victim’s session or token: steal it (XSS,
postMessage, cache, redirect, leaked by an API), plant it (fixation), or have the server sign one. - Re-point the account’s recovery anchor: change email or phone, link an identity, or reset the password, then log in normally.
“Full” ATO usually means primitive 3, because it survives session expiry and locks the victim out. Strong reports chain a low-severity primitive (an ID leak, an open redirect, an HTML injection) into one of these (Eight Doors).
Paths, with the page that covers each mechanism:
| Path | Mechanism | See |
|---|---|---|
| Recovery | Reset poisoning, token leakage or guessing, identity taken from the request | Password Reset Vulnerabilities |
| Federation | Code or token theft, missing state, email-claim trust, XSW | OAuth 2.0 Vulnerabilities, OpenID Connect Security, SAML Attacks |
| Factors | Flow skip, OTP brute force, downgrade | MFA Bypass, Passkeys and WebAuthn |
| Session | Fixation, hijacking, forgeable stateless cookies | Session Management |
| Authorization on account fields | Email or phone change without ownership checks or CSRF protection | Broken Access Control, Cross-Site Request Forgery |
| Identity normalization | Auth layer and database disagree on Unicode or case, so two “different” identifiers map to one account ([[raw/medium.com/how-an-unhandled-unicode-normalization-mismatch-led-to-a-5-000-account-14945 | Unicode ATO]]) |
| Signing oracles | The app signs attacker-controlled data with the same key it trusts for auth tokens ([[raw/strix.ai/account-takeover-in-better-auth-expo-via-a-signing-oracle-14435 | Better Auth]]) |
| Client side | XSS, postMessage without origin checks, WebView header injection, cache deception/poisoning of authenticated or OAuth-redirect responses | Cross-Site Scripting |
| Phishing and tokens | AiTM, device-code and consent phishing, infostealers | Adversary-in-the-Middle Phishing, Device Code Phishing, OAuth Consent Phishing |
| Credential attacks | Credential stuffing and password spraying ([[raw/cheatsheetseries.owasp.org/owasp-credential-stuffing-prevention-cheat-sheet-4079 | OWASP]]) |
What to check
- Map every account-anchor mutation (email, phone, password, MFA, linked identities, recovery codes). Each needs authorization on the object, re-authentication, CSRF protection, and verification of the new anchor plus notification to the old one.
- Every session-issuing path (login, SSO, magic link, reset, mobile and legacy APIs, device flows): does each enforce the same factors?
- Identifier handling: case, Unicode normalization (NFKC), whitespace and email-parser differences between signup, login, reset and the database.
- Is any user-controlled value signed or encrypted with a key that also protects auth tokens or state?
- Do APIs return tokens, reset records or session material for a supplied user ID or UUID? Do error messages leak those IDs?
- Social-login accounts: can a session set a first password (or other anchor) without re-authentication? That turns any same-origin script execution into persistent ATO (Chess.com).
- Client side:
postMessagelisteners and senders (origin checks, token-bearing messages), WebView allowlists (claimable domains), deep links, open redirects on OAuth-allowed origins. - Caching: are authenticated responses or OAuth redirect responses (302 with a code) cacheable by CDN path or extension rules?
- Rate limiting and credential-stuffing controls on login and recovery.
- Multi-step login flows: race conditions between steps that bind identity.
Notable cases
- Uber ($6,500, 2019): a UUID leaked in an error message, then an API returned that user’s mobile token, giving rider, driver and Eats ATO (case study).
- Tinder (2018): a skipped OTP binding plus an unchecked token audience meant a phone number was enough to take an account (case study).
- TikTok (DEF CON 34): cache misconfiguration on OAuth completion flows (cached 302s, path traversal) gave zero- and one-click ATO (talk). Also see cache-key-mismatch web cache deception (writeup).
- @better-auth/expo (GHSA-4wq4-2ppv-q3hg):
/expo-authorization-proxysigned arbitrary state, which was used to forge an email change and get a session. Zero-click (Strix). - phpBB <3.3.17 (CVE-2026-48611):
login_linkwithauth_provider=apacheskipped password checks, so one request logged in as any user (Aikido). - Unicode normalization ($5,000): auth layer and database normalized differently, allowing impersonation (writeup).
- GraphQL mass ATO (29,000 accounts): introspection exposed
tokenForgotPasswords(writeup). - Grafana (CVE-2025-6023/6197): open redirect plus client-side path traversal gave XSS and then ATO. An incomplete earlier patch left it open (OPSWAT).
- Email change: CSRF on the email-change endpoint ($1,300) (writeup). A broken access control let one user modify another account’s email (P2) (writeup).
- One-click client-side: a third-party SDK
postMessagebug (writeup). WebView auth-header injection to a claimable allowlisted domain (writeup). An open redirect chained to ATO at Zee (P1, CVSS 9.0) (writeup). A stale CNAME plus a wildcard OAuth redirect ($6,000) (writeup). - Chess.com (postMessage DOM XSS): a
SHOW_MESSAGE_MODALlistener without anevent.origincheckObject.assigned an attackeruserobject into state, and the username reachedinnerHTML. DOMPurify ran, butxssFilterrestored extracted chess-diagram comments after sanitizing (“the last writer wins”). Accounts created via Google or Apple can set a password without the old one, so script in the origin became full ATO. Fixed with an origin check; triaged as a duplicate by root cause (XENOPS). - Intel/CBSE AI Student Community: login timing (~30–50 ms vs ~120–140 ms) and reset-response differences enumerated emails; the HS256 session secret cracked offline to
intel; the numeric user ID lived in/dashboard/{ID}, not the token, so forged tokens plus sequential IDs and no rate limiting gave ATO (writeup). See JWT Secret Cracking. - SSO pre-account hijacking: Vikunja <2.8.0 (CVE-2026-134284) linked a victim’s first OIDC login into an attacker-planted local account with the victim’s unverified email (advisory). Better Auth <1.7.16 (CVE-2026-134312) trusted unverified provider emails (including
email_verified: "false") when linking (advisory). See OpenID Connect Security. - Unverified phone as login key: better-auth 0.4.12-beta.7 → < 1.7.16 and 1.8.0-beta.0 → < 1.8.0-beta.5 (CVE-2026-134322) let sign-up and other flows store an unverified phone number, which phone-OTP sign-in then used to select the account. Attaching the victim’s number to an attacker account meant the victim’s genuine OTP login opened the attacker’s account, and whatever the victim entered became attacker-readable: the inverse of pre-account hijacking, same root cause (an unverified anchor used as identity) (advisory). See Login CSRF.
- Brute-force limits that count requests, not attempts: a JSON login accepted
"password": [ ... ]and checked every element, so one request carried a wordlist past per-request throttling; fix by rejecting non-string types and counting each verification as an attempt (writeup). Zimbra Network Edition’s GraphQL auth endpoint (CVE-2026-93637) skipped the source-IP lockout counter that guards SOAP login, so batched GraphQL attempts enabled credential stuffing; Metasploitscanner/http/zimbra_graphql_brute(Rapid7). Same class as GraphQL Batching Attacks. - Race in OTP login: racing the identity bound to a flow ID (writeup).
- Forum to OpenAI internal code: a forum’s login token worked as a login token for an internal system (writeup).
Defenses
- Treat account-anchor changes as authentication events. Require re-authentication, verify the new address or phone, notify the old one, and allow reversal (OWASP).
- Use one canonical identity per account: an immutable internal ID, normalized identifiers applied consistently at every layer, and federation keyed on
iss+sub. - Enforce object-level authorization and CSRF protection on every account-mutating endpoint.
- Never return tokens or reset material from lookup APIs, and keep error messages free of internal IDs.
- Separate signing keys by purpose (sessions, state, email links). Never sign attacker-supplied content with an auth key.
- Validate
postMessageorigins, keep WebView allowlists tight and domain-owned, and mark authenticated and OAuth responsesno-store. - Use MFA, throttling and breached-credential checks against stuffing and spraying (OWASP).
- Revoke sessions on credential and anchor changes, and monitor for new-device and new-anchor anomalies.
Related
- Authentication Security · Password Reset Vulnerabilities · MFA Bypass · Session Management · OAuth 2.0 Vulnerabilities · OpenID Connect Security · SAML Attacks · Passkeys and WebAuthn
- Vulnerability Chaining · Broken Access Control · Cross-Site Request Forgery · Cross-Site Scripting · GraphQL Security · API Security · Mobile Application Security · Bug Bounty Hunting · AI and LLM Security · Security Talks · JSON Web Tokens · Authorization Security
See also: Open Redirect
Sources
- Uber Account Takeover: The API That Handed Out Tokens · original
- The Phone Number That Unlocked Any Tinder Account · original
- Mass account takeover of 29,000 accounts by abusing GraphQL · original
- DEF CON 34: How cache poisoning led to critical account takeover in TikTok's web · original
- How a Login Token for a Forum Became a Login Token for OpenAI’s Internal Code · original
- Grafana CVE-2025-6023: Full Account Takeover · original
- Account Takeover via CSRF on the Email-Change Endpoint ($1,300) · original
- P2 Broken Access Control Allowing Unauthorized Account Email Modification and Account Takeover · original
- PostMessage Leads to One-Click Account Takeover · original
- One-Click Account Takeover via WebView Auth Header Injection to Claimable Whitelisted Domain · original
- Chaining an Open Redirect Into Account Takeover (P1 · CVSS 9.0) · original
- Race Condition Authentication Bypass: Full Account Takeover · original
- Account takeover in @better-auth/expo via a signing oracle · original
- Authentication Bypass in the default configuration phpBB · original
- How an Unhandled Unicode Normalization Mismatch Led to a $5,000 Account Takeover · original
- How a Cache Keys Mismatch Led to a Web Cache Deception Account Takeover · original
- Eight Doors, One Key: Chaining Misconfigurations into Full Account Takeover · original
- How I Chained a Stale CNAME Record with OAuth 2.0 Wildcards for a $6,000 Account Takeover (ATO) · original
- OWASP Credential Stuffing Prevention Cheat Sheet · original
- OWASP Authentication Cheat Sheet · original
- The Last Writer Wins: Chess.com account takeover via postMessage XSS · original
- Intel Inside: How a Cracked JWT Key led to Full Account Takeover · original
- Vikunja account takeover vulnerability · original
- Better Auth OAuth signature issue (high) · original
- better-auth improper authentication · original
- Exploiting Broken Brute-Force Protection with Multiple Credentials per Request · original
- Metasploit Wrap Up: Breaking Zimbra's Identity Boundaries · original