The current OWASP Top 10:2025 is headed by Broken Access Control, followed by Security Misconfiguration and Software Supply Chain Failures. Compared with 2021, the category on vulnerable components widened to the supply chain, a new category on mishandling of exceptional conditions appeared, and SSRF is covered within access control. It is a ranking of risk categories, not a methodology: test cases come from OWASP WSTG.
An interviewer asks you to "tell about the OWASP Top 10". A candidate who learned the 2021 list gets confused: in the 2025 edition the order and names changed. As of November 2026 the current one is (source: top10.owasp.org/2025):
#
Category
Essence
A01
Broken Access Control
access to others' or forbidden things (incl. SSRF)
A02
Security Misconfiguration
unsafe defaults and settings
A03
Software Supply Chain Failures
dependencies, build, distribution
A04
Cryptographic Failures
weak or missing encryption
A05
Injection
SQL, commands, XSS and others
A06
Insecure Design
a flaw in the design itself
A07
Authentication Failures
weak passwords, sessions, no MFA
A08
Software or Data Integrity Failures
unverified updates and data
A09
Security Logging and Alerting Failures
the attack is not visible
A10
Mishandling of Exceptional Conditions
errors handled unsafely (new)
What changed against 2021: Software Supply Chain Failures broadens the former category about vulnerable and outdated components, Mishandling of Exceptional Conditions is new, and SSRF is no longer a separate category (it is treated under Broken Access Control).
How to use the list. It is a list of risk categories for awareness and priorities, not a methodology and not a compliance checklist: test cases come from the OWASP WSTG.
Link to QA. The negative test "an ordinary user opens /admin" is A01; "a token in logs" is A09 or A04; "what happens if the authorization service is down" is A10.
Short answer: "Number one is Broken Access Control, then Security Misconfiguration and Supply Chain; new in 2025 is handling of exceptional conditions, and it is a risk ranking, not a methodology".
Broken Access Control: IDOR, privilege escalation and SSRF
Broken Access Control occurs when the server does not check, for every request, who the user is and whether they may perform this action on this object. It covers horizontal escalation (IDOR), vertical escalation and SSRF, where the server itself calls an internal network on a supplied URL. A URL hidden in the interface is not protected, and SSRF is limited with a host allowlist and least-privilege roles.
An online shop hides the "Admin" button from ordinary users. A tester manually opens /admin/users and sees the list. The interface protected nothing: the permission check had to be on the server.
Mechanism. For every request the server must check who the user is and whether they may perform this action on this object. Typical violations:
Horizontal escalation — access to other users' data at the same level (IDOR: the request carries another object id);
Vertical escalation — an ordinary user performs administrator actions;
Hidden is not protected: a URL missing from the menu is still reachable if the server does not check it;
SSRF (Server-Side Request Forgery) — the server makes a request on its own behalf to a user-supplied URL, and the attacker reaches internal addresses.
SSRF example. A feature "import an image by link". In an authorized environment the tester supplies a URL pointing to the cloud instance metadata address:
POST /import {"url": "http://169.254.169.254/latest/meta-data/"}
If the response contains metadata, the server reaches the internal network. In the cloud this is dangerous because metadata can hand out temporary role credentials. Defence: an allowlist of permitted hosts, blocking internal ranges, and in AWS requiring IMDSv2 (it needs a token obtained by a separate PUT request with a header, so a simple GET-only SSRF fails) plus least-privilege roles.
Mistakes: checking permissions only in the UI; treating an unpredictable id as protection; blocking only the text "localhost" against SSRF (bypassed with a numeric IP form or a DNS name).
Short answer: "Permissions are checked on the server for every action and object; SSRF is limited with an allowlist and least-privilege roles".
SQL injection, XSS and CSRF: mechanism and defence
In SQL injection input becomes SQL code, in XSS a foreign script runs in the victim's browser, and CSRF makes that browser send a request with its cookie. Defences: parameterised queries, context-aware output encoding with CSP, an anti-CSRF token and SameSite on the session cookie. Keyword blacklists and manual escaping are unreliable.
A site search builds a query by string: "... WHERE name = '" + term + "'". A user enters ' OR 1=1-- and gets the whole catalogue. These are three classic web attacks that are often confused.
SQL injection. Input becomes part of the SQL command. Kinds: error-based (the database error is visible), UNION-based (the result of another query is appended), blind (the response gives only yes/no or a timing difference). Defence: parameterized queries (prepared statements), least-privilege database accounts. Keyword blacklists and manual quote escaping are unreliable.
XSS — someone else's script runs in the victim's browser. Reflected — a request value goes straight into the response; stored — it is saved (a comment) and runs for everyone who opens the page; DOM-based — the unsafe insertion happens in client JS (innerHTML). Defence: output encoding by context (HTML, attribute, JS), safe APIs (textContent), and additionally CSP (Content-Security-Policy), which limits script sources. HttpOnly does not prevent XSS, it only stops a script from reading the cookie.
CSRF — an attacker's page makes a logged-in user's browser send a request to your site, and the browser adds the cookie itself. Defence: an anti-CSRF token, SameSite=Lax or Strict for the session cookie, an Origin check. The fact that a request "contains the session cookie" proves nothing: CSRF relies on exactly that.
CSRF test example. Send an email change without a token from a third-party page in a test environment: if it changed, there is no protection.
Mistakes: "protecting" with validation in the browser only; thinking POST instead of GET stops CSRF; mixing up XSS (foreign code in your site) and CSRF (a foreign request from your user).
Short answer: "SQLi — parameterization; XSS — output encoding and CSP; CSRF — tokens and SameSite".
Top 10:2025 in real incidents: Equifax, Capital One, Log4Shell, MOVEit
Real public incidents map onto the Top 10:2025 categories, and each was a chain of mistakes rather than one. Equifax: an unpatched dependency and an unseen attack (A03, A09). Capital One: SSRF and an over-broad role (A01, A02). Log4Shell: a vulnerable dependency (A03, A05). MOVEit: SQL injection in a product (A05). Details are cited only from public advisories and reports.
Pentest · OWASP Top 10
A list of ten categories looks abstract. What does it look like in a real data breach?
In an interview, after the list of categories you are often asked: "Can you give an example?". A good answer is a real public incident where you can see which mistake led to it. Below are four cases from reports and official advisories, laid out by the Top 10:2025 categories. Deep dives into separate classes (access, injection, client side) are in the next chapters of the course; this is only an overview.
Incident
Category
Root
Equifax, 2017
A03, A09
unpatched library, attack not seen
Capital One, 2019
A01, A02
SSRF and an over-broad role
Log4Shell, 2021
A03, A05
vulnerable dependency, injection in a lookup
MOVEit, 2023
A05
SQL injection in a product
Equifax (CVE-2017-5638). Apache Struts had a vulnerability, and the fix came out in March 2017. The attackers got in in May and, per the GAO report, stayed unnoticed for about 76 days. One factor: the certificate of the application that analysed traffic had expired about 10 months before the breach, so encrypted traffic was not inspected. By GAO's count, at least 145.5 million people were affected. Lesson: A03 says a component must be known and updated, A09 says an attack is visible only when monitoring works.
Capital One (2019). According to public analyses, a misconfigured web application firewall on AWS allowed SSRF: a request to the instance metadata address returned temporary role credentials, and the role's excessive permissions opened S3 storage. The chain is shown below.
The Capital One chain
Figure 1. Four steps of the break-in: a stopping point can be placed at any of them.
Log4Shell (CVE-2021-44228). According to the CISA advisory, in Log4j versions 2.0-beta9 to 2.14.1 message lookup substitution did not protect against attacker-controlled LDAP and DNS endpoints reached through JNDI, which gave remote code execution. The fix requires upgrading the library itself (2.17.1 for Java 8 and later per current CISA guidance; the 2021 advisory named 2.17.0), not just Java. This is A03: what you use must be known from an SBOM, not from the news.
MOVEit (CVE-2023-34362). According to CISA, the CL0P group exploited a SQL injection zero-day in MOVEit Transfer in May 2023 and installed the LEMURLOOT web shell. This is A05: a classic SQL injection still works when a query is built by string.
What QA takes from this. Each category has a simple test: A01 — another user's id and a role without rights; A02 — headers, errors, exposed panels; A03 — an SBOM and a dependency scanner in CI; A05 — negative input in fields and parameters; A09 — whether a trace stays in the log after a suspicious action.
Common mistakes:
memorising names without examples: in an interview "give a case" becomes a question without an answer;
seeing an incident as "one mistake": each had several, a chain;
stating details absent from public sources: the number of victims or fines without a reference.
Check yourself
In Capital One the attacker got role keys through SSRF. What cheap defence would break the chain after that step?
Answer
Least-privilege permissions on the role: even with the keys it could not read all the storage. Restricting metadata access (IMDSv2) and an allowlist in the function that fetches URLs close the earlier steps.
Why does A09 matter in Equifax and not only A03?
Answer
The expired certificate stopped the traffic analysis tool from working, so the attack went unseen for a long time. A patched library could have prevented the break-in, but monitoring would have shortened it.
Related lessons: "OWASP Top 10:2025: an overview of the list", "Broken Access Control: IDOR, privilege escalation and SSRF", "CVSS 4.0, risk and prioritisation: EPSS and KEV".
In an interview.Junior: Number one is Broken Access Control; Equifax is an example of an unpatched dependency and MOVEit of SQL injection. Middle/Senior: Incidents are always chains: in Capital One SSRF combined with metadata and an over-broad role, so defence is layered. I take details only from public advisories and reports.
SSRF: the server fetches someone else's address
SSRF is when the server, on a user's orders, makes a request to an address the user supplied and reaches internal resources unreachable from outside. In the cloud the metadata service with the role's credentials becomes a target too. Defence: an allowlist of hosts checked on the parsed URL, no redirects, an IP check after name resolution, IMDSv2 and least-privilege roles.
Pentest · OWASP Top 10
A service downloads a picture by link. What if the link leads not to the internet but inside the network?
A profile form has a field "Import a photo by link". The user pastes an address, the server downloads the file and stores it. Instead of a picture the tester pastes the address of an internal panel that cannot be reached from outside and sees its page in the response. This is SSRF (Server-Side Request Forgery): the server makes a request on someone else's orders. The lesson explains why it is more dangerous than it looks, how to test it and why a simple address check does not save you.
How it works and why. The application server sits inside a trust zone: it sees internal services, admin panels, databases and, in the cloud, the instance metadata service. From outside they cannot be reached, but a request from the server itself is considered "ours". Any function that fetches an address given by the user (import by link, webhooks, link previews, PDF generation from a page, XML with external entities) hands this trust to an attacker. The cloud instance metadata service at 169.254.169.254 holds, among other things, temporary credentials of the role, so SSRF often turns into access to cloud resources. In the OWASP Top 10:2025 SSRF is treated under Broken Access Control (A01).
What happens
Figure 1. The victim is not the user but the trust between the server and the internal network.
Example: from vulnerable code to a fix. A typical vulnerable handler trusts any address:
// "Import an image by link"
app.get('/import', async (req, res) => {
const r = awaitfetch(req.query.url);
res.send(await r.text());
});
In an allowed test (on your own environment or in a lab) you check whether the server goes to addresses the user should not reach: loopback (127.0.0.1), private ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) and link-local 169.254.0.0/16, which includes the metadata address. A finding can also be "blind": the response does not come back, but the server made the request, and that is visible in a log or an external callback (for example Burp Collaborator). The fix starts with an allowlist:
const ALLOWED = newSet(['img.example']);
const u = newURL(req.query.url);
if (u.protocol !== 'https:' || !ALLOWED.has(u.hostname)) {
return res.status(400).end();
}
const r = awaitfetch(u, { redirect: 'error' });
Here the address is parsed, the scheme and the exact host name are checked, and redirects are disabled. Not startsWith on the string: the address https://img.example.attacker.test/ also starts with "https://img.example", and https://img.example@attacker.test/ leads to the host after the "@".
A real case: Capital One, 2019. According to the indictment, a misconfigured web application firewall (WAF) in the cloud allowed commands to run on a server, and they returned credentials of a role. According to Capital One, the incident affected about 100 million people in the US and six million in Canada. That it was a request to the metadata service follows from public technical analyses, not from the indictment. The lesson for QA: one role permission that is too broad turns a configuration mistake into a data leak.
Limits and alternatives. Blocklists ("we block 127.0.0.1") are unreliable and OWASP recommends allowlists. Bypasses come through other IP notations (hexadecimal, octal, decimal forms), IPv6 and IPv4-mapped addresses, a redirect from an allowed address to an internal one, DNS rebinding (the name first points to a legitimate IP and at the second resolution to an internal one) and differences between address parsers. If addresses are arbitrary (webhooks), private ranges are blocked after name resolution, every record is checked and the connection goes to the validated IP. Egress network restrictions work as an extra layer, and in AWS a move to IMDSv2 (a session token is required) makes plain SSRF harder to exploit. Blind SSRF, where the response does not come back, is still dangerous: it triggers actions on internal services (state changes, port scans).
Typical mistakes.
Checking the address string and not the parsed URL: startsWith, contains, regular expressions.
Checking the host name but connecting after a second resolution: DNS rebinding slips between the two steps.
Allowing redirects: an allowed address leads to an internal one.
Blocking only 127.0.0.1 and forgetting 169.254.169.254, private ranges and IPv6.
Returning the raw response of an internal service to the user.
Check yourself
An "import by link" function checks that the address starts with "https://img.example". Which address do you try in the lab to show a bypass and why does it pass?
Answer
https://img.example.attacker.test/a.png or https://img.example@attacker.test/a.png. The string starts with the allowed prefix although the host is different. The fix: parse the URL and compare the exact host name with a list.
The response to a blind SSRF does not come back to the application. How do you prove that the server made a request?
Answer
Give an address controlled by the tester (Burp Collaborator or your own listener in the lab) and see the incoming request from the server, or find a trace in the log of the target internal service.
Related lessons: "Broken Access Control: IDOR, privilege escalation and SSRF", "Top 10:2025 in real incidents: Equifax, Capital One, Log4Shell, MOVEit", "Burp and ZAP at work: from an intercepted request to a confirmed finding".
In an interview.Junior: SSRF is when a server, at a user's command, makes a request to an address the user supplied and so reaches internal resources not available from outside. I test only in an allowed environment. Middle/Senior: The risk is in trust: the server is inside the network, and in the cloud that means the metadata service and the role. Defence: an allowlist of hosts by the parsed URL, no redirects, an IP check after resolution, egress network restrictions, IMDSv2 and least privilege for the role. Blocklists and string checks get bypassed.