Vulnerability Discovery and Analysis
A source code scan flags SQL injection in a Java method, but the code uses a PreparedStatement with bound parameters. What should the tester do next?
Show the answer
Correct answerC. Trace the data flow in the code to check for a false positive
AWhy not this: SCA matches library versions to CVEs and does not examine how queries are built.
BWhy not this: Unvalidated findings can be false positives, and reporting them as critical misleads the client.
CWhy this is right: Manually tracing the flow confirms whether the finding is real or a false positive.
DWhy not this: A credentialed host scan assesses the operating system, not query construction in code.
Static tools can flag code that is actually safe, so findings must be validated. Tracing the flow and the parameter binding shows whether it is a false positive. SCA checks libraries, not how queries are built.