Forgot Password Best Practices
The Standard Best Practice followed by Gmail and other public websites are as below:
- Ask the username and/or a Custom Security question
- Display a Captcha, after successful verification of username and/or Security Question
- Send a link to the user’s registered email address. The link should have random token associated with it
- The link should be short-lived, one time use only, and SSL enabled.
- Once the user’s resets the password, the link should no longer be usable.
For most applications the above solution should work fine. What the SSL enabled link does is that it never exposes the user’s password to an external entity like Yahoo, Gmail or hotmail, and it never resets the password automatically.
We were brainstorming over this solution, and one of the concerns was that we are putting our trust on an external entity (like a yahoo, gmail or hotmail) to hold the key to reset our account passwords, albeit for a short period of time. For applications that hold critical or sensitive data and that still need to implement a web based forgot password solution, this may not be an acceptable solution.
We came up with a few enhancements to the above standard solution, here is how it goes.
The Plynt Secure Forgot Password Solution
- Provide a publicly available Password Reset page over SSL, which asks for the user ID and 3 non guessable hint questions along with a CAPTCHA.
- After a successful verification, allow the user to choose/enter a 6-character Temporary Authorization Pin/Token
- Email another short lived SSL enabled tokenized URL to the user’s email address.
- On Clicking this tokenized URL, the user should be asked to enter the 6-character Authorization Pin/Token and the new password.
- Expire the tokenized URL and Temporary Authorization Pin/Token
- Notify the user that the password has been changed.
- Force the user to change new password on the first login after resetting the password.
The above solution has all the benefits of the standard solution, in addition to that, we are protecting against a scenario where external entities like gmail, yahoo or hotmail accounts are compromised or data within them are sniffed over the network (traffic over HTTP). We protect this by adding a 6-character Temporary Authorization Pin/Token that the user enters on the web application’s forgot password page, and hence is only known to the user. Without this token, the short lived SSL enabled tokenized URL will not be able to reset the password. Thus we have fulfilled both “What you know” and “What you have” principles of security.
Plynt provides penetration testing and code review services to clients worldwide. If you are interested, please contact us for a quote. We’ll get back to you within one working day.Add yours.closed for this post.
Monthly Archives
- September 2011
- August 2011
- February 2011
- July 2010
- June 2010
- May 2010
- April 2010
- November 2009
- October 2009
- June 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- May 2008
- April 2008
- March 2008
- January 2008
- December 2007
- November 2007
- April 2007
- March 2007
- February 2007
- January 2007
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
Syndication
You can read full entries of Palisade Blog using an RSS reader. Use this link —




