pentesting, updated
Testing for vulnerable remember password
Check how a "remember me" feature persists login — a weak token here re-opens the account long after the user logged out.
Goal
Confirm the persistent-login token is unguessable, scoped correctly, and actually invalidated on logout.
How to test
Enable “remember me”, then inspect what’s stored:
curl -sI https://example.com/login -c cookies.txt -d "user=test&pass=test&remember=1"
cat cookies.txt # check the persistent cookie's value and expiry
Check whether the token is a predictable value (base64 of username, a weak hash) versus a long random value, and whether logging out actually revokes it server-side.
What to look for
A guessable or reversible remember-me token, an expiry far longer than reasonable, or a token that still works after logout.
References
- OWASP WSTG-ATHN-05 — Testing for Vulnerable Remember Password.