michaellaunay / alirpunkto

0 stars 0 forks source link

On the "forgot password" page, the behaviour differs whether the user is registered or not #159

Open SergioArbarviro opened 2 months ago

SergioArbarviro commented 2 months ago

Current state

On the /forgot_password page, after having submitted the email address to which the reinitialisation link should be sent, a message informs the user that, if the user exists, s/he will receive an e-mail. However, the way this message is displayed depends on whether the user is or not in the database:

This behaviour could create a security risk, because it enables the clever attacker to identify what e-mail addresses are registered.

Desired state

The message informing the user that, if the e-mail address is in the database, it will receive a message, should be displayed the same way, whether the e-mail address is or not in the database.