CompTIA
CAS-005 · Question #339
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 followin
Sign in or unlock CAS-005 to reveal the answer and full explanation for question #339. The question stem and answer options stay visible for context.
Submitted by alyssa_d· Mar 6, 2026Security Engineering
Question
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?
Exhibits
Options
- ASalted hashing via the proprietary function
- BInput validation in the first two lines of code
- CAtomic execution of subroutines
- DTOCTOU remediation in SET USERACL
- EDatabase connection over encrypted channels
Unlock CAS-005 to see the answer
You've previewed enough free CAS-005 questions. Unlock CAS-005 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

