Replaying Burp Suite Requests After Logout: A Session Management
The application accepted a previously captured authenticated request even after the user had logged out, allowing the request to be replayed hours later and the action (sending a message) to be performed. An attacker who obtained such a request could replay sensitive actions after logout.
Published on medium.com
During a security assessment of a web application, I discovered a vulnerability that allowed authenticated requests to remain valid even after the user had logged out. This issue could enable attackers to replay previously captured requests and perform actions on behalf of a user despite the session supposedly being…
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
Root cause
Likely the server did not invalidate the session token on logout or re-check authentication state for each request, so old requests remained valid.
Impact
An attacker who obtains a valid authenticated request could replay sensitive actions after logout, such as sending unauthorized messages or repeating transactions, potentially leading to fraud or abuse.
What the attacker needed
Attacker obtains a captured authenticated request; victim has logged out
The fix
The application should properly invalidate server-side sessions on logout and reject requests associated with terminated sessions.
How it was found
- Log in to the application.
- Navigate to the messaging functionality.
- Intercept a 'Send Message' request using Burp Suite.
- Forward the request and confirm that the message is sent.
- Log out of the application.
- Wait for several hours, then replay the captured request and observe a 200 OK response.
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.
When you log out of a website, you expect the server to stop trusting your old session. Here, the server kept accepting a request that was captured before logout, so anyone who had a copy of that request could still make the website do things as if you were logged in.
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.