Threats & AttacksQuestion 8 of 100

Which attack injects malicious database commands through unvalidated user input fields?

a.Cross-site scripting
b.SQL injection
c.Directory traversal
d.Session hijacking

Explanation

SQL injection inserts crafted database statements through input that the application fails to sanitize. It can expose, modify, or delete data. Parameterized queries and input validation are the primary defenses.

Practice all 100 questions free — no signup required.

Related questions on this topic

Last reviewed: · editorial process

PrepPass Editorial Team · Verified against CompTIA Security+ (SY0-701) · How we review
Report