Auth. Security vulnerability: find out if an email address is registered in the DB. #1001
Open
2 tasks done
Labels
bug
Something isn't working
Bug report
Describe the bug
An attacker is able then to distinguish whether a given email is present in the DB or not.
To Reproduce
supabase.auth.resetPasswordForEmail
and I have noticed that if I enter an email address that is not present in the DB, the method succeeds as it's supposed to although the email is not sent.Whereas
4. If I insert an email address that's present in the DB, then I invoke the same method right away, this time the method fails with error (
AuthApiError: For security purposes, you can only request this after 56 seconds.
).5. When the method succeeds in this case, it succeeds slower than in the case explain in steps 1,2, and 3 because the an email is getting sent in this case.
Expected behaviour
supabase.auth.resetPasswordForEmail
should:The text was updated successfully, but these errors were encountered: