Home > Glossary > CompTIA PenTest+ > Web Application Firewall (WAF)

📖 What is Web Application Firewall (WAF)?

A Web Application Firewall (WAF) is a security tool that monitors, filters, and blocks HTTP traffic to and from a web application. It operates at Layer 7 of the OSI model to protect against attacks like SQLi and XSS.

🥋 Sensei Says:

"When you encounter a WAF, your primary goal is 'WAF Bypass.' This often involves encoding payloads (e.g., URL encoding or Hex) to slip past the filter's signature-based detection."

📚 Certification: CompTIA PenTest+ (PT0-002)

🔑 What are the Key Concepts of Web Application Firewall (WAF)?

  • Operates at Layer 7 of the OSI model, allowing it to inspect the actual content of HTTP/HTTPS requests for application-level attacks.
  • Utilizes signature-based detection to match incoming traffic against a database of known attack patterns, such as common SQL injection strings.
  • Employs either a positive security model (allow-listing known good traffic) or a negative security model (blocking known bad traffic patterns).
  • Acts as a reverse proxy, sitting between the external client and the web server to filter malicious requests before they reach the application.
  • Requires testers to use evasion techniques like URL encoding, case variation, or whitespace manipulation to bypass strict signature-based filtering rules.

🎯 How does Web Application Firewall (WAF) appear on the PT0-002 Exam?

You may be asked to identify a WAF's presence when your standard exploitation payloads consistently trigger 403 Forbidden or 406 Not Acceptable HTTP response codes. You must then determine the appropriate encoding or evasion technique to bypass the filter.

A scenario might describe a target environment where the application is vulnerable to SQLi, but the attack is blocked. You must select the best method to evade the WAF, such as using hex encoding or comment-based obfuscation.

Expect questions about the placement of a WAF in a network architecture, specifically its role as a reverse proxy to protect the web server from OWASP Top 10 threats.

❓ Frequently Asked Questions

How does a WAF differ from a standard network firewall?

Traditional firewalls operate at Layers 3 and 4, filtering traffic based on IP addresses and ports. WAFs operate at Layer 7, inspecting the payload of HTTP requests to block application-specific attacks like XSS.


Why is encoding used to bypass a WAF?

WAFs often look for specific keywords like 'UNION SELECT'. By encoding these characters into Hex or URL formats, the payload may bypass the signature check but still be decoded and executed by the backend server.

Related Terms from CompTIA PenTest+

📝 Related Study Guides

Comparison 8 min read

CISSP vs CISM: Which Certification Should You Pursue in 2026?

Choose CISSP if you want broad technical security expertise across eight domains, including cryptography, network security, and software development. Choose CISM if you're focused on information security management, governance, and risk management from a leadership perspective. CISSP is ideal for hands-on security architects, while CISM is designed for security managers and directors.

Career Guide 9 min read

The IT Certification Roadmap: Where to Start in 2026

Start your IT certification journey in 2026 with CompTIA A+ for general IT foundations, then branch into networking (Network+), cybersecurity (Security+), or cloud computing (AWS Cloud Practitioner or Azure Fundamentals) based on your career goals. Each path leads to advanced certifications like CISSP, AWS Solutions Architect, or CISM within 2-3 years of focused progression.

Comparison 10 min read

CISSP vs CISM: Which Certification Should You Pursue in 2026?

The CISSP is a broad, technical-to-managerial certification focusing on security operations and architecture across eight domains. In contrast, CISM is a specialized management certification centered on governance, risk management, and program development. Choose CISSP for comprehensive security expertise and CISM if you are pivoting specifically into security leadership and governance roles.

🧠

Test Your Knowledge

Think you understand Web Application Firewall (WAF)? Put it to the test with our practice exam.

Try 10 Free Questions

⭐ 1,000 expert-curated questions available with Premium

Upgrade Premium