Security+ SY0-701 practice question 18 of 35

An attacker used XSS to compromise a web server. Which of the following solutions could have been used to prevent this attack?

Full set: 923 questions
Answer options
A: NGFW
B: UTM
C: WAF Correct answer
D: NAC
Correct Answer:
C. WAF
Explanation

A Web Application Firewall (WAF) is a security control specifically designed to protect web applications from common attacks by inspecting and filtering HTTP/S traffic. It operates at the application layer (Layer 7) and can apply a set of rules to identify and block malicious traffic, including Cross-Site Scripting (XSS) payloads. A WAF is placed in front of web servers and analyzes requests before they reach the application, making it an effective preventative measure against XSS and other web-based attacks.

Why Incorrect

A. A Next-Generation Firewall (NGFW) provides deeper inspection than traditional firewalls but is not as specialized in understanding web application logic and attacks as a WAF.
B. A Unified Threat Management (UTM) device bundles multiple security features but its web protection capabilities are typically less robust and specialized than a dedicated WAF.
D. Network Access Control (NAC) is focused on enforcing security policies for devices connecting to a network, not on inspecting application-layer traffic for attacks like XSS.

References

1. National Institute of Standards and Technology (NIST). (2007). Guide to Secure Web Services (NIST Special Publication 800-95). Section 5.3, p. 5-4. Describes XML Firewalls (an early form of WAF) as a mechanism to validate and filter traffic to prevent attacks.

2. Scarfone, K., & Souppaya, M. (2007). Guide to Intrusion Detection and Prevention Systems (IDPS) (NIST Special Publication 800-94). Section 2.2.4, p. 2-6. Mentions that some IDPS technologies can be deployed to protect web applications, a function now primarily associated with WAFs.

3. Stallings, W., & Brown, L. (2018). Computer Security: Principles and Practice (4th ed.). Pearson. Chapter 21.4 discusses web application security and describes WAFs as a key countermeasure against attacks like SQL injection and XSS.

Scroll to Top