Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password reset - allow success response on invalid user #482

Conversation

Bosbaba
Copy link

@Bosbaba Bosbaba commented Aug 10, 2023

Small security feature:

Adding a config flag to allow for responses to appear as successful when invalid emails are submitted during password resets, preventing intruders from fishing for valid email addresses

When used in combination with laravel, I would suggest just updating the reset success message to be more verbose in resources/lang/en/passwords.php : sent

Something like this:
An email has been sent to the address provided, if it exists in our system. Please check your inbox for further instructions on how to reset your account. If you don't receive an email within a few minutes, please ensure that the email address entered is correct and try again. For security reasons, we do not confirm the existence of email addresses in our system.

…e email not found, setting this to true will return a success response preventing an intruder from fishing for valid email addresses.
@taylorotwell
Copy link
Member

Even after this PR they could just attempt to register and see if the email is already taken?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants