exam questions

Exam CAS-004 All Questions

View all questions & answers for the CAS-004 exam

Exam CAS-004 topic 1 question 414 discussion

Actual exam question from CompTIA's CAS-004
Question #: 414
Topic #: 1
[All CAS-004 Questions]

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.
  • B. Adopt a compiled programming language instead.
  • C. Perform SAST vulnerability scans on every build.
  • D. Validate user-generated input.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
c0ffad1
Highly Voted 1 year ago
Selected Answer: A
A. Include routines in the application for message handling is the best choice. This method directly addresses the need to manage error conditions in a way that prevents the dumping of sensitive debugging information to users, which is essential for maintaining the security and integrity of the application under adverse conditions.
upvoted 8 times
...
rice3cooker
Most Recent 7 months ago
Selected Answer: B
B. Adopt a compiled programming language instead. Here's why: Compiled programming languages like C++ or Java convert the code into a machine-readable format before execution. This makes it more difficult for attackers to extract sensitive information like the interpreter's version, binary file paths, and user ID. Message handling routines and user-generated input validation are important security measures, but they don't directly address the specific issue of preventing the dump of debugging information. SAST vulnerability scans can help identify potential vulnerabilities in the code, but they might not detect this particular issue if it's not explicitly checked for. By adopting a compiled programming language, the application's code will be less exposed, making it harder for attackers to extract sensitive information. This is the most effective way to mitigate the risk of unexpected behavior leading to the dump of interpreter debugging information.
upvoted 1 times
...
grelaman
7 months, 1 week ago
Selected Answer: D
D. Validate User-Generated Input By rigorously validating and sanitizing all user inputs, the application can prevent malicious data from causing unexpected behavior or triggering errors that might expose sensitive information. Proper input validation helps protect against various injection attacks (e.g., SQL injection, command injection, overflow attacks, remote code execution, fuzzers, etc) that can exploit vulnerabilities in the application to manipulate its behavior. By catching invalid inputs early, the application can handle errors gracefully without exposing internal details, maintaining both security and user experience. Why not A: This option is more about mitigating the impact after an issue occurs rather than preventing the issue from happening in the first place.
upvoted 1 times
...
isaphiltrick
10 months, 1 week ago
Selected Answer: A
To mitigate the risk of the application leaking sensitive debugging information, the best course of action is to include routines in the application for message handling. This approach ensures that detailed error information is logged securely and not exposed to end users, thus preventing the leakage of sensitive information that could be exploited by attackers.
upvoted 3 times
...
loucrass
1 year ago
Selected Answer: D
D. Validate user-generated input. Chat GPT said (D) was the answer
upvoted 1 times
armid
10 months ago
question says "a condition", which may or may not be user input. Throwing debuggin info meant unandled exceptions. therefore A. should be the answer
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago