CompTIA CySA+ (CS0-003) — Question 19

A penetration tester submitted data to a form in a web application, which enabled the penetration tester to retrieve user credentials. Which of the following should be recommended for remediation of this application vulnerability?

Answer options

Correct answer: C

Explanation

The correct answer is C because performing input validation helps prevent malicious data from being processed by the application, thereby blocking exploitation attempts. Options A and B, while beneficial for security, do not directly address the vulnerability related to input submission. Option D is more about network architecture than directly fixing the application flaw.