Skip to content
Access control Disclosed report Beginner

Cookies are not cleared from Server side on Logout

The report claims that logging out does not clear the session cookie on the server side, so pressing the browser back button after logout still shows the account as logged in. An attacker who obtains the victim's cookie could reuse it for a long period.

rajauzairabdullah Follow

Originally disclosed on HackerOne

  • Triaged in 6 days
  • Disclosed after 2.8 years

i logged out from my account after using it and then clicked on back i found my account logged in.Cookies are not handled well on logged out.I saw that cookie is not expired. If the hacker gets victim's cookie, the hacker can use it for a pretty good time period.

Best Regardz

RajaUzairAbdullah

@UzaiRaja

The original report as published on HackerOne, by rajauzairabdullah. 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 invalidate the session on logout and the cookie is not expired, so the old session remains valid.

Impact

If an attacker obtains the victim's cookie, they could reuse it for a significant period because logout does not invalidate it.

What the attacker needed

Victim logs out; attacker obtains victim's cookie

The fix

The report implies the cookie should be expired on logout, but gives no fix.

How it was found

  1. Log in to the account and use it.
  2. Log out of the account.
  3. Press the browser back button.
  4. Observe that the account still appears logged in.

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 out of a website, the site should invalidate your session so that old credentials stop working. Here the reporter says the session cookie was not expired, meaning the browser still held a valid key to the account. If someone stole that key, they could keep using the account even after the real owner 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 by rajauzairabdullah

View all

6 more disclosed reports, best first.

More from Mavenlink

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.