Improper session management
When a request with an invalid authenticity token is sent, the user is logged out and given a new unauthenticated session cookie, but the old authenticated session cookie remains valid. An attacker who obtains that old cookie could continue to use the account even after the user is logged out.
Originally disclosed on HackerOne
- Triaged in 34 hours
- Fixed in 4 days
- Paid in 4 days
- Disclosed after 34 days
When a request with an invalid authenticity_token is received, the user is logged out (tested for updating user's profile, which is available here: https://hackerone.com/diekatze/profile/edit) and the user receives a new session cookie, which is not authenticated at this point. However, the authenticated session cookie used by a user before logging out is still active.
Regards, Dawid Czagan
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 issues a new session cookie on logout but does not invalidate the previous authenticated session on the server.
What the attacker needed
Attacker obtains the victim's session cookie
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 session cookie is a small piece of data a website gives your browser so it remembers you are logged in. This report says that when the site logs you out because of a bad security token, it does not actually cancel the old cookie, so anyone who copied that cookie could still act as you.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.