Affiliates - Session Fixation
The application did not invalidate a user's session token on logout, so the same session cookie still worked against the account page afterwards. An attacker holding that token could keep making requests as the victim after the victim logged out.
- Triaged in 19 hours
- Fixed in 41 days
- Disclosed after 7 months
Summary by the program
Summary
User can use the same session token after logout. Attacker can repeat request with token that should be marked as invalidated https://affiliates.kromtech.com
Steps to reproduce
Request made after Logout with the same cookie value.
curl -i -s -k -X $'GET' \ -H $'Host: affiliates.kromtech.com' -H $'Cookie: sid=91iqik6qtblp0vsu9b5j7fgal0;' \ -b $'sid=91iqik6qtblp0vsu9b5j7fgal0' \ $'https://affiliates.kromtech.com/account'
The report
SEVERITY: Medium
LOCATION: ● https://affiliates.kromtech.com
ISSUE DESCRIPTION: User can use the same session token after logout. Attacker can repeat request with token that should be marked as invalidated.
PROOF OF VULNERABILITY: Request made after Logout with the same cookie value.
curl -i -s -k -X $'GET'
-H $'Host: affiliates.kromtech.com' -H $'Cookie: sid=91iqik6qtblp0vsu9b5j7fgal0;'
-b $'sid=91iqik6qtblp0vsu9b5j7fgal0'
$'https://affiliates.kromtech.com/account'
RECOMMENDATIONS: The logout function should be prominently visible to the user, explicitly invalidate a user’s session and disallow reuse of the session token. Server should provide new session id to user browser after logout.
Impact
A remote attacker can gain access to victim’s session and perform arbitrary actions with privileges of the user within the compromised session.
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 logout handler only cleared the cookie in the browser and never invalidated the session server-side, so the token stayed valid.
Impact
A remote attacker who obtains the token could gain access to the victim's session and perform arbitrary actions with the user's privileges, even after the victim logs out.
What the attacker needed
Attacker holds a valid session token
The fix
The logout function should explicitly invalidate the user's session server-side and disallow reuse of the session token, issuing a new session id afterwards.
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, the site gives your browser a session token, a secret string that proves who you are. Logging out should make that token useless, but here the server kept accepting it, so anyone who had copied the token could carry on acting as the user.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.