Authentication and authorization
176 practice items · needed by 10 roles
Easy 42Medium 67Hard 67
Practice questions
- Where to keep a session tokenmedium
- How to store passwordseasy
- 401 or 403easy
- What HttpOnly does on a cookieeasy
- Authentication versus authorizationeasy
- What a password salt is foreasy
- Is HTTP Basic auth encryptedeasy
- Sending an access token to an APIeasy
- What the Secure cookie flag doeseasy
- Header that goes with a 401easy
- Login error message wordingeasy
- What not to write to logseasy
- Modern password ruleseasy
- Rules for a login OTPeasy
- Weak point of SMS OTPeasy
- Which pair is really two factorseasy
- Permissions for a reporting serviceeasy
- Safe default for new API routeseasy
- The three parts of a JWTeasy
- Encrypting passwords instead of hashingeasy
- Login form on plain HTTPeasy
- Session id in the URLeasy
- Same email, different capital letterseasy
- What the server stores for a passkeyeasy
- Why cookie auth needs CSRF thoughteasy
- Log out of all deviceseasy
- API keys instead of a shared passwordeasy
- What a CAPTCHA protects againsteasy
- Which OAuth role issues tokenseasy
- What an OAuth scope iseasy
- OAuth flow to avoid in new appseasy
- Why apps use refresh tokenseasy
- What single sign-on meanseasy
- Logging out with JWTsmedium
- Why access tokens are short-livedmedium
- Any user can read any invoicemedium
- Raising the bcrypt cost from 10 to 12medium
- Session id stays the same after loginmedium
- What SameSite=Lax allowsmedium
- Cookie ignored in an embedded widgetmedium
- Cookie leaks to every subdomainmedium
- Idle and absolute session timeoutsmedium
- Logout that only clears the cookiemedium
- Credentialed requests with Allow-Origin *medium
- HS256 or RS256 for many servicesmedium
- Rotating JWT signing keys safelymedium
- Fresh tokens rejected as expiredmedium
- A token for one service works on anothermedium
- Reading the role from a tokenmedium
- Why OAuth uses a state parametermedium
- Using the ID token to call an APImedium
- OAuth flow for a nightly batch jobmedium
- Loose redirect URI matchingmedium
- How authenticator app codes workmedium
- Storing MFA backup codesmedium
- Role-based or attribute-based accessmedium
- Storing customer API keysmedium
- What a password pepper addsmedium
- Checking breached passwords privatelymedium
- Designing a remember-me cookiemedium
- What the __Host- cookie prefix needsmedium
- Data inside a signed cookiemedium
- Sessions after a password changemedium
- Kinds of privilege escalationmedium
- API key passed in the URLmedium
- Stopping replay of signed requestsmedium
- Rotating a shared API secretmedium
- Services proving their identitymedium
- Letting users change their emailmedium
- Re-checking identity before a transfermedium
- Logging in on a smart TVmedium
- Where a mobile app keeps tokensmedium
- Checking a Google ID token on the backendmedium
- Hiding salary in a GraphQL APImedium
- JWT verified with an attacker-chosen algorithmhard
- Two long passwords both workhard
- Upgrading old password hasheshard
- Login timing reveals real accountshard
- Locking accounts after 5 failureshard
- Logins from leaked password listshard
- Guessing an OTP with no attempt limithard
- Magic login links already usedhard
- Merging accounts by email from a login providerhard
- One company sees another's invoiceshard
- Removed admin can still delete usershard
- Revoking a stolen JWT earlyhard
- How PKCE's code challenge is madehard
- Another app catches the OAuth redirecthard
- Why passkeys stop phishinghard
- A huge SMS bill from the OTP endpointhard
- Two usernames that look identicalhard
- A 1 MB password slows the serverhard
- Making stolen access tokens uselesshard
- Keeping OAuth tokens out of the browserhard
- Permissions for shared documentshard
- An authorization code used twicehard
- Hundreds of roles that nobody understandshard
- Slow guessing from thousands of IPshard
- A user subdomain overrides your cookiehard
- An approve button inside a hidden framehard
- One token accepted by every servicehard
- Reset tokens in a leaked databasehard
- Logged in to the attacker's accounthard
- A reset link used twice at oncehard
- Storing user passwordseasy
- Status 401 vs 403easy
- Is browser validation enough?easy
- Slowing password guessingeasy
- Why turn on MFAeasy
- Login error wordingeasy
- JWT in localStoragemedium
- CSRF with cookie sessionsmedium
- Hiding the button is not authmedium
- Rate limiter that does not limitmedium
- Serving private invoice PDFsmedium
- Sensitive data inside a JWTmedium
- Webhook signature always failsmedium
- Hard lockout after 5 failuresmedium
- Chance of guessing a 6-digit OTPmedium
- Token from another service acceptedmedium
- How long to guess a 4-digit PINmedium
- Removed admin still has accessmedium
- Refresh token rotationhard
- JWT algorithm confusionhard
- Redirect check that can be bypassedhard
- Profile update accepts any fieldhard
- Designing password reset linkshard
- OAuth for a browser-only apphard
- Why public clients use PKCEhard
- OAuth callback without statehard
- JWT key chosen by the kid headerhard
- SAML response with two assertionshard
- Lookalike usernamehard
- Linking accounts by emailhard
- Login is slower for real usershard
- Token with alg set to nonehard
- Loose redirect_uri matchinghard
- What to clear on logouteasy
- OAuth login from a mobile appmedium
- Stopping cheaters calling the APIhard
- Parallel token refresh logs users outhard
- Login page inside a WebViewhard
- Detecting a stolen refresh tokenhard
- Biometric login that can be bypassedhard
- Reading roles from a JWT in the apphard
- When to use mutual TLSmedium
- A Lambda function URL with no authmedium
- Users consenting to any appmedium
- What mutual TLS addsmedium
- JWT signed with the public keyhard
- Basic auth and Base64easy
- Keeping tokens out of Giteasy
- API key in the URLmedium
- Sorting by a field that does not existmedium
- Caching a bank statementmedium
- Tampering with a JWThard
- Testing webhook signatureshard
- Too much data in a responsehard
- An API that fetches a URLhard
- Error message shows code detailshard
- Same URL, different methodhard
- A very deep GraphQL queryhard
- GraphQL introspection in productionhard
- Turning off certificate checkshard
- One coupon used twicehard
- Replaying an old webhookhard
- Tests fail after an hourmedium
- Tests for several user rolesmedium
- Logging in once in Cypressmedium
- A login setup that shows in reportshard
- Logging in with an authenticator codehard
- A cookie that will not sethard
- Logging in on another domain in Cypresshard
- Blocking paste in password fieldsmedium
- Purpose of a DoA matrixeasy
- Getting around approval limitsmedium