Use this when login, MFA or session handling is weak in an application (OWASP A07).
Authentication Failures
Identification and authentication failures (OWASP A07) include weak passwords, missing MFA, credential stuffing exposure and poor session handling. Use MFA, rate limiting and secure session management.
1. Identification/authentication failures: weak passwords, no MFA, bad session handling, credential stuffing.
2. MFA.
3. Rate limiting and breached password checks.
4. Secure sessions.
5. Use proven IdPs.
login → strong auth + session controls
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Testing Verify boundary
- Try many logins quickly: is there rate limiting or lockout?
- Check whether the session ID changes after login.
- Log out and replay the old session cookie.
- Test password reset tokens for expiry, single use and guessability.
- Try skipping the MFA step by calling later endpoints directly.
Step 2 Common mistakes Narrow the fault
- No MFA or rate limiting on login.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Credential stuffing exploits weak login defences.
- Sessions must be invalidated on logout.
- MFA is the strongest control.
- Credential stuffing protection (rate limit, MFA) — controls
- Session management review — tokens
- Password policy and hashing — storage
ReferenceWhy it matters1 section · depth on demand
Checklist
- MFA, preferably phishing-resistant.
- Block breached and common passwords; no forced periodic changes without cause (NIST 800-63B).
- Rate-limit and monitor login attempts (credential stuffing).
- Secure session handling: new session ID at login, idle and absolute timeouts, server-side logout.
ReferenceHow it works1 section · depth on demand
In depth
Identification and authentication failures allow attackers to compromise passwords, keys or sessions: credential stuffing, brute force, weak password recovery, missing MFA, session IDs that do not expire or rotate.
Controls:
| Weakness | Control |
|---|---|
| Credential stuffing/brute force | MFA, rate limiting, breached-password checks |
| Weak passwords | Length requirements, block common/breached passwords |
| Weak recovery | Secure reset flows, no knowledge-based answers |
| Session issues | New session at login, timeouts, server-side invalidation |
| Credential exposure | Never in URLs or logs; secure storage hashing |
Prefer delegating authentication to a mature identity provider (SSO with OIDC/SAML) over building it per application.
ReferenceImportant terms & boundaries1 section · depth on demand
Examples
- Credential stuffing succeeds because there is no rate limiting or MFA.
- Session IDs in URLs, or sessions that never expire.
- Weak password recovery ("mother's maiden name").
- Accepting passwords found in breach corpuses — check against Have I Been Pwned's k-anonymity API.
- MFA that can be skipped by calling the next step's endpoint directly.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in OWASP → Authentication Failures. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://owasp.org/www-project-application-security-verification-standard/ · confidence 94%