Skip to content

Search

Articles, tools, solutions and knowledge base guides

Start typing to search across articles, tools and apps.

OWASP Top 10: critical web application security risks and how to prevent them

The OWASP Top 10 helps teams identify major classes of web application risk. The current 2025 edition covers more than coding mistakes: architecture, infrastructure configuration, dependencies and incident response all matter. This guide translates the list into practical requirements and tests rather than a checklist that supposedly guarantees security.

Published Written by Reading time 10 min read
On this page Contents: quick navigation between sections

How to use the OWASP Top 10

OWASP Top 10 overview
Category Acceptance check
A01: Broken access control Access denied
A02: Security misconfiguration Configuration baseline
A03: Software supply chain failures Artifact provenance
A04: Cryptographic failures Backup restoration
A05: Injection Data stays data
A06: Insecure design Domain limit
A07: Authentication failures Session expiry
A08: Software or data integrity failures Event idempotency
A09: Security logging and alerting failures Alert delivery
A10: Mishandling of exceptional conditions Fail closed

The list is an awareness resource, not a complete acceptance standard or certification. Its categories group weaknesses (CWEs), and one vulnerability can overlap several categories. Ranking is no substitute for assessing impact on your own product. In the current edition SSRF belongs to A01, A03 covers the wider software supply chain, and A10 addresses exceptional conditions. [1][2][3][4]

Use ASVS 5.0 to specify verifiable requirements and choose a verification level suited to risk. Inventory data, assets, actors, trust boundaries and business workflows. For APIs, consider the separate OWASP API Security Top 10 as well.

ASVS 5.0.0 defines three verification levels: L1 covers foundational requirements, L2 is the target for most applications, and L3 adds greater depth of assurance. Choose a level according to risk rather than company size. Track the ASVS version, requirement identifier, applicability, verification evidence and rationale for exclusions in a requirements register. [3][25]

SSRF (Server-Side Request Forgery) induces a server to make an unintended request. CSRF (Cross-Site Request Forgery) uses an authenticated browser context to trigger an unwanted operation. XSS (Cross-Site Scripting) executes untrusted code in a page context. CWE describes a weakness type; CVE identifies a specific publicly documented vulnerability. [5][9][18]

A01: Broken access control

Authentication does not grant access to every resource. In a SaaS application, an employee of one organization must not be able to read another organization's invoices. UUIDs, hidden buttons and CORS do not replace server-side authorization. Deny by default and enforce ownership, tenant membership and operation permissions, including exports and asynchronous jobs. Mitigate SSRF with destination and outbound traffic restrictions, and CSRF with appropriate request protections. [5][15]

For cookie-based sessions, use the framework's CSRF protection, such as a token verified by the server, and treat SameSite as an additional safeguard. Do not use GET for state-changing operations. When the server fetches external resources, restrict permitted protocols and destinations, validate redirects and enforce network-level egress controls. Verify these protections against controlled resources. [5][26][27]

Test: use synthetic accounts from two organizations to check reading, editing, deleting and exporting resources owned by the other. Expect denial without disclosure or side effects.

Include a positive test: an authorized user can perform the permitted operation. In APIs, distinguish missing authentication (usually HTTP 401) from insufficient permissions (usually 403); 404 may intentionally conceal resource existence. [15]

Related POLPROG guide: CORS, what it is and why the browser blocks an API. [24]

A02: Security misconfiguration

A production debug console or public backup bucket can expose sensitive information. Minimize enabled services, separate environments and credentials, restrict cloud permissions, disable debug mode and tailor CSP, HSTS and CORS to the architecture. Do not copy headers without checking integrations. [6]

Check that CDN caching cannot expose private responses to other users. Configuration tests should include anonymous access and two accounts with different permissions. A CSP policy can initially be observed in Report-Only mode, but reporting by itself does not block violations. [6][28][29]

Test: inspect actual CDN and API responses, anonymous storage access and infrastructure configuration in CI. Compare deployed state against an approved baseline.

A03: Software supply chain failures

Risk extends to vulnerable or compromised libraries, build tools, container images and distribution processes. Maintain a software bill of materials (SBOM), prevent unexpected lockfile changes, scan direct and transitive dependencies, patch them and restrict CI permissions. Verify artifact provenance; absence of known CVEs does not establish safety. [7]

An SBOM (Software Bill of Materials) describes software composition, not its security. A lockfile helps reproduce dependencies but does not prove trustworthy provenance. Protect branches and CI/CD configuration, limit job permissions, isolate untrusted jobs from production secrets and verify artifact provenance at deployment. A signature is insufficient without verifying the signer's identity. [7][30]

Test: send an artifact lacking required provenance evidence through a test pipeline. Release policy should reject it; exceptions need an owner, rationale and expiry.

A04: Cryptographic failures

Protect data with appropriate TLS, key management and established cryptographic mechanisms. Store passwords using costly salted password hashes, such as Argon2id, rather than reversible encryption. Separate keys from data and manage access and rotation. Disk encryption does not prevent unauthorized reads through the application. [8][16]

For Argon2id, OWASP gives 19 MiB of memory, 2 iterations and parallelism of 1 as one minimum configuration. Tune parameters using measurements and resource limits; older hashes can be upgraded gradually at login. Do not use plain SHA-256 for password storage. For data requiring confidentiality and integrity, use established authenticated encryption and manage the key lifecycle. [16][31]

Test: inspect TLS configuration, password storage and key access, and verify restoration from encrypted backups.

A05: Injection

Injection occurs when untrusted data changes the meaning of commands or code. Use parameterized SQL queries, an allowlist for column names and context-appropriate output encoding in HTML. If users can submit formatted HTML, use proven sanitization. ORM and CSP help but do not guarantee safety; review raw queries and unsafe DOM operations. [9][17][18]

Input validation and output encoding serve different purposes. Validate formats and ranges against domain rules, and use safe DOM operations such as textContent when displaying text. Do not assume database content is trusted. Validate permitted URL schemes as well. [17][18]

Test: use representative special-character inputs and verify that they remain data, do not alter query scope and do not create executable HTML. Include previously stored data.

A06: Insecure design

Correct implementation cannot repair a missing business rule. A booking system may fail to limit reservations, or refunds may lack duplicate protection. Model threats before implementation, define domain invariants, limits, trust boundaries and abuse cases, and enforce rules in suitable server-side transactions. [10]

Threat models should cover data flows, privileged operations, trust boundaries and feature abuse. For example, a rule allowing only one active reservation of a resource in a given time slot must be enforced on the server even under concurrent requests. Test it with synthetic data and retain the result as requirement evidence. [10][32]

Test: concurrent operations on a test resource must respect its limit. Check skipped workflow steps and repeated requests as well.

A07: Authentication failures

Use a mature identity provider or established library, MFA for sensitive operations, login throttling and secure account recovery. For cookie sessions, configure Secure, HttpOnly, SameSite and CSRF protection as appropriate. Rotate session identifiers after login and invalidate server-side sessions according to policy. Short-lived tokens limit exposure but do not replace authorization. [11][19]

Consider WebAuthn-based passkeys as a phishing-resistant authentication mechanism. Account recovery and changes to authentication methods still need protection. Screen passwords against common or compromised values, permit password managers and avoid mandatory periodic changes without evidence of compromise. MFA does not replace authorization. [11][33]

Test: verify session expiry, password changes, logout, permission revocation, throttling and single-use recovery tokens.

A08: Software or data integrity failures

Unlike the broader supply chain category, this focuses on missing verification of trust in code or data. An application might grant a purchased entitlement based on an unverified payment event. Verify update and event signatures according to the provider protocol, validate data schema and origin, restrict unsafe deserialization and implement idempotency. [12]

Idempotency means that processing the same operation again does not repeat its business effect; it does not establish message authenticity. For payment events, verify signatures as documented by the provider, check the corresponding order and expected state, and record event processing and the state change atomically when they belong to the same transaction. [12]

Test: an event with an invalid signature causes no state change; receiving the same legitimate event twice does not grant an entitlement twice.

A09: Security logging and alerting failures

Server logs alone are insufficient. Record relevant security events such as permission changes, denied access and configuration changes. Use correlation identifiers, log access controls and retention policies. Never log passwords, tokens or unnecessary personal data. Define alert rules and who responds. [13][20]

Security logs should establish who performed an operation, when, on which resource and with what outcome. Use a structured format, protect logs from unauthorized modification and monitor event loss. Alert tests should include both notification delivery and acknowledgement. [13][20]

Test: generate a controlled event in a test environment and confirm its visibility, alert delivery to the responsible person and reconstructability.

A10: Mishandling of exceptional conditions

Errors, resource exhaustion and unexpected states can undermine security. If an authorization service is unavailable, the application must not default to allowing a protected operation. Define safe behavior for missing data, time and size limits, bounded retries and rollback of incomplete transactions. Return controlled messages without internal details. [14][21]

Fail closed applies to security decisions: inability to establish permission must not result in authorization. It does not require disabling every public feature. For example, if authorization is unavailable, reject the protected change, return a controlled service-unavailable message and keep public help accessible. Also verify resource cleanup after errors and behavior when a deadline expires. [14][21]

Test: simulate dependency unavailability, malformed data and transaction interruption. Verify that access stays restricted, state remains consistent and secrets are not disclosed.

How to build security checks into CI/CD

Separate controls: SAST examines code, SCA examines dependencies, DAST examines a running application and secret scanning identifies accidentally committed credentials. None replaces business-rule tests. Combine unit, integration and regression tests, code review and manual testing in an authorized environment. Assign findings an owner, priority, deadline and remediation evidence. [22][23]

Example SaaS release gate: negative tenant-isolation tests pass; no unaccepted critical risks remain; artifact provenance meets policy; alerts reach the responder; authorization dependency failures do not grant access. Record evidence with application version and test scope. These are illustrative criteria, not OWASP certification.

CVSS describes vulnerability severity, whereas EPSS estimates the probability of a published CVE being exploited in the wild within the next 30 days. Neither alone measures business risk. Combine them with component exposure, data sensitivity, effective controls and evidence of active exploitation. Give release-policy exceptions an expiry date, compensating control, owner and reassessment. [34][35]

The greatest value comes from connecting each risk category to a specific rule, test and owner. Secure applications require controls from design through build and deployment to monitoring and error handling. OWASP Top 10 provides direction, ASVS helps specify requirements, and test evidence shows whether those requirements have been met within a defined scope.

Tools for this topic

OWASP Top 10 Application Security OWASP ASVS Access Control Injection Software Supply Chain Authentication Secure SDLC CI/CD Security Testing

Frequently asked questions

Is OWASP Top 10 a certification?

No. Use ASVS for measurable requirements and document the verification scope.

Is a WAF sufficient?

No. It can reduce some risks but cannot replace authorization, safe design or secure code.

Has SSRF disappeared from the list?

No. The current edition includes it in A01, broken access control.

How often should security be tested?

For significant changes, before releases and periodically according to risk. Supplement continuous automated checks with manual tests.

Does a clean scanner report prove there are no vulnerabilities?

No. Scanners cannot understand all business rules, and their coverage and configuration are limited.

Does the OWASP Top 10 replace ASVS?

No. The Top 10 highlights major risk categories, while ASVS specifies verifiable requirements. Document the selected ASVS level and scope.

Sources and references

  1. OWASP Top 10:2025↩
  2. OWASP Top 10, Introduction↩
  3. OWASP ASVS 5.0↩1↩2
  4. OWASP API Security Project↩
  5. OWASP A01: Broken Access Control↩1↩2↩3
  6. OWASP A02: Security Misconfiguration↩1↩2
  7. OWASP A03: Software Supply Chain Failures↩1↩2
  8. OWASP A04: Cryptographic Failures↩
  9. OWASP A05: Injection↩1↩2
  10. OWASP A06: Insecure Design↩1↩2
  11. OWASP A07: Authentication Failures↩1↩2
  12. OWASP A08: Software or Data Integrity Failures↩1↩2
  13. OWASP A09: Security Logging and Alerting Failures↩1↩2
  14. OWASP A10: Mishandling of Exceptional Conditions↩1↩2
  15. OWASP Cheat Sheet: Authorization↩1↩2
  16. OWASP Cheat Sheet: Password Storage↩1↩2
  17. OWASP Cheat Sheet: SQL Injection Prevention↩1↩2
  18. OWASP Cheat Sheet: Cross Site Scripting Prevention↩1↩2↩3
  19. OWASP Cheat Sheet: Session Management↩
  20. OWASP Cheat Sheet: Logging↩1↩2
  21. OWASP Cheat Sheet: Error Handling↩1↩2
  22. OWASP Cheat Sheet: Secure Application Development↩
  23. OWASP, Establishing a Modern Application Security Program↩
  24. POLPROG, CORS (EN)↩
  25. ASVS 5.0, verification levels and scope↩
  26. OWASP Cheat Sheet: CSRF Prevention↩
  27. OWASP Cheat Sheet: SSRF Prevention↩
  28. OWASP Cheat Sheet: HTTP Headers↩
  29. OWASP Cheat Sheet: Content Security Policy↩
  30. OWASP Cheat Sheet: CI/CD Security↩
  31. OWASP Cheat Sheet: Cryptographic Storage↩
  32. OWASP Cheat Sheet: Threat Modeling↩
  33. OWASP Cheat Sheet: Authentication↩
  34. FIRST, CVSS v4.0↩
  35. FIRST, Exploit Prediction Scoring System↩

Was this helpful?

Get new articles by email

One short email per new Learning article. No spam, unsubscribe in one click.

We only use your email to send new articles. No third-party sharing.

Back to Learning