-
-
Notifications
You must be signed in to change notification settings - Fork 531
Improve manager forgot login activation error messaging #16807
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
base: 3.x
Are you sure you want to change the base?
Conversation
Fix activation email failure message
Spacing and other minor formatting/CQ fixes
opengeek
left a comment
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.
I'm having trouble reviewing this as I am seemingly unable to cause a mail server error even before checking out this PR to test.
I just set my |
opengeek
left a comment
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.
Now my concern is that the error only shows if you enter a valid username/email address. If I put in an invalid username/email address, the regular success message shows. This could be a way of allowing bad actors to test for usernames/email addresses.
Yeah, and that's the way it has been; I didn't make a change toward that behavior. Here's the thing though: IMO being vague about whether someone's login attempt is being made with a valid user (name/email) probably isn't providing much security. I actually find it incredibly annoying as a user (in reference to other sites, particularly ones I have an account for but may not have visited for a long time) when I go through a forgot/send me my password process that responds with "if you have an account with us you'll receive an email with..." — just tell me if I don't have an account by X name; it gives you the hint to look more carefully at what you submitted (was there a small typo, etc?). A decent amount of the time I'll know I entered the correct info for at least a previously active account and get no response, presumably because of problems in the site's notification system. Anyway, that's my soapbox on the matter—just giving my perspective and not necessarily a hard argument one way or the other ;-) In any case, how about I go ahead and make the frontend feedback a little more general and provide a log message that gives the sys admin a better hint of what's going on? |
I won't argue how much security it provides, but it is a commonly known vulnerability when a site exposes a valid username/email address from user input like this. This gives an attacker a way to narrow down attempts to crack the password for a known user.
I'll take this as-is and figure out if exposing a valid user this way can be avoided here some other way. |
What does it do?
Created a new, more explicit lexicon for condition where a mail failure occurs when attempting to send a new password activation email.
Why is it needed?
The original message shown appears incomplete.
How to test
Related issue(s)/PR(s)
Resolves #13951