CompTIA SecurityX (CAS-005) — Question 316

A penetration tester discovers a condition that causes unexpected behavior in a web application. This results in the dump of the interpreter’s debugging information, which includes the interpreter’s version, full path of binary files, and the user ID running the process. Which of the following actions would best mitigate this risk?

Answer options

Correct answer: A

Explanation

Including routines for message handling helps manage how the application responds to unexpected situations, thereby reducing the likelihood of leaking sensitive debugging information. While adopting a compiled language may improve security, it does not directly address the specific risk of unintended information disclosure. Performing SAST scans is beneficial for identifying vulnerabilities but does not prevent the immediate risk from occurring. Validating user input is essential for security but does not specifically mitigate the issue of disclosing debugging information.