In short
A WAF (Web Application Firewall) is a filter placed in front of a web application that inspects HTTP requests and blocks those that resemble known attacks, such as SQL injection or cross-site scripting. It helps buy time when a vulnerability is disclosed (virtual patch) and stops automated attacks. However, it does not detect logic or access control vulnerabilities, which are carried out via perfectly normal requests.
How does a WAF work?
- Deployment: positioned as a barrier in front of the application, either as a cloud service, dedicated hardware, or a web server module.
- Rules: signatures of known attacks, such as the OWASP Core Rule Set, supplemented by application-specific rules.
- Modes: detection-only mode for monitoring, followed by blocking once false positives have been corrected.
- Common add-ons: rate limiting, geographic filtering, and bot protection.
What it blocks and what it allows through
| Type of attack | Does a WAF help? |
|---|---|
| SQL injection, XSS, file inclusion | Yes, to some extent: encoded or previously unseen variants may slip through |
| Widespread exploitation of a disclosed CVE | Yes, via a virtual patch while waiting for the actual fix |
| Bots, credential stuffing | In part, through rate limiting and bot detection |
| IDOR and Faulty Access Control | No: the request is legitimate; only the identifier changes |
| Business logic vulnerabilities | No: there is nothing to distinguish the request from normal usage |
A WAF is a layer of defense-in-depth, not a fix: the vulnerability remains in the application and can be exploited through a workaround or another route.
Frequently asked questions
Does a WAF eliminate the need for a penetration test?
No. It reduces the noise from automated attacks, but the most serious vulnerabilities in an application—such as access control and business logic issues—can only be found by testing the application itself, ideally while also verifying the WAF’s own configuration.
Sources
Find out where an attacker would get in.
Our AI agents actually attack your scope, fully automated, and hand you the proof of every vulnerability.
