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.
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
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
- Log in to the account and use it.
- Log out of the account.
- Press the browser back button.
- 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.