-
-
Notifications
You must be signed in to change notification settings - Fork 835
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
fix: password reset leaks user existence #3616
fix: password reset leaks user existence #3616
Conversation
Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
framework/core/src/User/Command/RequestPasswordResetHandler.php
Outdated
Show resolved
Hide resolved
Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might want to consider sending emails to users when their emails aren't registered (ratelimited, obviously) so that a user doesn't sit aimlessly for minutes if they enter one of two emails they might have used, for example.
I know some other services do this, with something like "You've requested a password reset, but we didn't find a user associated with this email address", etc.
Co-authored-by: David Wheatley <hi@davwheat.dev>
hmm 🤔 I don't know if we would want to send emails to non-registered users, but yeah would definitely require rate limiting which would need to be implemented separately as it would be a cache-based implementation possibly reusing the laravel one and allowing for easy re-usage. |
Yeah, fair point. We should be extra careful about spam to non-users. |
framework/core/src/User/Command/RequestPasswordResetHandler.php
Outdated
Show resolved
Hide resolved
Co-authored-by: Alexander Skvortsov <38059171+askvortsov1@users.noreply.github.com>
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
Part of the security roadmap
Changes proposed in this pull request:
Reviewers should focus on:
I wonder if we should drop the command and move it to the controller now that we also added a job. Would that be a possible breaking change?
Necessity
Confirmed
composer test
).