← Quiz: Password Storage Lab: all 10 questions
Quiz: Password Storage Lab · Question 4 of 10
Why does the login function return "Incorrect username or password" in both failure cases?
Why does the login function return "Incorrect username or password" in both failure cases?
- A.To save code
- B.So attackers cannot learn which usernames exist
- C.Because the database cannot tell the difference
- D.It is required by PBKDF2
Answer & explanation
Correct answer: So attackers cannot learn which usernames exist
Different messages allow account enumeration.
Can you get the rest right without peeking?
Take the timed Quiz: Password Storage Lab quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →