A SOC analyst is reviewing web server access logs within a SIEM platform after an automated alert was generated. The analyst identifies the following log entries:
192.168.10.45 - - [27/Jul/2026:10:15:32 +0000] "GET /item.php?id=12%27%20UNION%20SELECT%20username,%20password_hash%20FROM%20users-- HTTP/1.1" 200 4812
192.168.10.45 - - [27/Jul/2026:10:15:40 +0000] "GET /item.php?id=12%27%20OR%201=1-- HTTP/1.1" 200 9520
Based on the log analysis, which security event has occurred?
- A SQL injection (SQLi) attack targeting the backend database through URL parameter manipulation.Answer
- BA Cross-Site Scripting (XSS) attack attempting to execute malicious scripts within a client's web browser.
- CAn authentication bypass resulting from improper authorization checking during user identity verification.
- DA failure of a detective security control to prevent unauthorized file system path traversal.
Answer
A SQL injection (SQLi) attack targeting the backend database through URL parameter manipulation.
The log entries show URL-encoded payloads containing standard SQL statements such as `UNION SELECT username, password_hash FROM users--` and `' OR 1=1--`. These syntax patterns confirm that an attacker is attempting to execute arbitrary SQL commands against the database through vulnerable parameter inputs.
Step-by-Step Solution
Key Concept
Log Analysis and SQL Injection Detection in SIEM