You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
🔥 Whitelist emails are leaked from API & should be case-insensitive #1766
Case-Sensitivity Issue: Some users registered with ALL CAPITALIZED email addresses, while the whitelist emails were stored in all lowercase. As a result, they were not recognized as whitelisted participants.
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
Set up a competition with whitelist emails in all lowercase.
A user registers with the same email but in all uppercase (or mixed case).
The user is not recognized as a whitelisted participant.
Check the API and notice that the whitelist emails are exposed.
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.
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.
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.
Activity
hzxie commentedon Mar 4, 2025
This screenshot illustrates the email exposure through the API.
ihsaan-ullah commentedon Mar 5, 2025
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.
ihsaan-ullah commentedon Mar 5, 2025
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.ihsaan-ullah commentedon Mar 5, 2025
I have added some todos to the first comment
hzxie commentedon Mar 6, 2025
Emails are not case-sensitive. For instance, [email protected] and [email protected] will be delivered to the same inbox.