nerdexam
CompTIA

SY0-301 · Question #347

Which of the following can be implemented in hardware or software to protect a web server from cross-site scripting attacks?

The correct answer is C. Web Application Firewall. A Web Application Firewall (WAF) operates at the application layer and is specifically designed to inspect HTTP traffic and block web-based attacks including cross-site scripting (XSS).

Security architecture

Question

Which of the following can be implemented in hardware or software to protect a web server from cross-site scripting attacks?

Options

  • AIntrusion Detection System
  • BFlood Guard Protection
  • CWeb Application Firewall
  • DURL Content Filter

How the community answered

(39 responses)
  • A
    8% (3)
  • B
    3% (1)
  • C
    87% (34)
  • D
    3% (1)

Why each option

A Web Application Firewall (WAF) operates at the application layer and is specifically designed to inspect HTTP traffic and block web-based attacks including cross-site scripting (XSS).

AIntrusion Detection System

An Intrusion Detection System monitors and alerts on suspicious network traffic but does not perform application-layer HTTP inspection to actively block XSS attacks.

BFlood Guard Protection

Flood guard protection mitigates volumetric denial-of-service attacks and does not inspect or filter web application request payloads for embedded scripts.

CWeb Application FirewallCorrect

A Web Application Firewall operates at Layer 7 and understands HTTP/HTTPS traffic, allowing it to detect and block malicious payloads such as XSS scripts before they reach the web server. WAFs can be deployed as hardware appliances, software modules, or cloud services and apply rule sets specifically tailored to web application attacks. No other option in the list provides application-layer HTTP inspection capable of blocking XSS payloads.

DURL Content Filter

A URL content filter restricts access to websites by category or URL reputation but does not inspect request and response bodies for embedded XSS payloads.

Concept tested: Web Application Firewall protection against XSS attacks

Source: https://owasp.org/www-community/Web_Application_Firewall

Topics

#WAF#cross-site scripting#web application security#XSS mitigation

Community Discussion

No community discussion yet for this question.

Full SY0-301 Practice