PrepStack › Backend › Authentication & Authorization

Authentication & Authorization interview cheat sheet

Passwords, sessions, JWT, OAuth 2.0/OIDC, SSO, MFA, passkeys and access-control models

Every backend and system-design interview touches auth. Interviewers check that you can tell authentication from authorization, store passwords safely, choose between sessions and JWTs, explain OAuth 2.0 and OpenID Connect flows step by step, and spot classic attacks. The Node snippets build the primitives by hand (scrypt, HMAC-signed JWTs, PKCE, TOTP) so you can explain what libraries do for you. In real code, use a vetted library for each of them.

15-minute revision

  1. Authentication = who are you (login, token check). Authorization = what may you do (permissions). Fail authn → 401, fail authz → 403.
  2. Never store passwords: store a slow, salted hash. OWASP order: Argon2id (19 MiB, t=2, p=1) → scrypt (N=2^17, r=8, p=1) → bcrypt (cost ≥ 10, 72-byte limit) → PBKDF2-SHA256 (600k iterations, for FIPS).
  3. Salt is unique per user and stored next to the hash. Pepper is one secret kept outside the DB (vault/KMS). Compare hashes in constant time.
  4. Sessions: random ID in an HttpOnly; Secure; SameSite cookie, state on the server, instant logout. JWT: signed, self-contained claims, no lookup, hard to revoke.
  5. A JWT is base64url(header).base64url(payload).signature. It is signed, not encrypted: anyone can read the payload. Always check alg, signature, exp, iss, aud.
  6. HS256 = one shared secret signs and verifies. RS256/ES256 = private key signs, public key (JWKS, picked by kid) verifies. Use asymmetric when many services verify.
  7. Short-lived access token (5–15 min) + long-lived refresh token stored server-side. Rotate the refresh token on every use and revoke the whole family on reuse.
  8. Browser token storage: localStorage is readable by any XSS. Prefer HttpOnly cookies (plus CSRF defence) or a BFF that keeps tokens on the server.
  9. OAuth 2.0 is delegated authorization (access tokens for APIs). OIDC adds authentication on top: the openid scope and an ID token about the user.
  10. OAuth roles: resource owner, client, authorization server, resource server. Use authorization code + PKCE for user logins, client credentials for service-to-service, device flow for TVs/CLIs.
  11. Implicit and password grants are deprecated (RFC 9700 BCP); OAuth 2.1 removes them and makes PKCE mandatory plus exact redirect-URI matching.
  12. SSO = log in once at an IdP, use many apps. SAML = XML assertions, enterprise web SSO. OIDC = JSON/JWT, web + mobile + APIs.
  13. TOTP = HMAC(secret, floor(time/30)) truncated to 6 digits. Passkeys/WebAuthn = per-site key pairs, phishing-resistant because the browser binds them to the origin.
  14. Machines: API keys (store only a hash, scope them, rotate), HMAC request signing, mTLS (both sides present certificates), OAuth client credentials.
  15. RBAC = permissions via roles. ABAC = rules on attributes (dept, time, owner). ReBAC = relationships graph (Google Zanzibar). Deny by default, check on the server, least privilege.
  16. Classic attacks: credential stuffing (rate limit + MFA + breached-password check), session fixation (new session ID at login), JWT alg: none/alg confusion (pin the algorithm).

Foundations

Authentication vs authorization

Authentication proves identity; authorization decides what that identity may do, on every request.

  • Authentication (authn) verifies a claim of identity using factors: something you know (password), have (phone, security key) or are (biometric).
  • Authorization (authz) runs after authn. It checks permissions for a specific action on a specific resource (can alice edit invoice 42?).
  • Identification is just stating who you are (a username). Accounting/auditing records what you did. Together: AAA.
  • Authn usually happens once and produces a credential for later requests: a session cookie or a token.
  • HTTP status codes: 401 Unauthorized really means unauthenticated (send a WWW-Authenticate header). 403 Forbidden means authenticated but not allowed. Some APIs return 404 to hide that a resource exists.

Interview questions

  • What is the difference between authentication and authorization?
  • When do you return 401 vs 403?
  • What are authentication factors?

Password storage: hashing, salt & pepper

Store a slow, salted, memory-hard hash (Argon2id, scrypt, bcrypt), never the password or a fast hash.

  • Hash, don't encrypt. Encryption is reversible; a stolen key reveals every password. A hash is one-way: you re-hash the login attempt and compare.
  • Fast hashes (MD5, SHA-1, SHA-256) are wrong for passwords: GPUs try billions per second. Password hashes are deliberately slow and tunable (a work factor).
  • Salt: random, unique per user, stored with the hash. Same password → different hashes, and precomputed rainbow tables become useless.
  • Pepper: one secret added for all users, kept in a vault/HSM, not in the DB. A DB-only leak can then not be cracked offline. It is defence in depth, not a replacement for salt.
  • Store algorithm + parameters + salt + hash together (like $argon2id$v=19$m=19456,t=2,p=1$...). Then you can raise the cost and rehash on next login.
  • Compare with a constant-time function (crypto.timingSafeEqual) so response time does not leak how many bytes matched.

Interview questions

  • How should passwords be stored?
  • What is a salt and why is it needed?
  • Salt vs pepper?
  • Why not SHA-256 with a salt?
  • How do you migrate from MD5 hashes to Argon2id without forcing resets?

Least privilege, scopes & object-level checks

Give each user, token and service the minimum access it needs, and check ownership of every object on the server.

  • Least privilege: grant only what is needed, for only as long as needed. Applies to users, service accounts, DB users, cloud IAM roles and tokens.
  • Deny by default: if no rule allows an action, it is denied. A new endpoint should be locked until someone adds a rule.
  • Scopes limit what a token can do (orders:read). A leaked read-only token does much less damage than an all-powerful one.
  • Broken object-level authorization (BOLA/IDOR) is the top API risk in the OWASP API Top 10: GET /invoices/43 must check that invoice 43 belongs to the caller, not just that the caller is logged in.
  • Separation of duties and just-in-time elevation (temporary admin access with approval and audit) reduce standing privileges.
  • Centralise checks (middleware, policy engine) so they are not forgotten in one handler, and log every denied decision.

Interview questions

  • What is the principle of least privilege?
  • What is IDOR / BOLA and how do you prevent it?
  • Where should authorization be enforced in a microservices system?

Sessions & tokens

Server-side sessions & cookies

After login the server stores session state and gives the browser a random ID in a hardened cookie.

  • Login succeeds → server creates a session record (user ID, created/expiry time) in memory, Redis or a DB → returns a random session ID in Set-Cookie.
  • The ID must be unguessable: at least 128 bits from a CSPRNG (crypto.randomBytes). It carries no meaning; all data lives on the server.
  • Cookie flags: HttpOnly (JS cannot read it), Secure (HTTPS only), SameSite=Lax/Strict (limits cross-site sending, a CSRF defence), short Max-Age, and the __Host- prefix to lock it to one host.
  • Logout = delete the server record. That makes revocation instant, which tokens struggle with.
  • Use both an idle timeout (e.g. 30 min) and an absolute timeout (e.g. 12 h). Rotate the ID on login and privilege change.
  • Scaling: share the store (Redis) across instances, or use sticky sessions. A shared store is the usual answer.

Interview questions

  • How does session-based authentication work?
  • How do you scale sessions across many servers?
  • Which cookie flags matter for a session cookie and why?

Sessions vs JWT (stateful vs stateless)

Sessions keep state on the server and are easy to revoke; JWTs carry signed state and are easy to verify anywhere.

  • A session ID is a reference: meaningless without a lookup. A JWT is a value: it contains the claims and a signature, so any service with the key can verify it without a DB call.
  • The price of stateless tokens is revocation: a valid JWT works until exp. You either keep lifetimes short or add state back (denylist, token version).
  • JWTs are larger (hundreds of bytes to KBs) and are sent on every request.
  • Sessions fit classic server-rendered web apps on one domain. JWTs fit APIs, mobile apps and microservices, and they are the format of most OAuth access tokens.
  • It is not either/or: many systems use a session cookie at the edge (BFF) and JWTs between services.

Interview questions

  • Sessions or JWT: which would you choose and why?
  • What is the biggest downside of JWTs?
  • Are JWTs more secure than sessions?

JWT structure, claims & validation

A JWT is header.payload.signature in base64url; the server must verify the signature and every relevant claim.

  • Header: alg (e.g. HS256, RS256), typ, and often kid (which key signed it).
  • Payload (claims): registered claims iss (issuer), sub (subject/user), aud (audience), exp (expiry), nbf (not before), iat (issued at), jti (unique ID), plus custom ones like scope or roles. Times are seconds since epoch.
  • Signature covers header.payload, so any change breaks it. It gives integrity and authenticity, not secrecy. For confidentiality use JWE.
  • Validation checklist: well-formed, alg on the allow-list, signature valid with the expected key, exp in the future (small clock skew), nbf, iss equals your issuer, aud contains your API, and the token type is what you expect.
  • Keep the payload small and free of secrets or PII. Put an ID in, not the whole user profile.

Interview questions

  • What are the three parts of a JWT?
  • Is the JWT payload encrypted?
  • What must a resource server validate on an incoming JWT?
  • Why include aud in an access token?

Signing algorithms: HS256 vs RS256 vs ES256

HMAC uses one shared secret; RSA and ECDSA sign with a private key so verifiers only need the public key.

  • HS256 (HMAC-SHA256): the same secret signs and verifies. Fast and simple, but every verifier could also mint tokens. Fine when one service does both. The secret needs at least 256 random bits.
  • RS256 (RSA PKCS#1 v1.5 + SHA-256): private key signs, public key verifies. 2048-bit keys give 256-byte signatures. Widely supported. PS256 is the RSA-PSS variant.
  • ES256 (ECDSA P-256 + SHA-256): same model as RS256 with much smaller keys and 64-byte signatures. EdDSA (Ed25519) is a newer option.
  • Issuers publish public keys as a JWKS at a URL (in OIDC, via /.well-known/openid-configuration → jwks_uri). Tokens carry kid so verifiers pick the right key and rotation is easy: add the new key, start signing with it, remove the old one after tokens expire.
  • Bind each key to one algorithm. That stops algorithm-confusion attacks where an RSA public key is misused as an HMAC secret.

Interview questions

  • HS256 vs RS256: when do you use which?
  • How do you rotate JWT signing keys without logging everyone out?
  • What is the algorithm-confusion attack?

Access vs refresh tokens, rotation & revocation

Short-lived access tokens limit damage; refresh tokens get new ones and are rotated, tracked and revocable.

  • Access token: sent to APIs on every call, short-lived (5–15 min), often a JWT, checked without a DB call.
  • Refresh token: sent only to the auth server's /token endpoint to get a new access token. Long-lived (days), opaque, and stored server-side as a hash so it can be revoked.
  • Rotation: each refresh returns a new refresh token and invalidates the old one. If an old one is used again, someone copied it: revoke the whole token family and force a login.
  • Revocation options for access tokens: keep them short, a denylist of jti until exp, a per-user token version or “valid after” timestamp, or introspection (RFC 7662) for opaque tokens.
  • Logout-everywhere: delete sessions and refresh tokens, bump the token version. Also do this on password change and account recovery.
  • Sender-constrained tokens (DPoP, RFC 9449; mTLS-bound, RFC 8705) bind a token to a client key, so a stolen token alone is useless.

Interview questions

  • Why use both access and refresh tokens?
  • What is refresh token rotation and reuse detection?
  • How do you log a user out everywhere if you use JWTs?

Storing tokens in the browser (cookie vs localStorage)

JavaScript-readable storage loses tokens to XSS; HttpOnly cookies resist that but need CSRF protection.

  • localStorage/sessionStorage: easy to use with Authorization: Bearer, immune to CSRF, but any XSS can read and exfiltrate the token.
  • In-memory (a JS variable): survives XSS reads a bit better, lost on reload; pair it with a refresh-token cookie for silent renewal.
  • HttpOnly cookie: JS cannot read it, so XSS cannot steal it (XSS can still make requests while the page is open). Cookies are sent automatically, so add CSRF defences: SameSite, CSRF tokens, checking Origin.
  • Backend-for-Frontend (BFF): the SPA's own backend runs the OAuth flow, keeps tokens server-side and gives the browser only a session cookie. This is the current recommendation for sensitive browser apps.
  • Whatever you choose, XSS is game over for the session while it runs. A strict CSP and output encoding matter more than the storage choice.

Interview questions

  • Should an SPA store JWTs in localStorage or cookies?
  • What is CSRF and why do cookies make it possible?
  • What is the BFF pattern?

OAuth 2.0, OIDC & SSO

OAuth 2.0 roles, tokens & scopes

OAuth 2.0 lets a user grant an app limited access to their data on another service without sharing their password.

  • Problem it solves: a printing app wants your photos. Instead of giving it your Google password, you delegate a limited, revocable permission.
  • Four roles: resource owner (the user), client (the app), authorization server (issues tokens, e.g. Okta, Auth0, Keycloak, Entra ID), resource server (the API holding data).
  • Scopes describe what is requested (photos.read). The user sees a consent screen; the token is limited to the granted scopes.
  • Endpoints: /authorize (browser, user interaction) and /token (back channel, client to server). Plus optional introspection, revocation and discovery metadata.
  • Confidential clients can keep a secret (server apps). Public clients cannot (SPAs, mobile, CLI), so they rely on PKCE.
  • Access tokens are bearer tokens by default: whoever holds one can use it. Always use TLS.

Interview questions

  • What is OAuth 2.0?
  • Name the four OAuth roles.
  • Public vs confidential client?

Authorization code flow with PKCE

The browser gets a short-lived code; the client swaps it for tokens on the back channel, proving with PKCE that it started the flow.

  • 1) Client creates a random code_verifier, a code_challenge = base64url(SHA-256(verifier)), and a random state. 2) Redirect to /authorize with them.
  • 3) User logs in and consents at the auth server. 4) Redirect back to redirect_uri with ?code=...&state=.... Client checks state matches (CSRF defence).
  • 5) Client POSTs the code + code_verifier (+ secret if confidential) to /token. Server hashes the verifier and compares with the stored challenge, then returns tokens.
  • Why PKCE: an attacker who intercepts the code (malicious app with the same custom URL scheme, logs, referrer) cannot redeem it without the verifier that never left the client.
  • Codes are one-time and short-lived (around a minute). Redirect URIs must be pre-registered and matched exactly.
  • Use S256, never plain, unless the client really cannot do SHA-256.

Interview questions

  • Walk me through the authorization code flow with PKCE.
  • What attack does PKCE prevent?
  • Why not return tokens directly in the redirect (implicit flow)?
  • What is the purpose of the state parameter?

Client credentials, device flow & OAuth 2.1

Pick the grant by who is present: no user → client credentials, no keyboard → device flow; OAuth 2.1 drops the risky grants.

  • Client credentials: a service authenticates as itself (client_id + secret, or a signed JWT assertion, or mTLS) and gets a token. No user, no refresh token needed; just ask again.
  • Device authorization grant (RFC 8628): the device gets a device_code and a short user_code, shows “go to example.com/device and enter WDJB-MJHT”, then polls /token. Responses: authorization_pending, slow_down, then tokens.
  • Implicit grant: tokens straight in the redirect URL. Deprecated because of leakage; use code + PKCE in SPAs instead.
  • Resource owner password credentials (ROPC): the app collects the user's password. Deprecated: it trains phishing, breaks MFA and SSO.
  • OAuth 2.1 (IETF draft that consolidates 2.0 + BCPs): PKCE required for code flow, implicit and password grants removed, exact redirect-URI matching, no bearer tokens in query strings, refresh tokens for public clients must be sender-constrained or one-time-use.
  • Related standards: token introspection (RFC 7662), revocation (RFC 7009), token exchange (RFC 8693) for service-to-service delegation.

Interview questions

  • How do two backend services authenticate to each other with OAuth?
  • How does the device authorization flow work?
  • What does OAuth 2.1 change?

OpenID Connect & the ID token

OIDC is an identity layer on OAuth 2.0: request scope openid and get a signed ID token that says who logged in.

  • Add scope=openid (plus profile, email) to the code flow. The token response now includes an ID token: a JWT for the client, describing the authentication.
  • ID token claims: iss, sub (stable user ID per issuer), aud (= your client_id), exp, iat, nonce, plus optional auth_time, amr (methods used), acr, azp, and profile claims.
  • ID token vs access token: the ID token is for the client to learn who logged in; never send it to APIs. The access token is for the API; the client should treat it as opaque.
  • UserInfo endpoint: call with the access token to get profile claims. Discovery: /.well-known/openid-configuration lists endpoints, jwks_uri and supported algs.
  • nonce binds the ID token to the browser session that requested it and blocks replay of an old ID token.
  • Identify users by iss + sub, never by email: emails change and can be reused or unverified.

Interview questions

  • Difference between OAuth 2.0 and OpenID Connect?
  • ID token vs access token?
  • What is the nonce in OIDC?
  • How should you uniquely identify a user from an IdP?

SSO, SAML vs OIDC & federation

Single sign-on lets one identity provider authenticate users for many apps; SAML and OIDC are the two main protocols.

  • SSO: the user logs in once at an Identity Provider (IdP); each Service Provider (SP) / relying party trusts the IdP's signed assertion instead of handling passwords.
  • Benefits: one place for MFA and password policy, instant offboarding (disable once at the IdP), fewer passwords. Risk: the IdP is a high-value target and a single point of failure.
  • SAML 2.0: XML-based, signed assertions posted through the browser (HTTP-POST binding) to the SP's Assertion Consumer Service URL. Dominant in enterprise SaaS.
  • OIDC: JSON/JWT over OAuth 2.0, works for web, mobile, SPAs and APIs. Preferred for new builds.
  • SP-initiated login starts at the app (safer, has request context). IdP-initiated starts at the IdP portal and is more exposed to injected or replayed assertions.
  • SCIM handles provisioning (create/update/deactivate users in apps); SSO alone does not remove accounts. Federation means trusting another organization's IdP.

Interview questions

  • How does SSO work?
  • SAML vs OIDC: which would you pick?
  • After SSO, how do you handle deprovisioning?

Strong & machine authentication

MFA & TOTP

MFA combines different factor types; TOTP derives a 6-digit code from a shared secret and the current 30-second window.

  • MFA stops most credential stuffing and password reuse attacks because a stolen password alone is not enough.
  • HOTP (RFC 4226): HMAC-SHA1(secret, counter) → dynamic truncation → 6 digits. TOTP (RFC 6238): same, with counter = floor(unix time / 30).
  • Enrolment: server generates a random secret, shows it as a QR code (otpauth://totp/... with a Base32 secret), and asks for one valid code to confirm.
  • Verify: accept the current window ±1 step for clock drift, compare in constant time, remember used steps to block replay, and rate-limit attempts (6 digits is only 10^6 options).
  • Factor strength (weak → strong): SMS / voice OTP (SIM swap, interception) → email links → TOTP apps → push with number matching → FIDO2 security keys and passkeys (phishing-resistant).
  • Provide recovery codes (hashed, one-time) and secure account recovery; weak recovery undoes MFA.

Interview questions

  • How does TOTP work?
  • Why is SMS considered a weak second factor?
  • What is MFA fatigue and how do you defend against it?
  • How would you design MFA recovery?

Passkeys & WebAuthn (FIDO2)

Passkeys replace passwords with a per-site key pair; the server stores only the public key and verifies a signed challenge.

  • Registration: server sends a random challenge, RP ID and user info → navigator.credentials.create() → authenticator creates a new key pair for this site, returns the public key, credential ID and attestation → server stores the public key.
  • Login: server sends a challenge → navigator.credentials.get() → user verifies with fingerprint/face/PIN → authenticator signs the challenge plus origin data → server verifies with the stored public key.
  • Phishing-resistant: the browser includes the real origin in the signed data and only offers credentials for the matching RP ID. A look-alike domain cannot get a usable signature.
  • Nothing reusable on the server: a DB leak exposes public keys only. No shared secret, no credential stuffing.
  • Synced passkeys live in a platform credential manager (iCloud Keychain, Google Password Manager) and survive device loss. Device-bound keys (hardware security keys) never leave the device; preferred for high assurance.
  • Passkeys are discoverable credentials, enabling username-less login and browser autofill (mediation: 'conditional').

Interview questions

  • What is a passkey and why is it more secure than a password?
  • Walk me through WebAuthn login.
  • Synced passkeys vs hardware security keys?

API keys & HMAC request signing

API keys identify a calling project; store only their hash, scope them, rotate them, and sign requests when integrity matters.

  • An API key is a long random secret that identifies a client/project, not a user. Good for server-to-server and quotas; poor for user delegation (use OAuth).
  • Generate with a CSPRNG (≥ 128 bits), add a recognisable prefix (sk_live_) so secret scanners can catch leaks, and show it once.
  • Store only a hash (a fast SHA-256 is fine because the key is high-entropy, unlike passwords). Keep a public key ID for lookup and logs.
  • Give keys scopes, owners, expiry, and support rotation with two active keys at a time. Rate-limit per key.
  • Send in a header (Authorization or X-API-Key), never in URLs. Never ship secret keys in frontend or mobile code.
  • HMAC request signing (like AWS SigV4, webhook signatures): sign method, path, timestamp and body hash with a shared secret. Proves integrity and blocks replay via a time window; the secret never travels.

Interview questions

  • API keys vs OAuth tokens?
  • How do you store API keys on the server?
  • How do webhook signatures work?

Mutual TLS (mTLS) & service identity

In mTLS both client and server present certificates, so each side proves its identity during the TLS handshake.

  • Normal TLS: only the server proves identity with a certificate. mTLS: the server also sends CertificateRequest, and the client presents its certificate and proves possession of its private key.
  • The server checks the client certificate chain against a trusted CA, validity dates, revocation, and maps the subject or SAN (e.g. a SPIFFE ID spiffe://prod/billing) to an identity.
  • Used for service-to-service traffic (zero-trust networks), B2B APIs, IoT devices and banking APIs (FAPI).
  • Service meshes (Istio, Linkerd) issue short-lived certificates to each workload automatically and do mTLS in the sidecar, so app code does not change.
  • Certificate-bound access tokens (RFC 8705) put the cert thumbprint (cnf.x5t#S256) in the token; a stolen token is useless without the private key.
  • Hard parts: running a private CA, rotation, revocation (prefer short lifetimes over CRLs), and TLS termination at load balancers (pass identity on securely).

Interview questions

  • What is mTLS and when would you use it?
  • mTLS vs API keys for service authentication?
  • What is a sender-constrained token?

Authorization models

RBAC vs ABAC vs ReBAC

RBAC grants permissions through roles, ABAC evaluates attribute rules, and ReBAC follows relationships between users and objects.

  • RBAC: users → roles → permissions. Easy to audit and explain. Weakness: role explosion when access depends on context (editor-of-team-x-in-eu).
  • ABAC: policies over attributes of the subject (dept, clearance), resource (owner, classification), action and environment (time, IP, device). Very flexible, harder to audit. Standards/engines: XACML, AWS IAM conditions, OPA/Rego, Cedar.
  • ReBAC: access follows a graph of relationships (user is member of group, group is viewer of folder, doc is in folder). Natural for sharing (Google Drive, GitHub). Based on Google's Zanzibar; implementations include OpenFGA and SpiceDB.
  • Check permissions, not role names, in code (can(user, 'invoice:refund')), so roles can change without code changes.
  • Real systems mix them: RBAC for coarse access, ABAC conditions (tenant, ownership) and ReBAC for sharing.
  • Policy decision point (PDP, the engine) vs policy enforcement point (PEP, the code that asks and obeys). Keep decisions centralised and enforcement everywhere.

Interview questions

  • RBAC vs ABAC?
  • What is ReBAC and when is it the right choice?
  • What is role explosion?
  • How would you design authorization for a multi-tenant SaaS?

Attacks & defences

Common attacks: stuffing, fixation, JWT alg none

Most auth breaches are credential reuse, broken session handling or tokens verified with attacker-chosen settings.

  • Credential stuffing: leaked username/password pairs from other sites tried at scale, one or two attempts per account from many IPs. Defences: MFA, breached-password checks (k-anonymity APIs like HIBP), rate limits per IP/account/device, bot detection, anomaly alerts.
  • Brute force / password spraying: many guesses on one account, or one common password across many accounts. Use throttling and backoff; avoid hard lockouts that let attackers lock out real users.
  • User enumeration: different messages or timing for “no such user” vs “wrong password”. Return one generic message and do the same work (hash a dummy) either way.
  • Session fixation: attacker plants a known session ID, victim logs in with it, attacker shares the session. Fix: issue a new session ID at login and on privilege change.
  • JWT alg: none and alg confusion: the verifier trusts the header's algorithm. Fix: allow-list algorithms per key in server config, reject none, use maintained libraries.
  • Also: token leakage in URLs/logs, open redirects in OAuth redirect_uri, missing state (login CSRF), weak password reset tokens (must be random, single-use, short-lived, hashed).

Interview questions

  • What is credential stuffing and how do you defend against it?
  • Explain session fixation and its fix.
  • What is the JWT alg: none vulnerability?
  • How do you avoid user enumeration on login and password reset?
  • How do you build a secure password reset?