Web application security is the practice of protecting web apps and APIs from attacks that exploit flaws in code, configuration and design. The reference list is the OWASP Top 10, whose 2025 edition ranks broken access control first, followed by security misconfiguration and software supply chain failures. Effective defense layers secure coding, testing, web application firewalls, strong authentication and monitoring — and starts with threat modeling before a line of code is written.
Key takeaways
- The OWASP Top 10:2025 is the current reference: broken access control is still number one, misconfiguration is now number two.
- Most web app breaches come from a small set of causes: bad access checks, misconfiguration, vulnerable dependencies and injection.
- Defense is layered: secure design, code review, automated testing, WAF, authentication and logging.
Every web application is a door into your organization. Customers, staff and partners walk through it all day — and so do attackers. Web application security is the set of practices that keeps the door open for the right people and closed to everyone else.
What is web application security?
Web application security is the practice of protecting websites, web applications and APIs from attacks that exploit flaws in code, configuration and design. It covers the whole lifecycle: how the app is designed, how it is coded, how it is tested, how it is configured in production, and how it is monitored once it is live.
It matters because web apps are exposed by design. Unlike an internal database, a web app must accept input from strangers — form fields, URLs, file uploads, API calls — and every input is a potential attack. The most common web attacks all start the same way: untrusted input reaches a place where it is trusted.
CISA's website security guidance puts it plainly: website owners should identify and remediate the top 10 most critical web application security risks, then move on to other vulnerabilities, while also hardening servers, scanning continuously and deploying web application firewalls.
What is the OWASP Top 10:2025?
The OWASP Top 10 is the most widely used list of web application security risks, maintained by the Open Worldwide Application Security Project. The current edition is the OWASP Top 10:2025, published in November 2025 as the eighth edition since the list began in 2003. It replaces the 2021 list.
For the 2025 edition, data contributors tested more than 2.8 million applications, and OWASP analyzed 589 Common Weakness Enumerations (CWEs), mapping 248 of them into the ten categories. Eight categories come from the data and two from a survey of practitioners, because testing data alone misses risks that scanners cannot see yet.
| 2025 rank | Category | What changed from 2021 |
|---|---|---|
| A01 | Broken Access Control | Unchanged at #1; now includes server-side request forgery |
| A02 | Security Misconfiguration | Up from #5 |
| A03 | Software Supply Chain Failures | New; expands "Vulnerable and Outdated Components" |
| A04 | Cryptographic Failures | Down from #2 |
| A05 | Injection | Down from #3; includes SQL injection and cross-site scripting |
| A06 | Insecure Design | Down from #4 |
| A07 | Authentication Failures | Renamed from Identification and Authentication Failures |
| A08 | Software or Data Integrity Failures | Unchanged |
| A09 | Security Logging and Alerting Failures | Renamed; the emphasis is now on alerting, not just logging |
| A10 | Mishandling of Exceptional Conditions | New category |
The direction of travel is telling. The categories that moved up are about how applications are deployed, configured and assembled from other people's code — not about individual coding mistakes. That is where most modern risk now sits.
What are the biggest web application risks?
Each of the ten categories is a group of related weaknesses, not a single bug. Here is what each one means in practice.
A01 — Broken Access Control
Access control fails when the application checks that a user is logged in but not that they are allowed to see a particular record or perform a particular action. The classic form is the insecure direct object reference: change the ID in a URL or API request and you are looking at someone else's invoice.
A01 maps 40 CWEs and is present in up to about 20% of tested applications. The fix is a single server-side authorization check on every request, denying by default, that checks ownership of the record — not just the route.
A02 — Security Misconfiguration
Misconfiguration means systems, applications or cloud services are set up insecurely: default accounts left active, unnecessary features enabled, overly permissive permissions, verbose error messages, or security headers missing. It jumped from fifth to second place in 2025, which reflects how many breaches now start with a cloud bucket or admin panel left open rather than a code flaw.
A03 — Software Supply Chain Failures
This new category covers vulnerable, malicious or compromised dependencies, builds and distribution — from known vulnerabilities in libraries to poisoned packages. Modern apps are mostly other people's code, so a flaw in a dependency is a flaw in your app. The fix is a software bill of materials (SBOM), software composition analysis in the pipeline, and fast dependency updates.
A04 — Cryptographic Failures
Cryptographic failures include missing or weak encryption, broken algorithms, hard-coded passwords and leaked keys. Data exposed in transit or at rest, credentials stored with weak hashing, and certificates never verified all sit here. Use TLS everywhere, encrypt sensitive data at rest, and use strong, modern password hashing such as Argon2 or bcrypt.
A05 — Injection
Injection happens when untrusted input is executed as code, a query or a command — SQL injection, cross-site scripting (XSS), OS command injection and LDAP injection. It fell from first place in 2017 to fifth in 2025, but it is still one of the most dangerous categories. The fix is parameterized queries, contextual output encoding, and validating input on the server.
A06 — Insecure Design
Insecure design means a needed control was never designed into the application: missing or ineffective control design, business logic flaws, and workflows that can be abused. Design gaps are expensive to patch after the fact, which is why threat modeling and secure design patterns matter before coding starts.
A07 — Authentication Failures
Authentication failures cover weak identity proofing, missing multi-factor authentication, weak session management and credential stuffing. Enforce MFA, protect against brute force, use secure session tokens, and never store passwords in plain text.
A08 — Software or Data Integrity Failures
This category covers code, updates and data trusted without integrity checks: unsigned updates, unprotected CI/CD pipelines, and deserialization of untrusted data. Sign releases, protect the build pipeline, and verify the integrity of anything the application loads.
A09 — Security Logging and Alerting Failures
Attacks are not logged, or nobody is alerted when they happen. Without logs and alerts, a breach can run for months before anyone notices. Log security events centrally, protect the logs from tampering, and alert on the events that matter — failed logins, access control denials, and unusual data access.
A10 — Mishandling of Exceptional Conditions
The newest category covers errors handled badly: security checks that fail open, verbose error messages that leak data, and abnormal states that leave the application in an unsafe condition. Errors should fail closed, reveal nothing useful to an attacker, and be logged for review.
How do you defend a web application?
No single control stops all ten risks. Effective web application security is layered, so that when one control fails, the next one catches the attack.
Start with the controls CISA recommends for website owners: identify and fix the top 10 risks first, then harden the web server configuration, scan continuously for critical and high vulnerabilities, deploy a web application firewall, use a content delivery network to absorb malicious traffic, and protect visitors with XSS and cross-site request forgery protections and a Content Security Policy.
Two controls deserve emphasis because they are cheap and widely skipped. Security headers — including a Content Security Policy, HTTP Strict Transport Security and X-Frame-Options — block whole classes of browser attacks with a few lines of configuration. You can check your own site's headers in seconds with our free security headers checker.
TLS is now table stakes: check your certificate and configuration with the free SSL checker.
How should you test web application security?
Testing finds what design and code review miss, but only if you use more than one method. Each type of testing finds different problems.
| Method | What it finds | When to run it |
|---|---|---|
| SAST (static analysis) | Injection, insecure patterns, hard-coded secrets in code | Continuously, in the CI pipeline |
| SCA (composition analysis) | Known vulnerabilities in dependencies | On every build and dependency change |
| DAST (dynamic scanning) | Misconfiguration, exposed features, runtime flaws | Against staging and production |
| Manual code review | Business logic and access control flaws | For sensitive features and every release |
| Penetration testing | Chained, real-world exploit paths | At least annually, and after major changes |
OWASP's Application Security Verification Standard (ASVS) 5.0.0, published May 30, 2025, gives this work structure: about 350 testable requirements across 17 chapters, in three assurance levels. Level 1 is a baseline for any application, Level 2 covers most business applications handling sensitive data, and Level 3 is for high-assurance contexts such as finance and healthcare. You can read the standard at asvs.owasp.org.
Penetration testing deserves a note of its own. Automated scanners cannot find broken access control or business logic flaws, because those depend on what the application is supposed to do. A human tester who understands the business rules will find what the scanner cannot — which is exactly why A01 stays at number one.
What about API security?
Modern web apps are mostly APIs with a thin front end, so API security is now a large part of web application security. APIs have their own failure modes: broken object-level authorization (the API version of A01), excessive data exposure, missing rate limiting, and broken authentication on machine-to-machine calls.
The same principles apply, with extra discipline: authenticate every request, authorize every object, validate every input, return only the data the caller needs, and rate-limit everything. OWASP maintains a separate API Security Top 10 for the API-specific risks. If your app has an API, test it as a separate attack surface — attackers certainly will.
Web application security checklist
Use this checklist as a starting point for any web application, whether you built it or bought it.
- Inventory: list every web app and API, who owns it, and what data it touches. You cannot protect what you have not listed.
- Patch: keep the application, its dependencies, frameworks and the underlying server up to date, and scan continuously for critical and high vulnerabilities.
- Authenticate: enforce MFA for admin and privileged accounts, use strong password hashing, and protect sessions.
- Authorize: check authorization server-side on every request, and test it by trying to access other users' records.
- Encrypt: TLS everywhere, with a valid certificate, and encryption for sensitive data at rest.
- Harden: remove default accounts and unnecessary features, set security headers and a Content Security Policy, and put the web server in a properly configured DMZ.
- Watch: centralize logs, alert on failed logins and access denials, and have an incident response plan that includes the web app's owners.
- Test: run SAST and SCA in the pipeline, DAST against staging, and a penetration test at least annually.
For the wider picture, our small business cybersecurity checklist covers web security alongside backups, email authentication and device security.
What are common web application security mistakes?
The same mistakes appear in breach after breach, and none of them require exotic knowledge to avoid.
- Trusting the client. Any check that only runs in the browser can be bypassed with a single curl command. Authorize on the server, every time.
- Treating a WAF as a fix. A WAF is a useful shield, but it cannot fix broken access control or insecure design. It buys time, not security.
- Ignoring dependencies. The app's own code may be clean while a library it imports has a known critical vulnerability. SCA in the pipeline catches this; nothing else does.
- Logging without alerting. Logs that nobody reads are storage, not security. The 2025 rename of A09 to "Logging and Alerting Failures" makes the point: the alert is the control.
- Skipping the design stage. Security added at the end is always weaker and more expensive than security designed in. Threat modeling takes hours; fixing a design flaw in production takes weeks.
The bottom line
Web application security is not one product or one test. It is a set of habits: design with threats in mind, code defensively, test continuously, harden the deployment, and watch what happens in production. The OWASP Top 10:2025 tells you where to aim first — access control, misconfiguration and the supply chain.
Start today with the two free checks that take under a minute: run your site through the security headers checker and fix what it finds.
Then check the certificate itself with the SSL checker, and work the checklist above, one item at a time.
Frequently asked questions
What is web application security?
Web application security is the practice of protecting websites, web apps and APIs from attacks. It covers secure design and coding, testing for vulnerabilities, configuration hardening, authentication and access control, and monitoring for attacks in production.
What is the OWASP Top 10?
The OWASP Top 10 is a ranked list of the ten most critical security risks to web applications, published by the Open Worldwide Application Security Project. The current edition is the OWASP Top 10:2025, which replaced the 2021 list. It is drawn from test data on more than 2.8 million applications plus a practitioner survey.
What is the most common web application vulnerability?
Broken access control is ranked first in the OWASP Top 10:2025. It happens when an application checks that a user is logged in but not that they are allowed to see a particular record or perform a particular action — for example, changing an ID in a URL to view someone else's invoice.
What is the difference between SAST and DAST?
SAST (static application security testing) analyzes source code without running it, and finds issues such as injection flaws and insecure patterns early in development. DAST (dynamic application security testing) probes a running application from the outside, like an attacker would. They find different problems, so mature programs use both.
What is a web application firewall (WAF)?
A web application firewall sits in front of a web app and inspects incoming HTTP requests, blocking known attack patterns such as SQL injection and cross-site scripting before they reach the application. It is a useful layer of defense, but it cannot fix broken access control or insecure design.
How do you test a web application for security?
Combine automated scanning (SAST in the pipeline, SCA for dependencies, DAST against staging), manual code review for business logic, and periodic penetration testing by a qualified tester. OWASP's ASVS 5.0.0 provides about 350 testable requirements across three assurance levels to structure the work.
Does HTTPS make a web application secure?
No. HTTPS encrypts data in transit and proves the server's identity, which is essential, but it does nothing about vulnerabilities in the application itself. An app served over HTTPS can still have broken access control, injection flaws and misconfiguration.
What is the difference between web application security and API security?
API security is a subset of web application security focused on the machine-to-machine interfaces behind modern apps. APIs have their own risks, such as broken object-level authorization and excessive data exposure, which OWASP covers in a separate API Security Top 10. The same principles apply: authenticate every request, authorize every object, and validate every input.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against the OWASP Top 10:2025, the OWASP Application Security Verification Standard 5.0.0, and CISA's website security guidance.
How we write and fact-check →