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.
- 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
- Login as user
- Copy cookie you may use http://www.editthiscookie.com addon to edit cookies.
- Logged out and delete cookie.
- 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 :)
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
- Log in as a normal user.
- Copy the session cookie from the browser.
- Log out and delete the cookie from the browser.
- 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.