What type of cybersecurity vulnerability occurs when an application includes unsanitized user input directly inside a database query string?

Answer and explanation

Correct answer: A. SQL Injection (SQLi)

  1. Step 1: Identify the exploitation mechanism: manipulating database commands via malicious input.
  2. Step 2: SQL Injection occurs when user input containing SQL metacharacters (e.g., `' OR '1'='1`) is directly concatenated into database queries without parameterized statements or input sanitization.
Answer
SQL Injection (SQLi).
Why not the others: XSS injects malicious client-side scripts into web pages viewed by other users; Buffer overflow writes past memory bounds; DDoS floods network bandwidth.

Practise more Computer Systems, Networks and Cybersecurity.

Free questions with an explanation for every one, and full timed EmSAT Achieve (UAE) mock tests.