Distributed systems and security · Part 32 of 36
Web security: the OWASP Top 10:2025
Expert 22 min
The ten most critical web application risks as published by OWASP in 2025, with the concrete defences for each.
What you will learn
- You can name the ten OWASP Top 10:2025 categories and what changed from 2021.
- You can give a concrete defence for each category.
- You can explain why access control and supply chain moved to the top.
Before this: SQL: asking questions of your data
What the Top 10 is
The OWASP Top 10 is an awareness document listing the most critical security risks for web applications, based on data contributed from tens of thousands of tested applications plus a community survey. The eighth edition, OWASP Top 10:2025, was published in late 2025 (it replaced the 2021 list). It is a starting point, not a complete standard — for detailed requirements use the OWASP ASVS (version 5.0 was released in 2025).

The ten categories
A01 Broken Access Control. Users can do or see what they shouldn't: another customer's invoice via /invoices/1235, admin functions reachable by URL. In 2025 it also includes server-side request forgery (SSRF). Defence: deny by default, check authorisation on the server for every request and every object, never trust ids from the client, restrict outgoing requests to allow-lists.
A02 Security Misconfiguration (up from #5). Default passwords, verbose error pages, open cloud buckets, missing security headers. Defence: hardened, automated, repeatable configuration; minimal installs; review cloud permissions.
A03 Software Supply Chain Failures (new name and scope; it grew out of 2021's "Vulnerable and Outdated Components"). Compromised or vulnerable dependencies, build pipelines and update channels. Defence: inventory everything with an SBOM, pin and review dependencies, monitor advisories, protect CI/CD, sign artefacts.
A04 Cryptographic Failures. Data sent or stored unencrypted, weak algorithms, home-made crypto, poor key handling. Defence: TLS everywhere, vetted libraries, passwords hashed with Argon2id, scrypt or bcrypt, keys in a secrets manager.
A05 Injection. Untrusted data interpreted as code or commands: SQL injection, OS command injection, cross-site scripting (XSS). Defence: parameterised queries, safe APIs instead of shells, context-aware output encoding, a strict Content-Security-Policy.
A06 Insecure Design. Missing security thinking at the design stage — for example a password reset that relies on guessable questions. Defence: threat modelling, secure design patterns, abuse cases next to use cases.
A07 Authentication Failures. Weak passwords allowed, credential stuffing, broken session handling. Defence: multi-factor authentication or passkeys, rate limiting, checking passwords against breached lists, secure session cookies.
A08 Software or Data Integrity Failures. Trusting code or data without checking integrity: unsigned updates, insecure deserialisation, scripts from a CDN without Subresource Integrity. Defence: signatures, integrity hashes, never deserialise untrusted data into objects.
A09 Security Logging & Alerting Failures. Attacks go unnoticed because nothing is logged — or logged but nobody is alerted. Defence: log security-relevant events (logins, access denials, input validation failures) without secrets, and alert on them.
A10 Mishandling of Exceptional Conditions (new). Errors that leak internals, crash the service or fail open — a permission check that throws and is caught by code that then allows access. Defence: fail closed, handle errors centrally, roll back partial transactions, test error paths.
What changed and why
Two categories are new (A03's wider supply-chain scope and A10), SSRF was merged into A01, and misconfiguration rose because more application behaviour now lives in configuration and cloud settings. Supply-chain attacks such as the XZ Utils backdoor (discovered March 2024) and repeated malicious-package waves on npm and PyPI made the community survey rank A03 highly.
A habit, not a checklist
Security is mostly ordinary engineering done carefully: validate input at boundaries, encode output for its context, check authorisation everywhere, keep dependencies lean and updated, log and alert, fail closed. Tools help — static analysis, dependency scanners, dynamic scanners — but none replaces thinking like an attacker about your own feature.
Key points
- OWASP Top 10:2025 is the 2025 edition of the awareness list; ASVS 5.0 gives detailed requirements.
- A01 Broken Access Control (now incl. SSRF), A02 Security Misconfiguration, A03 Software Supply Chain Failures, A04 Cryptographic Failures, A05 Injection.
- A06 Insecure Design, A07 Authentication Failures, A08 Software or Data Integrity Failures, A09 Security Logging & Alerting Failures, A10 Mishandling of Exceptional Conditions.
- Defend with server-side authorisation, hardened config, SBOMs, vetted crypto, parameterised queries and CSP.
- Fail closed and log security events with alerts.
Flashcards
- Question: Which category is #1 in the OWASP Top 10:2025?
- Answer: A01 Broken Access Control (now including SSRF).
- Question: Which category is new in 2025 and covers errors that "fail open"?
- Answer: A10 Mishandling of Exceptional Conditions.
- Question: What did "Vulnerable and Outdated Components" grow into?
- Answer: A03 Software Supply Chain Failures.
- Question: Which algorithms should you use to hash passwords?
- Answer: Argon2id, scrypt or bcrypt.
Check yourself
Think about your answer, then open it. In the app the quiz is interactive, earns points and brings back what you missed.
Order these OWASP Top 10:2025 categories by rank.
Show the answer
Broken Access Control → Security Misconfiguration → Software Supply Chain Failures → Cryptographic Failures → Injection
A01 to A05 of the 2025 list.
Source: OWASP Top 10:2025
Match the attack with its 2025 category.
Show the answer
Changing /invoices/1234 to 1235 to read another invoice = A01 Broken Access Control; A malicious update of an npm dependency = A03 Software Supply Chain Failures; name = "x' OR 1=1 --" in a query string = A05 Injection; A permission check throws and the request is allowed anyway = A10 Mishandling of Exceptional Conditions
Each maps to the category that names its root cause.
Source: OWASP Top 10:2025
Where was server-side request forgery (SSRF) placed in the 2025 list?
- Merged into A01 Broken Access Control
- Its own category A10
- Removed entirely
- Under A04 Cryptographic Failures
Show the answer
Merged into A01 Broken Access Control
In 2021 SSRF was A10; in 2025 it is part of A01.
Source: OWASP Top 10:2025 Introduction
Which are effective defences against injection?
- Parameterised queries
- A strict Content-Security-Policy against XSS
- Hiding the SQL error message only
- Context-aware output encoding
Show the answer
Parameterised queries; A strict Content-Security-Policy against XSS; Context-aware output encoding
Hiding error messages does not stop injection itself.
Source: OWASP Cheat Sheet Series
Which is the best way to store user passwords?
- Hash with Argon2id, scrypt or bcrypt
- Encrypt with AES and keep the key on the server
- Store a SHA-256 hash without salt
- Store them in plain text in a protected table
Show the answer
Hash with Argon2id, scrypt or bcrypt
Slow, salted password hashing functions resist offline cracking.
Source: OWASP Password Storage Cheat Sheet
Sources
- OWASP Top 10:2025, OWASP Foundation, 2025
- OWASP Cheat Sheet Series, OWASP Foundation, 2025
- OWASP Application Security Verification Standard 5.0, OWASP Foundation, 2025
Facts checked on 2026-11-30. Skillgrove lessons are free learning material — no certificate and no accreditation.