CompTIA Security+ (SY0-601) — Question 409

A dynamic application vulnerability scan identified that code injection could be performed using a web form. Which of the following will be the best remediation to prevent this vulnerability?

Answer options

Correct answer: A

Explanation

Implementing input validations is the most effective method to prevent code injection attacks as it ensures that only properly formatted data is accepted by the web form. The other options, such as deploying MFA, utilizing a WAF, and configuring HIPS, do not directly address the specific issue of input validation against code injection.