5 ms·
Except that if you email a new password anyone can reset someone's password by only knowing the email. It can be a real pain. Imagine being on the customer supp
by jonknee 17y ago
Except that if you email a new password anyone can reset someone's password by only knowing the email. It can be a real pain. Imagine being on the customer support side when an unknown third party keeps resetting someone's password.
- pj 17y agoIn this case, you introduce the concept of the "secret question and answer." But then sometimes users forget those too. There is no perfect scheme, because there are no perfect memories...
- DougBTX 17y agoPerhaps no perfect scheme, but you can do better than provide a "lock someone out of their account if you know their username" button as described above.
- pj 17y agoWhat is a better method? I'm not disagreeing with you. I am encouraging you to share better ideas.
- jonknee 17y agoA better method is to send a special link to a user who requested to reset their password. After clicking on that link they can change it and log-in. That makes it such that the user is the only one that can trigger the reset. The worst a third party can do is trigger an email (simply note in the email that if you did not request the email to ignore it and that your account is still safe). This is a common technique.
- deleted 17y ago[deleted]
- nuclear_eclipse 17y agoWith the Mantis Bug Tracker, users can request a password reset based on username, but it does not prevent the user from continuing to login via the existing password if the user does not get/click on the password reset link from the email.
- pj 17y agoI like that idea.
- dinkumthinkum 17y agoThat's more of a DoS attack than a breach of security. You can detect mass password rests and determine if that is happening. However, in practice, I've never really heard of this happening (I'm sure someone will point me to some examples). But again, this is just another sort of DoS attack.
- sounddust 17y agoYou don't reset the user's password when he/she requests it via a web form. You send the user an e-mail with a cryptographically secure token (rather, a URL containing the token) that allows them to reset their password. You keep a table of valid tokens and expire them regularly. That will serve the same purpose without causing an inconvenience to the user.
- jonknee 17y agoSome people do reset the password when requested via a web form though, that's what I was replying to. For my own projects I do what you suggested.