Overview
Curated: · Written: · Reviewed:
Common Web Vulnerabilities (OWASP Top 10)
In one line
The OWASP Top 10:2025 is a prioritised list of ten broad risk categories built from observed data. Use it to name a risk, the concrete failure pattern behind it and the structural fix, then map the categories onto your own trust boundaries and release pipeline.
Key definitions
- A01 Broken access control: the server does not enforce who may act on which object, function or tenant. SSRF is listed here.
- IDOR: the handler takes an object ID from the request and never checks that the caller owns it.
- A03 Software supply chain failures: a dependency, build step or image is trusted without knowing its contents or verifying its origin.
- A05 Injection: untrusted data changes what an interpreter does (SQL, shell, template, browser).
- A08 Software or data integrity failures: code or data is accepted without verifying its signature or integrity, including unsafe deserialization.
- Authentication vs authorization: authentication establishes who the caller is, authorization decides what they may touch. A valid token is not permission.
How it works
- Identity and ownership come from trusted server state, never from request fields.
- One authorization layer sits in front of every handler and denies when the owner cannot be determined.
- Injection is fixed by making the parameterised path the only path, not by escaping each query.
- Serialized input from outside the trust boundary is never deserialized into arbitrary types. Use a data-only format with an explicit schema, and verify a signature before parsing.
- Scanners match patterns. They do not know which tenant should see which invoice.
When to use and when not to
| Situation | Do this | Why |
|---|---|---|
| Screening question on the Top 10 | Name the category, then the pattern, then the fix | Reciting ten labels is the weak answer |
| Design review of a new system | Start from trust boundaries, pick two or three relevant categories | Rank by your exposure, not survey prevalence |
| No outbound fetch in the system | Skip SSRF work | Category rank reflects prevalence, not your system |
| Build produces a container image | Generate an SBOM at build time, sign the artifact, verify the signature before deploy | Without an inventory you cannot tell which images contain a vulnerable component |
| Password database leaked | Check whether passwords were reused, and use a slow salted hash (argon2id, bcrypt or scrypt) per user | Reuse is an authentication failure, and fast unsalted hashes make cracking cheap |
| Limit enforced only in the UI | Enforce the cap and MFA on the server for every transfer | A limit the client can skip is an insecure design |
| Clean scan offered as evidence | Do not rely on it for authorization | Scanners cannot see intent or business logic |
Traps interviewers probe
- Treating a clean SAST or DAST report as proof of authorization. Fix: write an invariant test that a token from tenant B gets 404 for a tenant A object.
- Answering XSS with 'sanitize the input'. Fix: encode for the sink (HTML, URL, JavaScript), add CSP as a backstop, and sanitize only when markup must be accepted, using a maintained library.
- Confusing IDOR with missing function-level checks. Fix: the IDOR test requests another tenant's object; the function-level test calls the admin route with a user token.
- Treating authentication as authorization. Fix: a valid session establishes identity only. Each resource action needs its own check.
- Adding a class blocklist to make native deserialization of untrusted bytes safe. Fix: stop deserializing untrusted input into object graphs. Use a data-only format with an explicit schema, and treat any filter as a backstop only.
Interview tips
Open by naming the category and the failure in one sentence, for example: 'This is broken access control: the handler trusts the object ID and never checks ownership.'
Expect these follow-ups:
- The difference between authentication and authorization failures.
- Why XSS moved into injection (one family: untrusted data reaching an interpreter).
- What a clean scan proves (only the scanner's rules).
- SSRF defences: IMDSv2 session tokens and egress allowlists, both of which hold even when the fetcher code is vulnerable.
- Why SameSite cookies and synchronizer tokens are both needed for CSRF.
- Which session cookie attributes matter: HttpOnly keeps scripts from reading the token, Secure restricts it to HTTPS, and SameSite limits cross-site sending.
- What to log: authentication events and authorization denials with the user, object and outcome. Retention length comes from policy and compliance, not from the category.
30-second answer outline:
- Name the category and the concrete pattern.
- Say where the check is missing.
- Give the structural fix in a shared layer, deny by default.
- Give the regression test that asserts cross-tenant denial.
- State the residual risk: scanners miss authorization and business logic, so targeted review and invariant tests cover them.
Feedback on this overview
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.