Weak session validation bug let you login even after changing the session IDs and logging out from the accounts
The session validation was weak: after logging out and clearing cookies, swapping the session IDs between two accounts still allowed login. An attacker with two accounts could reuse a session ID to stay logged in after logout.
{{media:0}}
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could keep a session valid after logout and potentially access an account using a swapped session ID, though the report does not show cross-user access beyond the two test accounts.
What the attacker needed
Two accounts on the target site; ability to capture and replay requests
How it was found
- Create two accounts on the target site.
- Log in with both accounts in different tabs.
- Capture the login requests in Burp and send them to Repeater.
- Log out from both accounts, clear cookies, and quit the browser.
- In Burp, swap the session ID of the first account with the second one and check the response.
- Observe that login succeeds with the first account.
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 write-up has not been written yet. The Original tab links to the source.
A session ID is a secret code a website gives your browser after you log in, so it knows who you are on later requests. Normally, logging out should make that code useless. Here, the site kept accepting old session codes even after logout, and even if you swapped them between two accounts, so someone could keep using a logged-out session.
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.