Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why should we make account activation/password reset links expire after some time?

Would there be any big issues if they never expire?

Somebody forgot his password and requests to reset his password, an email with the password reset link is sent to him.

He then suddenly remembers his password and so he simply ignores the password reset email. But after a few days, he forgot again. Since he already has a password reset email in his mailbox, he simply clicks on that link to go back to the website to reset his password.

This seems ok, so why should we make account activation/password reset links expire after some time?

like image 979
bobo Avatar asked Dec 23 '10 02:12

bobo


People also ask

Why do password reset links expire?

Email Security software like Mimecast will scan your email for links that could be harmful to your computer. When a one time use URL is used in the case of many password reset communications, the URL becomes expired when the security software scans the email.

Why do activation links expire?

For security reasons the activation link will expire after 48 hours. If this occurs, you can re-register, and then activate your account using the activation link in the new email.

How long is Salesforce password reset link valid?

Password reset links expire after 24 hours from when it's triggered. Email change verification links expire after 72 hours from the time of change. Note: The password reset link expiration is different from the password expiration set in Password Policies.

How long should a Reset password token be valid for?

By default, password reset tokens expire after one hour. You may change this via the password reset expire option in your config/auth. php file. The default expire is 60 minutes.


1 Answers

What if their email account was compromised. The attacker then sees all these "password reset" links and clicks through them further compromising more accounts. Among them your service which may use Real Money or Credit Card information.

like image 166
EnabrenTane Avatar answered Sep 20 '22 23:09

EnabrenTane