Six Password Reset Vulnerabilities and How to Prevent Them

https://hackernoon.imgix.net/images/rTWUJruTtNPLEFdAVVbytdGa5uJ2-bt82bvb.png

This is an example, not a report from a customer. Imagine a support inbox: someone never asked for a password reset, but they received a "your password was changed" email, and now their login no longer works. Their old password was long and unique. Nobody guessed it.

Nobody needed to. A reset flow is a way into an account without the current password, by design. A valid reset link may let whoever holds it set a new password. Whether that is enough to take the account depends on other controls: a second factor at the reset step, a prompt to re-authenticate, a notification the real owner sees in time, session invalidation after the change, or a token that has already expired or been used.

OWASP calls this functionality "a common source of vulnerabilities" even though it "looks straightforward and easy to implement" (OWASP Forgot Password Cheat Sheet). The...

Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE