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:

  1. Authenticate as the victim: forge or replay the proof (SSO assertion, OTP, passkey assertion, password), or exploit a login-logic bug.
  2. 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.
  3. 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:

PathMechanismSee
RecoveryReset poisoning, token leakage or guessing, identity taken from the requestPassword Reset Vulnerabilities
FederationCode or token theft, missing state, email-claim trust, XSWOAuth 2.0 Vulnerabilities, OpenID Connect Security, SAML Attacks
FactorsFlow skip, OTP brute force, downgradeMFA Bypass, Passkeys and WebAuthn
SessionFixation, hijacking, forgeable stateless cookiesSession Management
Authorization on account fieldsEmail or phone change without ownership checks or CSRF protectionBroken Access Control, Cross-Site Request Forgery
Identity normalizationAuth 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-14945Unicode ATO]])
Signing oraclesThe 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-14435Better Auth]])
Client sideXSS, postMessage without origin checks, WebView header injection, cache deception/poisoning of authenticated or OAuth-redirect responsesCross-Site Scripting
Phishing and tokensAiTM, device-code and consent phishing, infostealersAdversary-in-the-Middle Phishing, Device Code Phishing, OAuth Consent Phishing
Credential attacksCredential stuffing and password spraying ([[raw/cheatsheetseries.owasp.org/owasp-credential-stuffing-prevention-cheat-sheet-4079OWASP]])

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: postMessage listeners 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-proxy signed 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_link with auth_provider=apache skipped 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 postMessage bug (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_MODAL listener without an event.origin check Object.assigned an attacker user object into state, and the username reached innerHTML. DOMPurify ran, but xssFilter restored 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; Metasploit scanner/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 postMessage origins, keep WebView allowlists tight and domain-owned, and mark authenticated and OAuth responses no-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.

See also: Open Redirect

Sources