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.
Originally disclosed on HackerOne
- 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.
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
- Log in with 'remember me for a week' and note the remember_user_token cookie value.
- Log out, which invalidates the cookie on the user side.
- Log in again with 'remember me for a week' and observe the same cookie value.
- 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.