Implementing and Operating Cisco Security Core Technologies (SCOR) — Question 596

What is a difference between an XSS attack and an SQL injection attack?

Answer options

Correct answer: D

Explanation

The correct answer, D, accurately describes that SQL injection is used to steal information from databases, while XSS attacks focus on redirecting users to malicious sites for data theft. Options A and C incorrectly describe the nature and targets of XSS and SQL injection, and option B misrepresents the functions of both attack types.