Skip to content
Access control Disclosed report Beginner

Session doesn't expired after login

The report claims that a session cookie remains valid after a user logs out, so an attacker who has copied the cookie can log back into the victim's account. The author demonstrates this by logging in, copying the cookie, logging out, and then reusing the copied cookie to regain access.

bains Follow

Originally disclosed on HackerOne

  • Triaged in 3 days
  • Fixed in 4 days
  • Disclosed after 27 days

Hi, I don't know is it a valid vulnerability under your program but I found it. Attacker can use victims cookie to logged in user account again.

Steps

  1. Login as user
  2. Copy cookie you may use http://www.editthiscookie.com addon to edit cookies.
  3. Logged out and delete cookie.
  4. Now as a attacker Paste the copied cookie and see you are logged in into victims account.

If you need more information then I'll make a video as PoC on it.

Thanks Happy to help :)

The original report as published on HackerOne, by bains. 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 token on logout, so the old cookie remains accepted.

What the attacker needed

Attacker already has the victim's cookie; victim has logged out

How it was found

  1. Log in as a normal user.
  2. Copy the session cookie from the browser.
  3. Log out and delete the cookie from the browser.
  4. Paste the copied cookie back into the browser and observe that the session is still active.

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 small piece of data called a cookie to remember that you are logged in. This report says that even after you log out, that cookie still works, so anyone who copied it earlier could use it to get back into your account. The author shows this by copying the cookie, logging out, and pasting the cookie back in to become logged in again.

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 bains

View all

1 more disclosed report, best first.

More from FantasyTote

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.