You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Lost password replaces the password immediately instead of sending a reset link #443
sendNewPass() (includes/cleanup_functions.php) sets a new random password as soon as someone submits a matching username and email, and emails it in plain text. (It works again as of c28135bd; before that, the lookup always failed.)
Anyone who knows a user's username and email can reset their password at will. They can't take over the account, because the new password goes to the real user, but they can keep locking them out.
The form answers differently for known and unknown accounts ("Invalid username or email"), so it can be used to check whether a username/email pair exists.
The password travels in an email.
Fix: email a single-use link with an expiring token (store only its hash); the user chooses the new password on that page. Always show the same "if the account exists, we've sent a link" message. Skip SSO-only users (Phase 1).
Activity