by CiPHPerCoder · 10y ago · 0 comments
> Invalidate reset records after use, after any password change, and after a fixed (short) amount of time.
That was (somewhat implicitly) covered in the "what incumbent systems" do: https://paragonie.com/blog/2016/09/untangling-forget-me-knot...
Since you mention it, I'll make that a separate list item. It's important enough to risk being repetitive about.
I would say the first most important attribute of a password reset scheme is that it not be based on weak secondary passwords like "Mother's maiden name".
The second most important attribute of a password reset scheme is that it be based on a simple lookup of a random token, and not elaborate encryption schemes, since those schemes tend to cough up game-over auth bypass bugs.
The third post important attribute of a password reset scheme is that they be single-use and rigorously invalidated, so that your application isn't spewing hazmat over people's email spools.
https://paragonie.com/blog/2016/09/untangling-forget-me-knot...