CompTIA CASP+ (CAS-004) — Question 517

The findings from a recent penetration test report indicate a systematic issue related to cross-site scripting. A security engineer would like to prevent this type of issue for future reports. Which of the following mitigation strategies should the engineer use to best resolve the issue?

Answer options

Correct answer: A

Explanation

Implementing static analysis with blocking capabilities in the CI/CD system effectively catches cross-site scripting vulnerabilities during the development process, preventing them from being deployed. The other options, while valuable, either do not directly address the prevention of these vulnerabilities in real-time or focus on broader training and resource allocation without immediate implementation.