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 questionsA 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.
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.
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.
Keep practicing
Take the free Security+ SY0-701 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other Security+ SY0-701 practice questions
- Question 1A company purchased cyber insurance to address items listed on the risk register. Which o…
- Question 2Which of the following is a compensating control for providing user access to a high-risk…
- Question 4Which of the following would be the greatest concern for a company that is aware of the c…
- Question 6A company's website is www. Company. com Attackers purchased the domain wwww. company.com…
- Question 7Which of the following cryptographic solutions protects data at rest?
- Question 8Which of the following can be used to compromise a system that is running an RTOS?
