nerdexam
EC-Council

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.

Submitted by andres_qro· Mar 4, 2026Web Application Hacking

Question

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 feed data and specifies the incorrect field in case of invalid credentials. Later, Calvin uses this information to perform social engineering. Which of the following design flaws in the authentication mechanism is exploited by Calvin?

Options

  • AInsecure transmission of credentials
  • BVerbose failure messages
  • CUser impersonation
  • DPassword reset mechanism

How the community answered

(53 responses)
  • A
    11% (6)
  • B
    81% (43)
  • C
    6% (3)
  • D
    2% (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.

AInsecure transmission of credentials

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.

BVerbose failure messagesCorrect

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.

CUser impersonation

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.

DPassword reset mechanism

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

#Web application hacking#Authentication flaws#Verbose error messages#Username enumeration

Community Discussion

No community discussion yet for this question.

Full 312-50V12 Practice