πŸ§ͺ AuthLabTRAININGauthentication & MFA reverse-engineering lab

Authentication & MFA reverse-engineering lab

Eight self-contained login scenarios, one per subdomain. Each shows its mechanism live in a Flow inspector panel β€” open your browser's DevTools β†’ Network beside it and watch the requests, tokens and challenges. The goal: understand how each flow works, and which ones a MITM/phishing proxy can defeat.

Accounts: haim and steve  Β·  Password: AuthLab!2026
Intentionally known β€” this is a training target, not a real service. lab4 is passwordless (register a passkey first).
lab1MITM-proxyable
Classic password
Form POST β†’ session cookie Β· Easy
πŸ”Ž The POST /login body and Set-Cookie. Replay the cookie elsewhere.
lab2MITM-proxyable
Password + TOTP
RFC 6238 authenticator app Β· Easy
πŸ”Ž The otpauth:// enrollment secret + the 6-digit code window.
lab3MITM-proxyable
Password + OTP code
One-time code via mailbox Β· Easy
πŸ”Ž Code lifetime, single-use + rate-limit defenses.
lab4phishing-resistant
WebAuthn / passkeys
FIDO2 passwordless Β· Medium
πŸ”Ž The signed assertion bound to the origin β€” nothing to relay.
lab5MITM-proxyable
OAuth2 / OIDC + PKCE
Auth code + PKCE (+ idp.) Β· Hard
πŸ”Ž authorize β†’ code β†’ /token with code_verifier; decode the id_token JWT.
lab6MITM-proxyable
Magic link
Signed single-use URL token Β· Easy
πŸ”Ž The ?token= JWT: sub, jti, exp. One click consumes it.
lab7MITM-proxyable
Push MFA
Number-matching approval Β· Medium
πŸ”Ž The challenge id, the /status poll loop, the number match.
lab8MITM-proxyable
Step-up / risk
Re-auth + device binding Β· Medium
πŸ”Ž The signed device cookie and when the vault forces step-up.

The thread tying them together

lab1–lab3, lab5, lab6, lab7 all carry a secret or code that a real-time proxy can relay β€” the same weakness the evilginx/Lucky-Steve MITM work exploits. lab4 (WebAuthn) is the exception: the authenticator signs the real origin, so a proxy on another domain gets a signature the server rejects. That contrast is the core lesson.