Home > Glossary > PenTest+ Certification Exam > 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: PenTest+ Certification Exam (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 PenTest+ Certification Exam

📝 Related Study Guides

Study Guide 10 min read

The Ultimate CompTIA PenTest+ Study Guide

Passing the CompTIA PenTest+ exam requires a solid understanding of planning and scoping, information gathering, attacks and exploits, reporting, and tools. Consistent practice using high-quality resources is essential for success.

Study Guide 8 min read

How to Pass CompTIA PenTest+ on Your First Try

To pass the PenTest+ on your first try, you must combine hands-on lab experience with rigorous theoretical study, focusing heavily on vulnerability identification and the use of penetration testing tools.

Comparison 7 min read

CompTIA PenTest+ vs. CEH: Which Certification is Right for You?

The CompTIA PenTest+ focuses heavily on practical, hands-on vulnerability assessment and management, while the CEH provides a broader, more theoretical overview of ethical hacking concepts. Your choice depends on whether you prefer practical skills over theoretical knowledge.

🧠

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