dubinc / dub

Open-source link management infrastructure. Loved by modern marketing teams like Vercel, Raycast, and Perplexity.
https://dub.co
GNU Affero General Public License v3.0
17.67k stars 1.85k forks source link

Bug: Exposed Endpoint Reveals Existence of User Emails #1263

Open sohamnandi77 opened 5 days ago

sohamnandi77 commented 5 days ago

The endpoint /auth/account-exists seems to reveal whether a particular email exists in the system or not by returning different responses based on the existence of the provided email. This can potentially allow attackers to check if an email is registered, leading to privacy concerns or facilitating targeted phishing attacks.

Endpoint: https://api.dub.co/auth/account-exists

Steps to Reproduce:

Concerns:

linear[bot] commented 5 days ago

ENG-546 Security Vulnerability: Exposed Endpoint Reveals Existence of User Emails

steven-tey commented 4 days ago

Thanks for the heads up! We're working on a way to make this more secure 👍