Skip to content
Access control Disclosed report Intermediate

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.

dawidczagan Follow

Originally disclosed on HackerOne

Bounty$100 View original
  • 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

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 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.

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.

Broken access control

The lesson behind this report.

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.