Full answer
What to do for each risk (backend view)
- A01 Broken Access Control: check authorisation on the server for every request and object (no IDOR), deny by default, test roles, and validate outgoing request targets (SSRF).
- A02 Security Misconfiguration: secure defaults, no debug modes or default accounts in production, minimal permissions, security headers, the same hardened config in every environment, automated config checks.
- A03 Software Supply Chain Failures: lockfiles, pinned versions, dependency and image scanning, signed artifacts, review of build pipelines and who can publish.
- A04 Cryptographic Failures: TLS everywhere, strong algorithms, correct password hashing, key management, no sensitive data in logs or URLs.
- A05 Injection: parameterised queries, safe APIs for commands, output encoding, input validation with allowlists.
- A06 Insecure Design: threat modelling, abuse cases, rate limits and business logic checks in the design phase.
- A07 Authentication Failures: strong password policy and hashing, MFA, brute force protection, safe session and token handling.
- A08 Software or Data Integrity Failures: verify updates and serialised data, no unsafe deserialisation, protected CI/CD.
- A09 Logging and Alerting Failures: log security events (login failures, access denials), protect logs, alert on them, and test the alerts.
- A10 Mishandling of Exceptional Conditions: fail closed, handle every error path, no sensitive details in error messages, and keep transactions consistent when something fails.
The list is a starting point, not a standard checklist. Combine it with ASVS and threat modelling. Check the current edition, because it changes every few years.
// A tiny configuration audit that maps findings to the OWASP Top 10:2025 categories.
function audit(config) {
const findings = [];
const add = (category, text) => findings.push(`${category}: ${text}`);
if (config.debug) add('A02 Security Misconfiguration', 'debug mode is on');
if (config.adminPassword === 'admin') add('A02 Security Misconfiguration', 'default admin password');
if (!config.tls) add('A04 Cryptographic Failures', 'TLS is off');
if (config.passwordHash === 'sha256') add('A04 Cryptographic Failures', 'fast hash used for passwords');
if (!config.lockfile) add('A03 Software Supply Chain Failures', 'no lockfile committed');
if (config.cors === '*' && config.cookies) add('A02 Security Misconfiguration', 'wildcard CORS together with cookie authentication');
if (!config.logFailedLogins) add('A09 Security Logging and Alerting Failures', 'failed logins are not logged');
if (config.errorDetails) add('A10 Mishandling of Exceptional Conditions', 'stack traces are returned to clients');
if (config.outboundFetchAllowlist === false) add('A01 Broken Access Control', 'server fetches user-supplied URLs with no allowlist (SSRF)');
return findings;
}
const risky = { debug: true, adminPassword: 'admin', tls: false, passwordHash: 'sha256', lockfile: false, cors: '*', cookies: true, logFailedLogins: false, errorDetails: true, outboundFetchAllowlist: false };
const hardened = { debug: false, adminPassword: 'rotated-secret', tls: true, passwordHash: 'argon2id', lockfile: true, cors: 'https://app.example.com', cookies: true, logFailedLogins: true, errorDetails: false, outboundFetchAllowlist: true };
console.log('risky configuration:');
audit(risky).forEach((f) => console.log(' -', f));
console.log('hardened configuration:', audit(hardened).length, 'findings');A toy audit function that maps config mistakes to the categories of the 2025 list (checked against owasp.org on 2026-12-04). It is an illustration, not a scanner. Save it as app.js and run it with node app.js. Output (Node.js v24.22.1, run once): risky configuration: - A02 Security Misconfiguration: debug mode is on - A02 Security Misconfiguration: default admin password - A04 Cryptographic Failures: TLS is off - A04 Cryptographic Failures: fast hash used for passwords - A03 Software Supply Chain Failures: no lockfile committed - A02 Security Misconfiguration: wildcard CORS together with cookie authentication - A09 Security Logging and Alerting Failures: failed logins are not logged - A10 Mishandling of Exceptional Conditions: stack traces are returned to clients - A01 Broken Access Control: server fetches user-supplied URLs with no allowlist (SSRF) hardened configuration: 0 findings
Key points
- The OWASP Top 10 is an awareness list of the main web risks.
- Broken access control is first, and SSRF now sits inside it.
- Injection, misconfiguration and supply chain failures need constant care.
- Fail closed and log security events.
- Use it with ASVS and threat modelling.
Common mistakes
- Treating the list as a complete security program.
- Relying on the front end for access control.
- Using an outdated edition of the list in documents.
- Fixing symptoms (blocking one payload) instead of root causes.
- Only testing the happy path of authorisation.
Follow-ups
- How does OWASP ASVS differ from the Top 10?
- What is threat modelling?
- Why was SSRF folded into Broken Access Control?
Tips
- Name the top three and one control each.
- Say 'deny by default'.
- Mention that the list changes.