Auth Attack Wiki

A focused encyclopedia of authentication attack techniques. Each page links to a hands-on lab where one exists.

JSON Web Tokens

  • How attackers forge JSON Web Tokens by abusing the alg header — the unauthenticated alg:none bypass and RS256→HS256 algorithm confusion.

  • HS256 JWTs signed with a guessable secret can be brute-forced offline, letting an attacker forge arbitrary valid tokens.

  • The kid (key id) header can be abused for path traversal, SQL injection, or command injection when the server uses it to locate the verification key.

OAuth & OIDC

  • Loose redirect_uri validation lets attackers steal OAuth authorization codes and access tokens via open redirects and host confusion.

  • Without a bound state parameter, OAuth flows are vulnerable to CSRF — an attacker can graft their own authorization onto a victim's session.

  • Modern attackers abuse the OAuth device authorization grant to phish tokens — no fake login page required. A live threat against Microsoft 365 and other IdPs.

SAML & SSO

  • XML Signature Wrapping abuses the gap between the element a SAML signature covers and the element the application actually reads.

  • Some Service Providers accept SAML assertions whose signature is merely present, absent, or unverified — allowing forged identities.

Password Reset

Sessions & Cookies

MFA & Passkeys

Credential Attacks

  • Attackers replay username/password pairs leaked from other breaches against your login at scale, exploiting password reuse.

  • Differences in responses, timing, or errors let attackers learn which usernames exist — the precursor to targeted credential attacks.

  • Without throttling or lockout, login and OTP endpoints can be brute-forced and stuffed at unlimited speed.