Backend security interview questions
Object-level authorization, injection, SSRF, CSRF, XSS, secrets, request signing, credential stuffing, TLS, mass assignment, supply chain and security headers.
– interview-ready · 12 questions in this topic
– of 12 tried
Saved on this device. Interview-ready means you got it right on two different days. Guesses and hints count for less.
Questions
- Broken object level authorization (BOLA)Spot the bug
- SQL injection and parameterised queriesPredict
- Server-side request forgery (SSRF)Predict
- CSRF and how cookies cause itPick the fix
- XSS from a backend's point of viewPredict
- Managing secretsOrder the steps
- Signing requests and webhooks with HMACPredict
- Credential stuffing and brute forcePick the fix
Practise this topic
Flashcards · 17
Flip, then say if you knew it. Needs JavaScript; every answer is also on its question page.
Quick quiz · 12 questions
One exercise per question, checked as you go. Needs JavaScript.
Mock interview · 2 sets
Timed, out loud, then tick what you covered. Needs JavaScript.
Fix this PR · 2 reviews
Review a diff like a senior: flag the lines you'd comment on. Needs JavaScript.
Quick facts
Recall the answer first, then tap Show to check.
OWASP API #1
Broken Object Level Authorization is first in the OWASP API Security Top 10 (2023 edition).
Cloud metadata IP
AWS, GCP and Azure serve instance metadata at the link-local address 169.254.169.254.
hmac.compare_digest
Compares in time that doesn't depend on where the inputs differ, avoiding timing leaks.
Breached-password lookups
Have I Been Pwned's range API takes the first 5 hex characters of a SHA-1 hash (k-anonymity).
CORS isn't CSRF protection
Simple cross-site form POSTs are sent without a preflight, so CORS rules don't block them.
Printable cheat sheet · Review your weak spots in this topic
Share your progress
Sources: Topic outline informed by System Design Primer by Donne Martin and the Zalando RESTful API Guidelines, both licensed under CC BY 4.0. Every question and answer is written by Best Latest Apps. Credits and license