Booked Scheduler Community Support
December 13, 2019, 02:17:12 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Reset password expire  (Read 384 times)
stiefel
Newbie
*

Karma: 0
Posts: 1


« on: November 21, 2019, 06:05:53 AM »

Hi,

generally it is not a good idea to send out plain-text passwords via e-mail. Which is the case if the user resets his/her password.

It would be more secure to implement a one-time password reset link. If this would be to difficult and/or would require intensive work to rewrite the system, a password expiration should be implemented. Currently after resetting the password the user gets a new randomly generated password via e-mail, and the user is not required to change it after logging in. This means in if the e-mail was somehow acquired by an attacker at a later time the account might be still accessible. To prevent this a new field would be required in the DB, with which the password can be set as expired, and after logging in with the new password the user is required to change the password immediately, like if you call
Code:
passwd -e <login>
on a NIX machine. If the password is set as expired, the user should be blocked to do anything but changing his/her password.

Cheers,
stiefel
Logged
herby1620
Newbie
*

Karma: 0
Posts: 17


« Reply #1 on: November 21, 2019, 12:21:09 PM »

If you are going to all the trouble of the password reset stuff (email, etc.), it would also be nice if the password reset would keep the OLD password intact, and make the "password reset" link/password be used IN ADDITION to the original password.  Presently it REPLACES the password with the new generated one.  This is nice, but if you don't have things setup correctly, the new password might be lost.  It is also a denial of service attack vector (just try to login and ask for a password reset).  Not very friendly.

Yes, this would entail a database overhaul (additional entries in a table), and some code, but it would be "nice to have".

It should also be setup so that if you DID request a password reset and logged in with your correct password, it would delete the password reset, as it isn't needed any more.

Yes, a small bit of programming.......
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!