CompTIA Security+ (SY0-601) — Question 538

While investigating a recent security breach, an analyst finds that an attacker gained access by SQL injection through a company website. Which of the following should the analyst recommend to the website developers to prevent this from reoccurring?

Answer options

Correct answer: B

Explanation

The correct answer is B, as input sanitization is crucial for preventing SQL injection by ensuring that user inputs are properly filtered. The other options, such as secure cookies, code signing, and blocklists, do not directly address the vulnerabilities that allow SQL injection attacks.