A security analyst reviewing network security monitoring logs spots an alert triggered by an HTTP POST payload sent to an internal web application: `POST /api/search HTTP/1.1 Host: app.internal Payload: vendor_id=102 UNION SELECT username, password_hash FROM user_accounts--`. The analyst must identify the nature of the alert and determine the correct mitigation step without disabling HTTP services across the enterprise subnet. Which of the following correctly categorizes this attack vector and specifies the appropriate security control?
- The event represents a SQL injection attack; input validation and parameterized queries or WAF inspection rules should be applied.Answer
- BThe event represents a cross-site scripting (XSS) attack; Content Security Policy (CSP) headers should be deployed to prevent client script execution.
- CThe event represents a SQL injection attack; network firewall rules should be updated to block all inbound traffic on TCP port 443.
- DThe event represents a cross-site scripting (XSS) attack; the passive Network Intrusion Detection System (NIDS) should be reconfigured to block packet stream delivery inline.
Answer
The correct answer identifies the event as a SQL injection attack and recommends implementing application input validation, parameterized database queries, or WAF filtering rules.
The alert payload explicitly uses SQL database command structures (`UNION SELECT ... --`) attempting to extract data from backend tables. Mitigating SQL injection requires application-layer sanitization, prepared statements, or WAF inspection.
Step-by-Step Solution
Key Concept
Network Security Monitoring & Web Application Attack Triage