Security Assessment and Testing

A scan finds SQL injection in an internally developed web application. A WAF rule now blocks the known attack strings. Which action actually remediates the finding?

Show the answer

Correct answerD. Revise the code to use parameterized queries

AWhy not this: An exception documents accepted risk and leaves the vulnerability in place.

BWhy not this: Tuning a WAF only strengthens a compensating control; the flaw remains in the application.

CWhy not this: An advisory informs others but does nothing to change the vulnerable code.

DWhy this is right: Fixes the vulnerable code itself, removing the root cause of the injection flaw.

Remediation removes the root cause, and parameterized queries eliminate the injection flaw in the code. The WAF rule is only a compensating control that can be bypassed, so tuning it still leaves the vulnerable code in place.