No Session Expiry after log-out, attacker can reuse the old cookies
The Exchange Marketplace did not invalidate session cookies after logout, so an attacker who obtained a victim's old cookies could reuse them to log in as the victim while the victim's session remained active. The report claims this allows full account takeover.
Originally disclosed on HackerOne
- Triaged in 34 hours
- Fixed in 20 months
- Paid in 7 days
- Disclosed after 3.1 years
Summary by the program
A session fixation vulnerability was discovered in Shopify's Exchange Marketplace, a service which has been decommissioned. An attacker with physical access to a shared computer could steal session cookies and authenticate to the Exchange Marketplace as the victim. The service is no longer in use and the issue is resolved.
The report
Hi, There is no session expiry after log-out which can help an attacker to take-over the full account by reusing it.
Reproduction Steps
- Go to https://exchangemarketplace.com/ and click on Sign In
- Continue with Google Account
- Use "EditThisCookie" Extension to export the cookies
- Once you logged in - click on "EditThisCookie" Extension and export the cookies
- Now open another browser and import those cookies - you can able to login an account by using cookies
- Logout from your first browser - it should logout from another browser as well.
- Now, login again with your google account - This time use old cookies.
- By using old cookies, you can able to login victim's account. (Whenever victim's session is active)
Please find the attached POC video ████████
Impact
Attack Scenario: If a malicious user gets the victim's cookies by exploiting any vulnerability, he can log in to victim's account . Whenever the victim's session is active an attacker can login victim's account by using old cookies.
Impact: If a malicious user gets the cookies by exploiting any vulnerability, he can log in to the victim's account.
Context
Exchange Marketplace was a Shopify service, reachable at https://exchangemarketplace.com/. Access to the marketplace was gated behind a sign-in flow that supported Google accounts: a visitor clicked Sign In and continued with their Google identity. The program's summary describes the issue found here as a session fixation vulnerability, and notes that the service has since been decommissioned and the issue resolved.
The behaviour under test is the ordinary lifecycle of an authenticated session: a cookie is issued at login, it identifies the user on subsequent requests, and it should stop being accepted once the user logs out. The report is about the last part of that lifecycle failing.
Setup
- Target:
https://exchangemarketplace.com/. - Account: a Google account used through the "Continue with Google Account" option.
- Tool: the "EditThisCookie" browser extension, used to export cookies from one browser and import them into another.
- Two browsers, so that a session can be moved from one to the other and the logout behaviour observed independently.
- No special role or privilege is needed; the precondition is simply that the victim has an active session.
Finding it
The researcher's claim is stated plainly at the top: there is no session expiry after log-out, which lets an attacker take over the full account by reusing the old cookies. The reasoning is that a cookie captured while the victim is logged in remains valid after the victim logs out, so a copy of that cookie can be replayed later to authenticate as the victim.
The report does not describe how the researcher first noticed the behaviour beyond the reproduction itself, and it does not show any raw HTTP request or response. The evidence offered is the step-by-step procedure plus an attached proof-of-concept video, which is not reproduced here.
Exploitation
Step 1: Open the site and start sign-in
Go to https://exchangemarketplace.com/ and click on Sign In.
This is the entry point to the authentication flow that issues the session cookie under test.
Step 2: Authenticate with Google
Continue with Google Account.
The marketplace delegates identity to Google, and on return it establishes a session for the user. Everything that follows depends on that session cookie.
Step 3: Export the cookies after login
Once logged in, open the "EditThisCookie" extension and export the cookies.
The export produces a copy of the authenticated cookie set. In the researcher's framing this is the artefact an attacker would obtain, for example from a shared computer.
Step 4: Import the cookies into a second browser
Open another browser and import those cookies. According to the report, you can then log in to the account using the cookies.
This confirms that the cookie set alone is sufficient to authenticate: no additional binding to the original browser is enforced.
Step 5: Log out from the first browser
Logout from your first browser. The expectation stated in the report is that it should log out from the other browser as well.
This is the core of the finding. The logout is expected to invalidate the session server-side so that every copy of the cookie stops working.
Step 6: Log in again and replay the old cookies
Now log in again with your Google account, and this time use the old cookies.
By using the old cookies, the report says, you can log in to the victim's account, whenever the victim's session is active.
The condition at the end matters: the replay works while the victim's session is active. The report does not describe what happens to the old cookies once the victim's session ends, and it does not show a server response confirming acceptance of the replayed cookie.
Root cause
The report attributes the behaviour to missing session expiry after logout: the server keeps accepting a cookie that was issued before the logout instead of invalidating it. In practice this means a cookie issued before the logout is still accepted afterwards.
Likely contributing factors, given the flow described, are that the session identifier is not rotated or revoked on logout and that the cookie is not bound to anything the attacker cannot copy. The report does not include server-side detail, so the exact mechanism inside the application is not established by the text.
Impact
The attack scenario given is: if a malicious user gets the victim's cookies by exploiting any vulnerability, they can log in to the victim's account. Whenever the victim's session is active, an attacker can log in to the victim's account using old cookies.
The program's summary frames the realistic case as an attacker with physical access to a shared computer who steals session cookies and authenticates to the Exchange Marketplace as the victim. The impact is therefore full account takeover, but it is conditional: the attacker must first obtain the cookies, and the replay works while the victim's session is active. The report does not claim a way to obtain the cookies on its own; it assumes another vulnerability or local access provides them. The program rated the issue low severity and awarded a 500.00 USD bounty.
Fix
The report itself proposes no remediation. The program states that the service is no longer in use and that the issue is resolved, without describing the change made. The fix implied by the finding is to invalidate the server-side session on logout so that previously issued cookies are rejected, and to rotate the session identifier at authentication boundaries.
Variants to test
- Logout invalidation across sessions: log in twice with the same account in two browsers, log out in one, and replay the cookie from the other. A positive result is the replayed cookie still returning authenticated content.
- Re-login after logout: log out, log in again, then replay the pre-logout cookie. A positive result is the old cookie still mapping to a live session rather than being rejected or rotated.
- Session identifier rotation at login: capture the cookie before and after authentication. A positive result is the same identifier being reused across the authentication boundary.
- Password or credential change: change the account credential and replay an older cookie. A positive result is the old cookie continuing to work, which extends the same missing-invalidation pattern beyond logout.
- Cookie scope and attributes: inspect the exported cookie set for flags and expiry. A positive result is a long-lived session cookie with no server-side revocation path.
Hunting notes
This class of bug hides in logout and session-management code paths, especially where authentication is delegated to an external identity provider and the application keeps its own session alongside it. During recon, the signals are a sign-in flow that hands off to a third party and returns with an application cookie, and any session cookie whose lifetime is long or unspecified. The cheapest test is the two-browser export and import described above, followed by a logout in one browser and a replay in the other.
On impact, the researcher made the case concrete by showing that a copied cookie authenticates a second browser and that logout in the first does not stop it, and by naming the realistic acquisition path, physical access to a shared computer, alongside the assumption of another vulnerability. The program accepted the report as a session fixation issue, rated it low, and paid a bounty, while noting the service was already decommissioned.
What happened, in plain words
Exchange Marketplace was a website run by Shopify. To use it you had to sign in, and one of the ways to sign in was with a Google account. The site has since been shut down, and the problem described here has been resolved.
When you sign in to a website, the site usually gives your browser a small piece of data called a cookie. Think of it like a cloakroom ticket: you hand in your coat, you get a ticket, and from then on you show the ticket to get your coat back. You do not have to prove who you are every time; the ticket does it for you. On a website, the cookie is sent with every request so the server knows which logged-in user is asking.
A cookie like this is a secret. Anyone who copies it can pretend to be you, the same way anyone holding your cloakroom ticket can collect your coat. That is why websites are supposed to cancel the ticket when you log out. Logging out should mean the old cookie stops working everywhere.
The researcher found that on Exchange Marketplace, logging out did not cancel the ticket. A copy of the cookie taken while you were logged in still worked afterwards, as long as the victim's session was active. So someone who got hold of your cookie could use it to get into your account, as long as your own session was still active.
The program's summary calls this a session fixation vulnerability and describes the realistic case as an attacker with physical access to a shared computer who steals the session cookies and signs in to Exchange Marketplace as the victim. The issue was rated low severity and a bounty of 500.00 USD was paid.
Background you need
A few ideas come up again and again below, so here they are from scratch.
Cookie. A small label your browser stores for a website and sends back with each request to that site. After you log in, the site puts a session cookie in your browser, and that cookie is what tells the server "this is the person who logged in a moment ago".
Session. The period during which the site treats you as logged in. The server keeps a record on its side, and the cookie is the reference to that record. When the session ends, the record should be thrown away and the cookie should stop being accepted.
Session expiry and invalidation. Expiry means a session has a limited life. Invalidation means the server actively cancels a session, for example when you press Log out. If logout does not invalidate the session on the server, the cookie keeps pointing at a live record.
Session fixation. A family of bugs where a session identifier (here, the cookie) is not properly renewed or cancelled at the right moments, so an identifier that should be dead can still be used. The program's summary uses this label for the finding.
Account takeover. Getting into someone else's account and acting as them. Here it means using a copied cookie to be treated as the victim.
Browser extension. A small add-on you install in your browser to give it extra features. "EditThisCookie" is one such extension, and it lets you look at, export and import the cookies a site has stored.
Export and import. Export means saving the cookies out of the browser into a file or the clipboard. Import means loading them into another browser so that browser now holds the same cookies.
Identity provider. A service that confirms who you are on behalf of another site. Here Google does that job: the marketplace does not check your password itself, it asks Google, and Google says yes or no. The marketplace then creates its own session for you.
Proof of concept (POC). A demonstration that the bug really works, usually a video or screenshots. The report attaches a POC video, which is not reproduced here.
The setup
Before any testing, the researcher arranged the following:
- Target:
https://exchangemarketplace.com/. - Account: a Google account, used through the "Continue with Google Account" option.
- Tool: the "EditThisCookie" browser extension, used to export cookies from one browser and import them into another.
- Two browsers, so a session can be moved from one to the other and the logout behaviour watched independently.
- No special role or privilege is needed. The only precondition is that the victim has an active session.
Why two browsers? Because the whole question is whether a cookie copied out of one browser keeps working in another after the first one logs out. One browser alone cannot show that.
Finding it
The researcher's claim is stated plainly at the top: there is no session expiry after log-out, which lets an attacker take over the full account by reusing the old cookies. The reasoning is that a cookie captured while the victim is logged in stays valid after the victim logs out, so a copy of that cookie can be replayed later to sign in as the victim.
The report does not describe how the researcher first noticed the behaviour beyond the reproduction itself, and it shows no raw HTTP request or response. The evidence offered is the step-by-step procedure plus an attached proof-of-concept video, which is not reproduced here.
Exploitation, step by step
Step 1: Open the site and start sign-in
Go to https://exchangemarketplace.com/ and click on Sign In.
This is the entrance to the sign-in flow that hands out the session cookie being tested. You have to start here because the cookie only exists once you begin logging in.
Step 2: Authenticate with Google
Continue with Google Account.
The marketplace hands the identity check to Google, and when you come back it creates a session for you. Everything that follows depends on that session cookie, so this step is what makes the rest of the test possible.
Step 3: Export the cookies after login
Once logged in, open the "EditThisCookie" extension and export the cookies.
The export produces a copy of the logged-in cookie set. In the researcher's framing, this copy is the thing an attacker would obtain, for example from a shared computer. You export after logging in, not before, because you want the cookie that carries the logged-in state.
Step 4: Import the cookies into a second browser
Open another browser and import those cookies. According to the report, you can then log in to the account using the cookies.
This checks whether the cookie set alone is enough to be treated as logged in. If the second browser gets in without any password or Google prompt, then the cookie is the only thing the server needs, and nothing ties it to the original browser.
Step 5: Log out from the first browser
Logout from your first browser. The expectation stated in the report is that it should log out from the other browser as well.
This is the heart of the finding. Logging out is supposed to cancel the session on the server, so that every copy of the cookie stops working, including the one sitting in the second browser.
Step 6: Log in again and replay the old cookies
Now log in again with your Google account, and this time use the old cookies.
By using the old cookies, the report says, you can log in to the victim's account, whenever the victim's session is active.
The condition at the end matters: the replay works while the victim's session is active. The report does not describe what happens to the old cookies once the victim's session ends, and it does not show a server response confirming that the replayed cookie was accepted.
Why it happens
The report puts the behaviour down to missing session expiry after logout: the server keeps accepting a cookie issued before the logout instead of cancelling it. In plain terms, a cookie issued before the logout is still accepted afterwards, so any copy of the cookie is still a working key.
Likely contributing factors, given the flow described, are that the session identifier is not renewed or revoked at logout, and that the cookie is not tied to anything the attacker cannot copy. The report contains no server-side detail, so the exact mechanism inside the application is not established by the text.
Impact
The attack scenario given is: if a malicious user gets the victim's cookies by exploiting any vulnerability, they can log in to the victim's account. Whenever the victim's session is active, an attacker can log in to the victim's account using old cookies.
The program's summary frames the realistic case as an attacker with physical access to a shared computer who steals session cookies and signs in to Exchange Marketplace as the victim. The impact is therefore full account takeover, but with conditions: the attacker must first obtain the cookies, and the replay works while the victim's session is active. The report does not claim a way to obtain the cookies on its own; it assumes another vulnerability or local access provides them. The program rated the issue low severity and awarded a 500.00 USD bounty.
Fix
The report itself proposes no remediation. The program states that the service is no longer in use and that the issue is resolved, without describing the change made. The fix implied by the finding is to cancel the server-side session on logout so that previously issued cookies are rejected, and to renew the session identifier at the points where authentication happens.
Variants to test
- Logout invalidation across sessions: log in twice with the same account in two browsers, log out in one, and replay the cookie from the other. A positive result is the replayed cookie still returning logged-in content.
- Re-login after logout: log out, log in again, then replay the pre-logout cookie. A positive result is the old cookie still mapping to a live session rather than being rejected or renewed.
- Session identifier renewal at login: capture the cookie before and after signing in. A positive result is the same identifier being reused across the sign-in boundary.
- Password or credential change: change the account credential and replay an older cookie. A positive result is the old cookie continuing to work, which extends the same missing-invalidation pattern beyond logout.
- Cookie scope and attributes: inspect the exported cookie set for flags and expiry. A positive result is a long-lived session cookie with no way for the server to revoke it.
Hunting notes
This class of bug hides in logout and session-management code paths, especially where sign-in is delegated to an outside identity provider and the application keeps its own session alongside it. During recon, the signals are a sign-in flow that hands off to a third party and comes back with an application cookie, and any session cookie whose lifetime is long or unspecified. The cheapest test is the two-browser export and import described above, followed by a logout in one browser and a replay in the other.
On impact, the researcher made the case concrete by showing that a copied cookie signs in a second browser and that logout in the first does not stop it, and by naming the realistic acquisition path, physical access to a shared computer, alongside the assumption of another vulnerability. The program accepted the report as a session fixation issue, rated it low, and paid a bounty, while noting the service was already decommissioned.
Glossary
- Authentication: proving who you are, for example by signing in with Google.
- Bounty: a reward paid by a company for a valid security report.
- Browser extension: an add-on installed in a browser that adds extra features, such as EditThisCookie.
- Cookie: a small piece of data a website stores in your browser and receives back with each request, often used to remember that you are logged in.
- Credential: something used to prove identity, such as a password.
- EditThisCookie: a browser extension that lets you view, export and import cookies.
- Exchange Marketplace: the Shopify service where people could buy and sell Shopify stores, now shut down.
- Expiry: the point at which something stops being valid, such as a session or a cookie.
- Export: saving cookies out of a browser so they can be used elsewhere.
- Identity provider: a service that confirms your identity on behalf of another site, here Google.
- Impact: the harm a bug could cause if abused.
- Import: loading saved cookies into a browser so it holds the same cookies.
- Invalidation: actively cancelling a session on the server so its cookie stops working.
- Logout: the action of ending your session on a site.
- Physical access: being able to sit at and use a particular computer, for example a shared one.
- POC (proof of concept): a demonstration that a bug really works, often a video.
- Recon: the early stage of looking around a target to understand how it works.
- Replay: sending a copied cookie again later to see whether it is still accepted.
- Request and response: a request is what your browser asks of a server; a response is what the server sends back.
- Root cause: the underlying reason a bug exists.
- Server-side: happening on the website's own computers rather than in your browser.
- Session: the period during which a site treats you as logged in, backed by a record on the server.
- Session fixation: a bug class where a session identifier is not properly renewed or cancelled, so one that should be dead can still be used.
- Session identifier: the value inside a session cookie that the server uses to look up your session.
- Severity: how serious a bug is judged to be, here low.
- Sign-in flow: the sequence of pages and steps you go through to log in.
- Vulnerability: a weakness in a system that can be abused to do something harmful.