Skip to content
Back to the glossary

Account Takeover and Credential Stuffing

Account takeover is the unauthorized control of a legitimate user’s account, and credential stuffing, the automated replay of username and password pairs leaked from other services, is one of the most common ways attackers achieve it.

What is account takeover?

Account takeover (ATO) is an attack in which someone other than the legitimate owner gains control of a user account and can act as that user: read their data, make transactions, change their settings, or lock them out. Attackers reach it through stolen or guessed credentials, stolen session tokens, flawed password reset and email change flows, or authorization flaws that let one user modify another user’s account. Credential stuffing, the automated testing of breached username and password pairs, is the most common route at scale.

No standards body publishes a single formal definition of account takeover; the OWASP Automated Threats to Web Applications project files it as an alternative name for OAT-008 Credential Stuffing, and the OWASP community page on credential stuffing describes stuffing as one of the most common techniques for taking over user accounts. MITRE ATT&CK (current version 20.1, released October 2026) catalogs credential stuffing as T1110.004, a sub-technique of Brute Force under the Credential Access tactic.

What is credential stuffing?

Credential stuffing is the mass replay, against a target’s login, of username and password pairs taken from breaches of unrelated services. OWASP separates it from guessing: Under OAT-008, the attacker already holds the credentials and uses each login only to learn which of them still work, while password guessing falls under OAT-007 Credential Cracking. The attack works because people reuse passwords across sites; MITRE calls this overlap between accounts the condition the technique depends on.

Research published by Verizon alongside its 2025 Data Breach Investigations Report analyzed two years of single sign-on (SSO) provider logs and found that credential stuffing made up a median of 19% of all authentication attempts on a given day, rising to 25% for enterprise-sized organizations and peaking at 44% on a single day.

How credential stuffing works

A typical campaign has four stages:

  1. The attacker obtains a combo list of email and password pairs from public breach dumps or criminal markets.
  2. A tool replays the pairs against the login endpoint, usually through residential proxy networks so that no single IP address sends many requests.
  3. Successful logins are recorded and checked for value: stored payment cards, loyalty points, account balances, admin roles.
  4. Valid accounts are used directly or sold, and the attacker often changes the email, phone number, or multi-factor authentication (MFA) settings to keep access.

APIs are the preferred target because a mobile or single-page app backend accepts the same JSON login request a script can send, without the browser checks a web form may apply. The OWASP Credential Stuffing Prevention Cheat Sheet warns that IP blocking alone fails against proxy networks and recommends combining responses based on request volume, low-and-slow distributed traffic, IP reputation, and device or connection fingerprints.

Credential stuffing vs. brute force vs. password spraying

AttackWhat the attacker triesTypical targetMITRE ATT&CK ID
Brute force (credential cracking)Many guessed passwords against one accountA single known accountT1110 (parent technique)
Password sprayingOne or a few common passwords against many accountsLarge user directories, SSO, and email servicesT1110.003
Credential stuffingKnown breached pairs, one attempt per accountConsumer logins and public APIsT1110.004

MITRE’s password spraying entry notes that spraying one password across many accounts avoids the lockouts that repeated attempts on a single account trigger. Credential stuffing evades lockout for the same reason, since each account usually sees one attempt. The OWASP cheat sheet points out that the same controls (MFA, rate limiting, and detection logic) protect against all three.

Other routes to account takeover in APIs

Besides reused passwords, many account takeovers in APIs come from flaws in the application itself:

  • Password reset flows without the brute-force protection the login endpoint has, so a six-digit reset code can be enumerated.
  • Email or phone number changes that accept a bearer token alone, with no re-authentication.
  • Stolen or forgeable tokens, such as JSON Web Tokens and OAuth 2.0 or OpenID Connect tokens.
  • Session identifiers that survive logout or are reused after login.
  • Object-level authorization flaws, where PUT /users/{id} updates another user’s email because the server never checks ownership. This is BOLA, and it turns a read or write bug into full takeover.

The last of these often depends on application logic that a scanner reading single responses cannot judge, which places it among business logic vulnerabilities.

A worked example

The OWASP API Security Top 10 entry for API2:2023 Broken Authentication describes two scenarios that combine into a realistic chain. In the first, a GraphQL login mutation is limited to three requests per minute, and the attacker bypasses the limit by batching many mutations into one HTTP request:

POST /graphql
Content-Type: application/json

[
  {"query": "mutation { login(username: \"victim\", password: \"Summer2025!\") { token } }"},
  {"query": "mutation { login(username: \"victim\", password: \"Summer2026!\") { token } }"},
  {"query": "mutation { login(username: \"victim\", password: \"Winter2026!\") { token } }"}
]

The gateway counts one request, while the resolver performs three login attempts. In the second scenario, an attacker holding a valid token changes the account email without supplying the current password:

PUT /account
Authorization: Bearer eyJhbGciOi...

{"email": "attacker@example.net"}

A password reset request then delivers the reset link to the attacker’s address, and the victim loses the account. Neither request is malformed, so a WAF or API gateway inspecting payloads has nothing to block.

Account takeover in the OWASP lists and NIST guidance

In the OWASP API Security Top 10, whose latest edition is 2023, credential stuffing and weak reset flows fall under API2:2023 Broken Authentication, and the cross-user email change falls under API1:2023 BOLA. In the OWASP Top 10:2025, the relevant category is A07:2025 Authentication Failures, which names credential stuffing and password spraying, maps CWE-307 (Improper Restriction of Excessive Authentication Attempts), and recommends MFA and breached-password checks.

NIST SP 800-63B-4, finalized in July 2025, sets two requirements that bear directly on stuffing. Verifiers must compare new passwords against a blocklist of common, expected, or compromised values and must cap consecutive failed attempts on an account at 100 before disabling that authenticator.

How to test for account takeover

  • Map every endpoint that authenticates a user or changes a credential: login, token refresh, MFA enrollment, password reset, email and phone number change, and legacy or mobile API versions of each.
  • Send repeated failed logins for one account and across many accounts, and record whether rate limiting, lockout, or step-up challenges trigger and whether they key on IP, account, or device.
  • Test bypasses: GraphQL batching, alternate API versions, header-based IP spoofing such as X-Forwarded-For, and case or whitespace variations in usernames.
  • Compare error messages and response times for valid and invalid usernames to check for user enumeration.
  • Check that reset codes are single-use, expire, and are rate limited, and that reset tokens are bound to the requesting account.
  • Attempt sensitive changes with only a token and confirm that the server requires re-authentication.
  • Repeat account update requests with another user’s identifier to look for authorization failures that lead to takeover.

Credential replay testing in production should use test accounts agreed on in the penetration test scope, since lockout controls that work as intended will lock real users out.

Testing account takeover paths with Equixly

Equixly runs AI penetration testing against web applications and APIs. Its AI engine is stateful and graph based, so it adapts its next move to what the target reveals, which suits multi-step takeover paths such as a stolen token used to change the email and then reset the password. Attacks run against the live target, and the engine validates the outcome during the test. Coverage of authentication, reset, and account update endpoints for missing rate limiting, lockout, and re-authentication depends on the test configuration.


Did you like our post? Share it on social!

  • Agent Harness

    The software around a language model that runs the agent loop, decides what enters the model’s context, keeps memory between steps and sessions, and executes the tool calls the model requests.

  • AI Agents and Agentic AI

    A software system in which a language model decides which actions to take toward a goal and carries them out by calling tools such as APIs, code execution, or a browser.

  • AI Hallucination and Non-Determinism

    AI hallucination is output a language model states with confidence that is false or unsupported; non-determinism is the tendency of the same model to answer the same input differently from one run to the next.