djoser icon indicating copy to clipboard operation
djoser copied to clipboard

The endpoint reset_password takes longer if the email exists

Open ericdoerheit opened this issue 2 years ago • 0 comments

Thank you for the great work.

During the integration of djoser into our application, it appeared to me that the endpoint /users/reset_password/ takes longer if the requested email exists. This could potentially allow an attacker to find out if a provided email address exist. One possible way to circumvent this is to add a random delay in both cases (at least as long as PASSWORD_RESET_SHOW_EMAIL_NOT_FOUND = False).

ericdoerheit avatar Mar 03 '22 14:03 ericdoerheit