Skip to content
Account takeover Disclosed report Beginner

Invalidate session after password reset - hosted website

The hosted website did not invalidate a user's session after a password reset, contrary to OWASP guidance.

pavanw3b Follow

Originally disclosed on HackerOne

  • Disclosed after 2 months

Hey team,

The Hosted Website doesn't invalidate session after the password is reset. It's one of the OWASP recommendations to terminate the session when a password is changed and force the user to re-login.

Quote from OWASP:

Renew the Session ID After Any Privilege Level Change The session ID must be renewed or regenerated by the web application after any privilege level change within the associated user session.. Other common scenarios must also be considered, such as password changes Source: https://www.owasp.org/index.php/Session_Management_Cheat_Sheet#Renew_the_Session_ID_After_Any_Privilege_Level_Change

Steps to reproduce:

Suggested Fix:

When the password is reset, force logout the user and redirect to login page with a message.

Some hackerone examples: https://hackerone.com/reports/15785 https://hackerone.com/reports/15852

The original report as published on HackerOne, by pavanw3b. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application did not regenerate or invalidate the session identifier after a password reset.

What the attacker needed

A valid user account

The fix

When the password is reset, the application should force logout the user and redirect to the login page with a message.

How it was found

  1. Log on to the password reset page.
  2. Request a password reset.
  3. Click the email link received.
  4. Change the password and notice the session is not reset.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When you change your password, the website should make you log in again. Here, it did not, so the old session stayed active.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More by pavanw3b

View all

8 more disclosed reports, best first.

More from Weblate

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.