exam questions

Exam CAS-005 All Questions

View all questions & answers for the CAS-005 exam

Exam CAS-005 topic 1 question 19 discussion

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

A programmer is reviewing the following proprietary piece of code that was identified as a vulnerability due to users being authenticated when they provide incorrect credentials:

Which of the following should the programmer implement to remediate the code vulnerability?

  • A. Salted hashing via the proprietary SHASH function
  • B. Input validation in the first two lines of code
  • C. Atomic execution of subroutines
  • D. TOCTOU remediation in SET USERACL
  • E. Database connection over encrypted channels
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
vicbersong
2 weeks, 1 day ago
Selected Answer: B
- Input validation ensures that user-supplied data (such as USERID and PASS) meets security requirements before being processed. - Without proper validation, attackers might inject unexpected values to bypass authentication or exploit the system.
upvoted 1 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