Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error messages in user authentication screens allow for user account enumeration #441

Open
gmgchow opened this issue Mar 18, 2021 · 0 comments

Comments

@gmgchow
Copy link

gmgchow commented Mar 18, 2021

The Sign Up, Log In, and Forgot Password pages use non-generic error messages in certain cases (documented in further detail below). These error messages can be used by attackers to enumerate a list of valid user email addresses, which they can then use to perform bruteforcing, password guessing, credential stuffing, etc. to take over user accounts.

These error messages should be changed so that they do not reveal whether an account with that email address already exists.

Screens affected:

  • Sign Up

    • Current: Register using an email address that is already registered to another account → the error message in the screenshot below is displayed
    • Ideal: Change the message to the same message used for successful account creation (A confirmation message was sent to your email, click the link there to continue). In the actual email, you can reveal to the user that there is already an existing account registered to their email address.
    registration
  • Log In

    • Current: Log in using an email address that you registered with but have not yet clicked the link in the confirmation email → the error message in the screenshot below is displayed
    • Ideal: Change the message to the same generic message used for invalid password and non-existing user (No user found with that email, or password invalid)
    login
  • Forgot Password

    • Current: Enter an unregistered email address → the error message in the screenshot below is displayed
    • Ideal: Change the message to the same message used for the success case (We've sent a recovery email to your account, follow the link there to reset your password). In the actual email, you can reveal to the user that there is no account registered to their email address.

forgot_pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant