ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 454 - CAS-004 discussion

Report
Export

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?

A.
Include routines in the application for message handling
Answers
A.
Include routines in the application for message handling
B.
Adopt a compiled programming language instead.
Answers
B.
Adopt a compiled programming language instead.
C.
Perform SAST vulnerability scans on every build.
Answers
C.
Perform SAST vulnerability scans on every build.
D.
Validate user-generated input.
Answers
D.
Validate user-generated input.
Suggested answer: A

Explanation:

In this scenario, the web application is disclosing sensitive debugging information when an error occurs. To mitigate this risk, the best solution is to implement proper error message handling routines that ensure detailed debugging information is not exposed to users. Instead, the application should display generic error messages to the end-user while logging detailed information securely for internal troubleshooting. This approach reduces the risk of information disclosure, which is a common vulnerability in web applications. CASP+ emphasizes the importance of secure error handling as part of secure software development practices.

CASP+ CAS-004 Exam Objectives: Domain 2.0 -- Enterprise Security Operations (Secure Coding and Error Handling)

CompTIA CASP+ Study Guide: Web Application Security and Proper Error Handling

asked 02/10/2024
Mohamed Mohamed
48 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first