Skip to content
Access control Disclosed report Beginner

Session Management

HackerOne does not invalidate session cookies on the server when a user signs out, and old cookies remain valid after a new login. An attacker who obtains a previously used session cookie could reuse it to access the user's account.

javidhussain21 Follow

Originally disclosed on HackerOne

  • Triaged in 6 hours
  • Fixed in 15 days
  • Paid in 22 days
  • Disclosed after 5 months

Hackerone fails to expire the session cookie from the server side even when the user logs off upon clicking "Sign-Out" from the application. The cookie is cleared from the client side (browser), but is not cleared from the server side. If reused, it provides access to the user's account. Upon logging in again, a new session cookie is created, but the old session cookies still stay active on the server side. Therefore, any session cookie can be reused to gain access to the user's account.

The original report as published on HackerOne, by javidhussain21. 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 server does not maintain or check a list of invalidated sessions, so it continues to accept old session cookies after logout and after new logins.

Impact

A stolen or leaked session cookie could be reused to access the user's account even after logout, though the report does not show a full attack chain.

What the attacker needed

Attacker obtains a valid session cookie

The fix

The server should invalidate the session on logout and expire old sessions when a new one is created.

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 log in to a website, the site gives your browser a session cookie, which acts like a temporary key to your account. This report says that when you click sign out, the website only deletes the key from your browser but keeps it valid on its own servers. If someone had copied that key earlier, they could still use it to get into your account even after you thought you had logged out.

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