This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org

Difference between revisions of "Testing for weak password change or reset functionalities (OTG-AUTHN-009)"

From OWASP
Jump to: navigation, search
Line 4: Line 4:
 
== Summary ==
 
== Summary ==
  
 
+
The password change/reset function of an application is a self-service password change/reset mechanism for users. This self-service mechanism allows users to quickly change/reset their password without an administrator intervening. When passwords are changed they are typically changed within the application. When passwords are reset they are either rendered within the application or emailed to the user. This may indicate that the passwords are stored in plaintext.
  
 
== Test objectives ==
 
== Test objectives ==

Revision as of 15:54, 6 November 2013

This article is part of the new OWASP Testing Guide v4.
Back to the OWASP Testing Guide v4 ToC: https://www.owasp.org/index.php/OWASP_Testing_Guide_v4_Table_of_Contents Back to the OWASP Testing Guide Project: https://www.owasp.org/index.php/OWASP_Testing_Project


Summary

The password change/reset function of an application is a self-service password change/reset mechanism for users. This self-service mechanism allows users to quickly change/reset their password without an administrator intervening. When passwords are changed they are typically changed within the application. When passwords are reset they are either rendered within the application or emailed to the user. This may indicate that the passwords are stored in plaintext.

Test objectives

Determine the resistance of the application to subversion of the account change process allowing someone to change the password of an account.

Determine the resistance of reset passwords to guessing.

How to test

This test case aligns closely with OTG-AUTHN-007 - Testing for Weak Password Policy

  1. Can users other than administrators access change/reset passwords for accounts other than their own?
  2. Can users manipulate/subvert the password change/reset process to change/reset the password of another user or administrator?
  3. Is the password change/reset process vulnerable to CSRF?
  4. Are reset passwords generated randomly or using an algorithm the can be derived?
  5. How are reset passwords communicated to the user?

Example

Tools

References

Remediation

The password change/reset function is a sensitive function and requires some form of protection, such as requiring users to re-authenticate or presenting the user with confirmation dialogs during the process.