Cyber Attacks and Defense in Practice
Which of the following correctly describes a WAF (web application firewall)?
- AA device that decides whether to pass or block traffic by looking only at IP addresses and port numbers, without examining the content of HTTP
- BWith a WAF in place, all attacks including SQL injection can be prevented completely even without fixing the web application's vulnerabilities
- CPlaced in front of a web application, it inspects the content of HTTP requests and blocks requests containing typical attack strings
Show answer and explanation
Answer: C. Placed in front of a web application, it inspects the content of HTTP requests and blocks requests containing typical attack strings
Ordinary firewalls control traffic by IP address, port number and so on, so they cannot stop attacks on web applications that pass through the allowed HTTPS port. A WAF inspects the content of HTTP requests, such as the URL, parameters and headers, and blocks requests with patterns typical of SQL injection or cross-site scripting, or requests that do not fit rules defined for the application. It is also used as temporary protection (virtual patching) between the discovery of a vulnerability and the completion of its fix. However, some attacks slip past the rules, so it is not a substitute for fixing the vulnerability itself.
- A. This describes a packet-filtering firewall. A WAF examines the content of HTTP.
- B. Some attacks slip past WAF rules. It is not a substitute for fixing vulnerabilities.
- C. Correct. It inspects the content of HTTP and blocks attacks on web applications.
Continue: 9 more Cyber Attacks and Defense in Practice questions