Join our Newsletter — 33% off our NHI Course
Home› Glossary› Authentication, Authorisation & Trust› API2 Broken Authentication
Authentication, Authorisation & Trust

API2 Broken Authentication

← Back to Glossary
By NHI Mgmt Group Updated November 26, 2026 Domain: Authentication, Authorisation & Trust

API2 Broken Authentication is the second risk in the OWASP API Security Top 10 (2023 edition), covering flawed authentication mechanisms that let attackers assume other identities. Common causes include no rate limiting on login, weak or unvalidated tokens, and credentials sent in URLs. Defenders test token validation and expiry, throttle authentication endpoints, and monitor for credential stuffing.

What Broken Authentication Means in an API

Broken authentication in an API means the service does not reliably prove who is making a request, or it lets an attacker bypass, replay, or abuse that proof. In practice, the failure often sits in login, token validation, session handling, reset flows, or credential handling, which turns identity checks into an attack surface rather than a control.

That matters because APIs are frequently consumed by browsers, mobile apps, automation, and back-end services, so weak authentication can expose a broad set of operations at machine speed. The security issue is not just "weak login", it is the loss of trust in the mechanism that decides whether a caller is allowed to act at all.

How API2 Usually Breaks

Common failure modes include missing rate limits on authentication endpoints, weak token validation, expired tokens that still work, poor audience or issuer checks, and credentials transported in ways that are easy to log or leak. A design can also break when the application treats possession of a string as proof of identity without validating the token's integrity, lifetime, and intended recipient.

Another recurring problem is confusing authentication with mere API key presentation. An API key can identify a client or a project, but it is not a complete authentication model by itself unless the design also binds it to the right caller, scope, and lifecycle controls.

Why It Becomes Dangerous

Once authentication fails, attackers can impersonate users, service callers, or privileged integrations and then invoke whatever the API exposes. That can lead to data access, account takeover, transaction abuse, privileged actions, or exposure of downstream systems that trust the API as an identity source.

The damage often scales quickly because APIs are built for repeated, programmatic access. A bypass that would be noisy in a human login form can become a high-volume abuse path in an API, especially when credential stuffing, token replay, or automated guessing is not throttled.

What Good Defenses Need to Cover

Defence needs to cover the full authentication path, not just the password field. Validate token signatures and claims, enforce expiry and audience checks, rate limit login and reset endpoints, and treat recovery flows as part of the same control surface. Where possible, prefer stronger, phishing-resistant authentication patterns and short-lived credentials over static secrets.

Testing should include negative cases, not only happy-path sign-in. Check whether invalid, expired, substituted, or replayed tokens are rejected, whether account enumeration is possible, and whether sensitive operations require step-up checks. For API teams, the practical rule is that authentication must be verified at the boundary of every trusted action, not assumed because the caller arrived through a known client.

Risk and Threat Considerations

Broken authentication is attractive to attackers because it can turn a normal API into a privilege broker for impersonation, token abuse, and automated account compromise. The risk is highest where the API handles login, resets, session issuance, or service-to-service trust, because one flaw there can unlock many downstream actions.

Failure mechanism: The attacker exploits weak validation, weak rate limiting, or a confused trust model to present forged, replayed, stolen, or unexpired credentials as if they were genuine.

Impact: Successful abuse can expose data, trigger unauthorized transactions, enable lateral movement into connected systems, and force credential or token rotation across dependent services.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 addresses the attack and risk surface, while OWASP ASVS, NIST SP 800-53 Rev 5, NIST SP 800-63 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP API Security Top 10API2 — Broken AuthenticationThis term is the API2 risk itself and its control focus.
Recommendation — Validate API authentication flows, token handling, and rate limits to prevent identity abuse.
OWASP ASVSV6 — AuthenticationAPI authentication weaknesses map directly to ASVS authentication requirements.
Recommendation — Apply V6 to verify token validation, expiry handling, and anti-bruteforce controls.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementBroken authentication often stems from weak credential and token lifecycle control.
Recommendation — Manage authenticators with strict issuance, rotation, revocation, and expiry controls.
NIST SP 800-63Digital Identity Guidelines — Digital Identity GuidelinesThe term concerns authenticating callers and validating identity proofing assumptions.
Recommendation — Use 800-63 guidance to strengthen authenticator assurance and token-based sign-in.
CIS Controls v8CIS-5 — Account ManagementAuthentication failures are often exposed through poor account and credential lifecycle control.
Recommendation — Harden account and credential processes to reduce brute force and credential abuse.

Practitioner Guidance

Why practitioners should care: API authentication failures are often invisible until they are abused at scale, so the control has to be designed for failure as well as success. Review authentication flows as a whole, including login, refresh, reset, federation, and machine-to-machine calls.

What to watch for: repeated login attempts without throttling, tokens accepted from the wrong audience, permissive reset logic, and credentials appearing in logs or URLs. Those are usually the earliest signs that the API is trusting identity evidence too loosely.

Practitioner takeaway: If the API can issue, accept, or refresh identity proof, it can usually be attacked through that same path unless validation, expiration, and abuse controls are explicit.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org