Course
Authentication & Identity Systems
Sessions, cookies, JWT verification, OAuth 2.0 + OIDC + SAML flows, passkeys, and the auth bugs that actually get exploited — mechanism first.
Keep reading
Related articles from the SudoSecurity blog.
A 257-Byte Password Is the Key: Inside the OpenSSH musl Bypass
CVE-2026-123158 lets an attacker log into a locked account on musl-based systems like Alpine by sending a password nobody set. The trigger is one number, 257, and the reason is a C library returning a single asterisk. I reproduced the exact boundary against musl 1.2.4 and read the fix.
Zero-Trust Access for Homelabbers: Teleport vs. Tailscale vs. WireGuard vs. Cloudflare Tunnel
Four tools solve four different problems that all get pitched as the same problem. Here's what each one does, where each one breaks, and the combination that covers a real homelab without paying an SSO tax you didn't see coming.
The SSO Tax: Why Self-Hosted Projects Are Gating Login Behind a Paywall
A growing list of open-core self-hosted projects, from Grafana to Planka, gate single sign-on behind an Enterprise tier. Here's which protocol actually gets paywalled, and what to check before you deploy.
Zero Trust Everything: The Complete Guide to Self-Hosting Teleport for Secure Infrastructure Access
SudoSecurity runs Teleport internally for everything — admin panel access, secure database connections, Kubernetes, and zero-trust philosophy across our entire team. This is the complete technical guide to installing, configuring, and running your own self-hosted Teleport cluster from scratch.
Reviews
Enrolled members can rate this course.
No reviews yet.
Sessions & Cookies
Server-side session state, the cookie flags that bound it, and the fixation/CSRF bugs ambient authority invites.
- 01What a Session Really IsA session is server-side state keyed by an opaque cookie value — everything else is plumbing.14mOpen
- 02Cookie Flags That Actually MatterHttpOnly, Secure, SameSite, Domain, and __Host- each answer a different question the browser asks before attaching a cookie.15mOpen
- 03Fixation, Rotation, ExpiryRotating the session ID at every privilege transition kills fixation; idle and absolute TTLs bound what a stolen ticket is worth.13mOpen
- 04CSRF Still WorksSameSite=Lax default killed most ambient-authority CSRF — the same-site boundary, Lax+POST, and GET mutations are the gaps left over.14mOpen
JWTs & Tokens
How signed tokens actually verify, the alg/kid/jku attacks that shipped, and where credentials should live.
- 01JWT Anatomy: Signed, Not SecretThree base64url segments, attacker-controlled header metadata, and claims that are checks you're supposed to run — not facts you're given.13mOpen
- 02JWT Attacks That Shippedalg confusion, kid injection, and jku SSRF all ship from one defect: the verifier trusting the token's own metadata.15mOpen
- 03Where Tokens Live MatterslocalStorage lets any script own the credential forever; an HttpOnly cookie can be ridden but not stolen; the BFF pattern makes the frontend hold nothing.13mOpen
- 04Refresh Tokens and RevocationShort-lived access plus rotating, reuse-detected refresh tokens — and the revocation state that 'stateless JWT' can't avoid.15mOpen
OAuth 2.0, OIDC & SAML
The grant that survived, the identity layer on top of it, and the XML enterprise SSO you can't quite kill.
- 01OAuth 2.0: The Grants That SurvivedAuthorization code + PKCE is the flow; implicit and password grants died of URL leaks and credential sharing.15mOpen
- 02OIDC Is Not OAuthAccess tokens authorize API calls; the ID token's aud and nonce are what actually prove a user authenticated for your client.14mOpen
- 03SAML: The XML You Can't AvoidSignature wrapping attacks from 2012 still ship as CVEs, and a stolen IdP signing cert mints identities for everyone.16mOpen
Credentials & Passkeys
Password storage rules that survived the breaches, WebAuthn ceremonies, and the auth bugs that actually burned companies.
- 01Password Storage in 2025Argon2id's memory hardness, bcrypt's 72-byte edge, a pepper outside the DB, and NIST 800-63-4's breach-check mandate.15mOpen
- 02Passkeys and WebAuthnChallenge-response with per-origin asymmetric credentials ends phishing — synced vs device-bound is the real remaining decision.16mOpen
- 03The Auth Bugs That Actually Got ExploitedOkta's HAR files, Microsoft's key-scope confusion, Golden SAML, and stuffing bots — identity material leaks outside the boundary, every time.14mOpen