← Quiz: Passwords and Authentication: all 10 questions
Quiz: Passwords and Authentication · Question 9 of 10
Why should the login error be the same for "no such email" and "wrong password"?
Why should the login error be the same for "no such email" and "wrong password"?
- A.To make the code shorter
- B.To stop account enumeration, where attackers learn which emails are registered
- C.Because databases cannot tell them apart
- D.To speed up the login page
Answer & explanation
Correct answer: To stop account enumeration, where attackers learn which emails are registered
Use one message such as "Incorrect email or password".
Can you get the rest right without peeking?
Take the timed Quiz: Passwords and Authentication quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →