Home / Knowledge hub / Broken authentication
Knowledge hub
Broken authentication
Flaws in sign-in or token handling that let someone pose as another account.
What it means
Broken authentication is a family of flaws in how an application proves who someone is. The weakness can be in the sign-in form, the password reset, the session cookie or the token. The result is the same: a person can act as an account that is not theirs.
OWASP lists it as a top risk for both web applications and APIs. It is not one bug. It covers weak passwords being accepted, endless guessing, tokens that can be forged or reused, and sessions that do not end when they should.
Why it matters
Once an attacker holds a real account, every control behind the sign-in works in their favour. They can read the customer's data, spend their credit and send messages in their name. If the account is an administrator, the damage covers the whole business.
These flaws also make account takeover cheap at scale. Automated tools try stolen passwords against thousands of accounts. The cost to you is support load, fraud, refunds and customers who stop trusting you with their data, plus the awkward conversation about how long it went unnoticed.
How it shows up
Typical causes are easy to list. There may be no limit on guessing, so brute force or credential stuffing succeeds. There may be a password reset flaw, session identifiers that do not change after sign-in, tokens with no expiry, or unsigned and weakly verified JWTs.
Check how sign-in behaves under repetition, what the reset link proves, whether the session survives logout, and whether the server validates every token field. Test the less visible routes too: mobile APIs, legacy endpoints and the support tools that let staff reset access. Support tooling is often built quickly, trusted heavily and tested rarely.
Questions people ask
Broken authentication, answered
Is broken authentication the same as a weak password?
A weak password is one cause. The wider problem includes missing limits on guessing, flawed resets, poor session handling and badly checked tokens.
A strong password policy does not help if the reset link can be guessed.
Does multi-factor authentication fix it?
It helps a great deal against stolen passwords, but not against everything. Flawed session handling, forged tokens and reset bypasses can skip the second factor entirely.
Treat MFA as one layer.
How does it differ from broken access control?
Broken authentication is about proving who someone is. Broken access control is about what a proven account may then do.
An application can have one without the other, and attackers often chain them.
What does OWASP call it now?
In the 2021 web Top 10 it appears as Identification and Authentication Failures. In the API Security Top 10 it is still named Broken Authentication.
The scope is similar in both.
How do we test for it?
Try repeated sign-in attempts, replay old tokens after logout, tamper with token contents, and walk through the reset and invitation flows looking for shortcuts.
Test the APIs behind the app as well as the login screen.
Related
Terms that sit next to this one
API authentication
How an API decides which caller is making a request before it does anything.
Account takeover
An attacker ends up signed in as one of your real users.
Session management
How your app creates, tracks, renews and ends a signed-in visit.
Password reset flaw
A weak reset link or code that lets someone else take over the account.
Credential stuffing
Trying passwords leaked elsewhere, because people reuse them.
Can someone pose as a customer?
We test sign-in, resets, sessions and tokens for ways one account can pose as another, and report only what we exploited. Each finding carries the request and response. Book a pilot on one app.
Or start with a $199 pilot on one application: thirty days, success criteria agreed before day one, credited against the annual if you convert.