Skip to content
Account takeover Disclosed report Intermediate

Issue with remember_user_token

The remember_user_token cookie is not regenerated after logout or when only that cookie is present, so the same token value is reused across sessions. An attacker who obtains a token could potentially reuse it, though the text does not demonstrate an actual exploit.

dawidczagan Follow

Originally disclosed on HackerOne

Bounty$150 View original
  • Triaged in 5 days
  • Fixed in 8 days
  • Paid in 10 days
  • Disclosed after 13 months

When a user logs out, cookie named remember_user_token is invalidated on the user side. When the user log in again with functionality 'remember me for a week', he gets the same value of remember_user_token as previously.

Moreover, when there is only cookie named remember_user_token in request, the user gets the same value of remember_user_token in forthcoming response.

As it can be seen in the aforementioned cases, remember_user_token is not regenerated, what constitutes a weakness in lifecycle of this cookie.

The original report as published on HackerOne, by dawidczagan. 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 does not regenerate the remember_user_token cookie on logout or on new sessions, so the same token persists.

Impact

The reused token could allow an attacker who obtains it to maintain access, but the text does not show a concrete exploit.

What the attacker needed

A user account; ability to log in with 'remember me'; attacker obtains the cookie value

How it was found

  1. Log in with 'remember me for a week' and note the remember_user_token cookie value.
  2. Log out, which invalidates the cookie on the user side.
  3. Log in again with 'remember me for a week' and observe the same cookie value.
  4. Send a request with only the remember_user_token cookie and observe the same value in the response.

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.

A 'remember me' cookie lets a site recognise you without logging in again. This report says the site keeps giving back the same cookie value even after you log out and log in again, instead of making a new one. Reusing the same value is risky because if someone steals it, it may keep working.

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 dawidczagan

View all

9 more disclosed reports, best first.

More from HackerOne

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.