Scenario questions on OWASP risks, authentication, JWTs, CSRF, and secret handling for software engineering interviews.
Each question asks for the defensible default in a real situation, and the tempting wrong answers are the ones that ship in production. Explanations cover the attack each control prevents. Cards are scheduled with spaced repetition: missed cards return sooner, and known cards space out.
You are shipping a brand-new web app and need to pick how to store user passwords. There is no legacy hash format to be…
A React SPA talks to a REST API on the same parent domain. You need to persist the user's session token across page…
Users can write comments that other users see. Your template engine inserts the raw string into both an HTML body and a…
GET /api/invoices/{id} returns an invoice. The handler looks up the invoice by id and returns it. Audit logs show user…
You are shipping a banking iOS app that talks to api.bank.example over HTTPS. The threat model includes users on…
You are integrating Sign in with Google into a public SPA that has no backend it can call its own (the SPA talks…
A teammate adds middleware that logs every request and response body to make debugging easier in production. Endpoints…
An /upload endpoint accepts a file and a JSON metadata blob. The metadata includes a filename, size, and mime_type that…
You pushed a commit to a public GitHub repo, and a minute later you notice it contains a live API key for your payment…
Your marketing site is served over plain HTTP. Its login form posts to an HTTPS endpoint, so a teammate says passwords…
When a request fails in production, your API returns the full stack trace and the SQL query that failed in the response…
npm audit reports a critical vulnerability in a package your app pulls in through another dependency. Your own code…