A Security Operations Center (SOC) analyst is investigating an alert and reviews the following web application access log entries ingested by the SIEM:
192.168.1.50 - - [27/Jul/2026:14:10:02 +0000] "GET /products.php?id=1 HTTP/1.1" 200 4520
192.168.1.50 - - [27/Jul/2026:14:10:15 +0000] "GET /products.php?id=1%27%20OR%20%271%27%3D%271 HTTP/1.1" 200 18450
192.168.1.50 - - [27/Jul/2026:14:10:22 +0000] "GET /products.php?id=1%20UNION%20SELECT%20username,password%20FROM%20users HTTP/1.1" 200 32100
192.168.1.50 - - [27/Jul/2026:14:11:05 +0000] "POST /admin/login.php HTTP/1.1" 302 412
Based on the log analysis, which of the following best identifies the type of attack occurring and the most effective preventive control?
- SQL injection attack attempting database schema extraction; mitigate by implementing parameterized queries and input sanitization.Cevap
- BCross-Site Scripting (XSS) attack attempting session hijacking; mitigate by enforcing Content Security Policy (CSP) headers and encoding output.
- CCredential brute-force attack on the administrative login page; mitigate by implementing account lockout rules and multi-factor authentication (MFA).
- DFalse positive generated by misconfigured SIEM correlation parsing rules; mitigate by lowering the SIEM event count threshold for HTTP 200 codes.
Cevap
SQL injection attack attempting database schema extraction; mitigate by implementing parameterized queries and input sanitization.
The correct response accurately identifies SQL injection based on the presence of SQL syntax (`OR '1'='1'` and `UNION SELECT`) in the URL request parameters, and pairs it with prepared statements (parameterized queries), which are the standard primary defense against SQL injection.
Adım Adım Çözüm
Anahtar Kavram
Web Server Log Analysis and SQL Injection Correlation