Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: disallow password resets to unverified email #18088

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

miketheman
Copy link
Member

Only allow account resets to verified email addresses to prevent account
domain resurrection attacks.

If the user account exists for a given email address, check if the
account is verified. If it's not, reject with a flash message.

Does not disclose the name of a given user account, logs an event/warning for inspection.

@miketheman miketheman added security Security-related issues and pull requests email Related to emails labels May 5, 2025
@miketheman miketheman requested a review from a team as a code owner May 5, 2025 17:56
@miketheman
Copy link
Member Author

miketheman commented May 5, 2025

not the solution any longer

Screenshot 2025-05-05 at 13 51 57

miketheman added 4 commits May 7, 2025 18:05
Only allow account resets to verified email addresses to prevent account
domain resurrection attacks.

Signed-off-by: Mike Fiedler <[email protected]>
If the user account exists for a given email address, check if the
account is verified. If it's not, reject with a flash message.

Signed-off-by: Mike Fiedler <[email protected]>
Signed-off-by: Mike Fiedler <[email protected]>
@miketheman miketheman force-pushed the miketheman/disallow-password-resets-for-unverified-emails branch from f883bbc to c193714 Compare May 7, 2025 22:06
@miketheman
Copy link
Member Author

Sample email notice, HTML rendered:

image

Signed-off-by: Mike Fiedler <[email protected]>
@miketheman miketheman requested a review from di May 7, 2025 22:18
miketheman added 2 commits May 8, 2025 15:46
Signed-off-by: Mike Fiedler <[email protected]>
Signed-off-by: Mike Fiedler <[email protected]>
Comment on lines +2174 to +2177
[
"email",
"username",
],
Copy link
Member Author

@miketheman miketheman May 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the material change to the unverified tests from the previous version - now this test takes either of these as an input.

@miketheman miketheman requested a review from di May 8, 2025 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
email Related to emails security Security-related issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants