download

Security Interview Questions

Practice access control, session revocation, SSRF, CSRF, XSS and CSP, password hashing, SQL injection, and TLS validation with free security interview questions. Each exercise includes hints and a checked explanation.

Security12 questionsFree · No sign-in

Practice questions

  1. GET /invoices/{id} checks login. Why can another tenant read it? · Access control · 8 min
  2. A user signed out. Why does their old JWT still work? · Session management · 10 min
  3. How do you narrow an export worker with s3:* and db:admin? · Least privilege · 10 min
  4. How do you rotate a webhook HMAC secret with zero downtime? · Secret rotation · 10 min
  5. A debug log leaked Bearer tokens. How do you log safely? · Safe logging · 8 min
  6. A dependency upgrade passed CVE scans. Why can security still break? · Dependency upgrades · 10 min
  7. URL check blocks "localhost". Why can SSRF still hit cloud metadata? · SSRF defense · 10 min
  8. CORS blocks other origins. Why does CSRF still hit POST /account/email? · CSRF defense · 10 min
  9. Regex strips <script> tags. Why does XSS still run? · XSS and CSP · 10 min
  10. Salted SHA-256 hashes passwords. Why can a leak still crack them? · Password storage · 10 min
  11. WHERE uses ? placeholders. Why is ORDER BY still SQL-injectable? · SQL injection · 10 min
  12. Client set check_hostname = False for staging. What breaks in production? · Transport security · 10 min

How to practice

Predict the result or explain what you would change before opening the hints. Then compare your reasoning with the answer and try the follow-up question.

Open the interactive Security deck →