pentesting, updated
Testing for weak password change or reset functionalities
Check the reset token's strength, expiry, binding to the right user, and whether the old password is invalidated.
Goal
Confirm the reset flow can’t be hijacked to take over someone else’s account.
How to test
Walk the reset flow and check each property of the token:
curl -s https://example.com/reset-password -d "token=<captured-token>&password=NewPass123!"
- Is the token long and random, or predictable (sequential, timestamp-based, short numeric OTP with no rate limit)?
- Does it expire quickly, and is it single-use?
- Does the reset link/token leak via referrer if it’s in the URL?
- Are all other sessions invalidated after a successful reset?
What to look for
A predictable or long-lived token, a token usable more than once, or old sessions surviving a password reset.
References
- OWASP WSTG-ATHN-09 — Testing for Weak Password Change or Reset Functionalities.