312-50V12 · Question #98
Calvin, a grey-hat hacker, targets a web application that has design flaws in its authentication mechanism. He enumerates usernames from the login form of the web application, which requests users to
The correct answer is B. Verbose failure messages. This question tests knowledge of authentication design flaws, specifically how overly detailed error messages can leak information to attackers. Calvin exploits the login form's behavior of specifying which field (username or password) is incorrect, enabling username enumeration.
Question
Options
- AInsecure transmission of credentials
- BVerbose failure messages
- CUser impersonation
- DPassword reset mechanism
How the community answered
(53 responses)- A11% (6)
- B81% (43)
- C6% (3)
- D2% (1)
Why each option
This question tests knowledge of authentication design flaws, specifically how overly detailed error messages can leak information to attackers. Calvin exploits the login form's behavior of specifying which field (username or password) is incorrect, enabling username enumeration.
Insecure transmission of credentials refers to sending login data over unencrypted channels (e.g., HTTP instead of HTTPS), which is unrelated to the application specifying incorrect fields in error messages.
Verbose failure messages occur when an authentication system reveals too much information in its error responses, such as distinguishing between 'invalid username' and 'invalid password' rather than a generic 'invalid credentials' message. This allows Calvin to enumerate valid usernames by observing which specific field the application flags as incorrect. The confirmed valid usernames are then leveraged in downstream social engineering attacks.
User impersonation is an attack where an adversary assumes another user's identity after obtaining credentials, not the act of enumerating usernames through error message analysis.
Password reset mechanism flaws involve weaknesses in how an application handles forgotten password workflows (e.g., weak security questions or predictable reset tokens), which is not what Calvin is exploiting here.
Concept tested: Authentication verbose error messages enabling username enumeration
Source: https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication_Testing/03-Testing_for_Weak_Lock_Out_Mechanism
Topics
Community Discussion
No community discussion yet for this question.