Skip to content

🔥 Whitelist emails are leaked from API & should be case-insensitive #1766

Closed

Description

@hzxie

Todos:

  • Use whitelist emails in lower case
  • Convert user email to lower case on registration to avoid multiple accounts creation with the same email

Problem

I set the whitelist emails for a competition on CodaBench. However, I noticed two issues:

Expected Behavior

  • Whitelist emails should be hidden or properly secured in the API.
  • Email matching should be case-insensitive so that users can join the competition regardless of how they entered their email address.

Steps to Reproduce

  1. Set up a competition with whitelist emails in all lowercase.
  2. A user registers with the same email but in all uppercase (or mixed case).
  3. The user is not recognized as a whitelisted participant.
  4. Check the API and notice that the whitelist emails are exposed.

Activity

  1. hzxie commented on Mar 4, 2025

    @hzxie
    Author

    This screenshot illustrates the email exposure through the API.

    Screenshot

  2. ihsaan-ullah commented on Mar 5, 2025

    @ihsaan-ullah
    Collaborator

    Hi @hzxie,

    You see whitelist emails because you are an organizer of this competition. Can you check from another account or fetch a competition that is not yours.

  3. ihsaan-ullah commented on Mar 5, 2025

    @ihsaan-ullah
    Collaborator

    Users with same emails but with lower and uppercases can register multiple accounts on codabench e.g. I can use the same email [email protected] and [email protected] to create two accounts. I think we should not allow this and store the registered user's email in lowercase.

  4. ihsaan-ullah commented on Mar 5, 2025

    @ihsaan-ullah
    Collaborator

    I have added some todos to the first comment

  5. self-assigned this
    on Mar 5, 2025
  6. linked a pull request that will close this issueEmail in lowercase #1769on Mar 5, 2025
  7. hzxie commented on Mar 6, 2025

    @hzxie
    Author

    Users with same emails but with lower and uppercases can register multiple accounts on codabench e.g. I can use the same email [email protected] and [email protected] to create two accounts. I think we should not allow this and store the registered user's email in lowercase.

    Emails are not case-sensitive. For instance, [email protected] and [email protected] will be delivered to the same inbox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions