Skip to content
Access control Disclosed report Beginner

Session Persistence Designed to Keep Users Logged In Across Multiple Devices (Intended Behaviour)

After logging out, the session cookie remained valid server-side, so an attacker who had copied the cookie before logout could reuse it to regain access to the account. The program judged this to be intended behaviour for multi-device convenience and not a vulnerability.

naveenventure Follow

Originally disclosed on HackerOne

Informational View original
  • Disclosed after 3 months

Summary by the program

This report identified a session management behavior in Shopify where, after logging out, the session associated with a user is not immediately invalidated on the server side. The researcher demonstrated the ability to reuse session cookies after logout, potentially allowing an attacker to regain access to the account if they possess the session cookie prior to logout.

The concern raised was that this behavior could enable an attacker to take over a Shopify account using old cookies if they exploit another vulnerability to obtain them. However, Shopify's review concluded that this is a common authentication pattern that allows users to remain logged in across multiple devices for convenience.

Shopify provides a "Log out of all devices" feature for users who wish to terminate all sessions actively. The behavior was judged to be intentional and not a security vulnerability, reinforcing that users have control over their session management. Consequently, the report was classified as Informative, as the findings did not demonstrate an exploitable security issue or direct impact on the confidentiality, integrity, or availability of user accounts.

The report

Summary:

Hi,

After logging out of the application, the session associated with the user is not invalidated server-side. An attacker with access to the session cookie prior to logout can reuse the same cookie to re-authenticate, effectively bypassing the logout process and regaining access to the account.

Steps To Reproduce:

1.Navigate to the url:- https://themes.shopify.com/ 2.Click on login and login with your shopify account 3.After Successful login click on the "cookie editor extension" and export(or)copy the cookies 4.Then logout the session 5.After logout , Open "Cookie EDITOR Extension" and import the cookies 5.Refresh the browser that's it 6.By using old cookies, you can able to login the account.

Here you can notice i am using old/expired cookies to access the account

##References:-

https://hackerone.com/reports/1162443

Impact

Summary:

Attacker can able to takeover full shopify account by using old cookies of the victim

##Impact: If a malicious user gets the cookies by exploiting any vulnerability, he can log in to the victim's account.

Thank You,

Kind Regards, -naveenventure.

The original report as published on HackerOne, by naveenventure. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 6 min read.

Context

The target is Shopify, specifically the theme store at https://themes.shopify.com/, which is part of the *.shopify.com asset scope. The feature under examination is ordinary session handling: a user signs in with a Shopify account, receives session cookies, and later logs out.

What the researcher set out to show is that logging out does not invalidate the session on the server side. The cookie that was issued before logout continues to be accepted afterwards, so anyone who holds a copy of that cookie can present it again and be treated as the logged-in user.

Shopify's own summary of the outcome is that the behaviour is a deliberate authentication pattern. Keeping a session valid after a logout on one device is what lets a user stay signed in on their other devices. For users who want to end every session, Shopify provides a "Log out of all devices" feature. The report was classified as Informative, because the finding did not demonstrate an exploitable issue or an impact on confidentiality, integrity or availability on its own.

Setup

No special accounts, roles or server-side tooling are described. The preconditions are minimal:

  1. A Shopify account that can sign in to the theme store.
  2. A browser with a cookie editor extension installed, used to export and later import cookies.
  3. The ability to log out and back in on the same browser.

The researcher does not record browser, extension or application versions.

Finding it

The observation is simple. After a normal logout, the session cookie that was captured before logout is still accepted by the server. The researcher's summary states the point directly: the session associated with the user is not invalidated server-side, so an attacker who has access to the session cookie from before the logout can reuse it to re-authenticate, bypassing the logout and regaining access to the account.

Why it looks wrong is the expectation that logout terminates the session. If the server keeps the session record alive, then the only thing that ends a user's access is the client discarding the cookie. Anyone who kept a copy, whether the user, a shared machine, a backup, or an attacker, can replay it.

Exploitation

The reproduction is entirely manual and uses the cookie editor extension as the mechanism for saving and restoring the cookie jar. The steps are reproduced below as the researcher wrote them.

Step 1: Open the theme store

Text
https://themes.shopify.com/

This is the entry point to the application under test.

Step 2: Sign in

Click login and authenticate with a Shopify account. A successful login establishes the session and sets the cookies that will later be replayed.

Step 3: Export the cookies

After a successful login, open the cookie editor extension and export or copy the cookies. This snapshot is the artefact that will be replayed after logout.

Step 4: Log out

Log out of the session through the normal logout action.

Step 5: Import the cookies

After logout, open the cookie editor extension again and import the previously exported cookies, restoring the pre-logout state of the cookie jar.

Step 6: Refresh

Refresh the browser. The researcher reports that the account is accessible again using the old cookies, and notes explicitly that old or expired cookies are being used to reach the account.

The report contains no HTTP requests, responses, headers or cookie values, so there is nothing further to quote. The evidence is the described sequence and the stated result: the replayed cookie is accepted and the session is restored.

Root cause

The design keeps the server-side session valid after a logout performed on one client. Logout therefore removes the cookie from the browser but does not revoke the session record on the server, so the credential remains usable until it expires or is explicitly terminated. The report does not describe the session store or the logout handler, so the exact mechanism is not shown.

Existing defences did not stop it because there was nothing to stop: the pattern is intentional. Shopify's position is that this is a common authentication pattern that supports staying logged in across multiple devices, and that the "Log out of all devices" feature gives users an active way to terminate all sessions.

Impact

The researcher's stated impact is account takeover: an attacker who obtains the victim's cookies by exploiting some other vulnerability can sign in to the victim's account using those old cookies. The condition is explicit and important. The cookie must already be in the attacker's hands before the victim logs out; this finding does not provide a way to obtain it. The report does not describe any such acquisition vulnerability, and the program's review concluded that no exploitable security issue or direct impact on confidentiality, integrity or availability was demonstrated.

The consequence is that a session cookie captured before logout remains usable after the victim logs out.

Fix

No fix was made, because the behaviour was judged intentional. Shopify provides a "Log out of all devices" feature for users who wish to terminate all sessions actively.

Variants to test

These are directions suggested by the finding, not things the report itself tested:

  1. Logout on one device, replay on another. Capture the cookie, log out in a second browser or device, then replay the captured cookie. A positive result is that the replayed cookie still authenticates.
  2. Logout followed by password change. Capture the cookie, log out, change the account password, then replay. A positive result is that the old session still works after a credential change, which is a stronger signal than logout alone.
  3. "Log out of all devices" as the control. Perform the same replay after using the all-devices logout.
  4. Session identifier rotation. Compare the session cookie value before and after login and after logout. A positive result for a weakness is an identifier that does not change at authentication or that remains valid after logout.
  5. Other Shopify surfaces in scope. The same replay test on other *.shopify.com applications, since session handling may differ between them.

Hunting notes

This kind of behaviour hides in the gap between what users expect from a logout button and what the server actually does. It is most likely to appear in multi-device products where staying signed in is a feature, and in applications with a separate "log out everywhere" control, since the existence of that control often implies that ordinary logout is deliberately non-revoking.

Signals during recon are indirect: a logout that returns a redirect without any server-side state change visible in subsequent requests, a session cookie whose value is unchanged across login and logout, and documentation or UI that distinguishes between logging out and ending all sessions. None of these prove the issue, but each is a reason to run the replay test.

On impact, the report is a useful lesson in framing. The researcher demonstrated the replay clearly but could not show how an attacker would obtain the cookie, and the program treated the behaviour as intended and closed it as Informative. To get past that bar, a report of this shape needs either a concrete path to the cookie or a demonstration that the behaviour breaks an explicit security promise, such as a session that survives the all-devices logout or a password change. The report does not contain such a demonstration.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 10 min read.

What happened, in plain words

A security researcher reported that on Shopify's theme store, logging out of your account does not actually end your session on Shopify's servers. If someone had a copy of your session cookie from before you logged out, they could put that cookie back into a browser and be treated as you again. The researcher called this a session fixation weakness.

Shopify reviewed the report and said the behaviour is intentional. Keeping a session alive after you log out on one device is what lets you stay signed in on your other devices. For people who want to end every session, Shopify offers a "Log out of all devices" button. The report was classified as Informative, because on its own it did not show a way for an attacker to get the cookie or any direct harm to the account.

This article walks through the report step by step, explaining every term as it comes up.

Context

The target is Shopify, and specifically its theme store at https://themes.shopify.com/. That site is part of the wider *.shopify.com scope, meaning any subdomain of shopify.com that the bug bounty program covers. The feature being examined is ordinary session handling: you sign in with a Shopify account, the site gives your browser some session cookies, and later you log out.

A cookie is a small piece of text that a website asks your browser to store and send back with every request to that site. Think of it like a cloakroom ticket: the website hands you a ticket, and when you come back and show it, the website knows which coat is yours. A session cookie is a cookie that identifies your logged-in session, so the server knows you are you without asking for your password on every page.

A session is the period during which the server remembers that you are signed in. The server keeps a record (often called a session record) that links a session identifier (the value inside the cookie) to your account. When you log out, you would normally expect the server to delete or invalidate that record, so the cookie becomes useless.

The researcher set out to show that logging out does not invalidate the session on the server side. The cookie issued before logout is still accepted afterwards. Anyone who holds a copy of that cookie can present it again and be treated as the logged-in user. Session fixation is a class of problem where an attacker can make a session identifier stay valid or be reused in a way that lets them take over a session. Here the concern is reuse of an old session cookie after logout.

Shopify's own summary of the outcome is that this is a deliberate authentication pattern. Keeping a session valid after a logout on one device is what lets a user stay signed in on their other devices. For users who want to end every session, Shopify provides a "Log out of all devices" feature. The report was closed as Informative, with no bounty and no CVSS score, because the finding did not demonstrate an exploitable issue or an impact on confidentiality, integrity or availability on its own. Confidentiality, integrity and availability are the three classic goals of security: keeping data secret, keeping data correct, and keeping services usable. A finding that does not affect any of them is usually not treated as a vulnerability.

Setup

No special accounts, roles or server-side tooling are described. The preconditions are minimal:

  1. A Shopify account that can sign in to the theme store.
  2. A browser with a cookie editor extension installed, used to export and later import cookies. A cookie editor extension is a browser add-on that lets you view, copy, save and restore the cookies stored for a site, like a tool that lets you take the cloakroom ticket out of your pocket, photocopy it, and put the copy back later.
  3. The ability to log out and back in on the same browser.

The researcher does not record browser, extension or application versions. Scoped here means which domain and paths a cookie is sent to; lifetime means when the cookie expires.

Finding it

The observation is simple. After a normal logout, the session cookie that was captured before logout is still accepted by the server. The researcher's summary states the point directly: the session associated with the user is not invalidated server-side, so an attacker who has access to the session cookie from before the logout can reuse it to re-authenticate, bypassing the logout and regaining access to the account.

Why it looks wrong is the expectation that logout terminates the session. If the server keeps the session record alive, then the only thing that ends a user's access is the client discarding the cookie. Anyone who kept a copy, whether the user, a shared machine, a backup, or an attacker, can replay it. Replay means sending an old credential again as if it were fresh.

Exploitation

The reproduction is entirely manual and uses the cookie editor extension as the mechanism for saving and restoring the cookie jar. The cookie jar is simply the collection of cookies your browser holds for a site. The steps are reproduced below as the researcher wrote them.

Step 1: Open the theme store

Text
https://themes.shopify.com/

This is the entry point to the application under test. Opening this URL loads the theme store in your browser, the same way you would visit any website.

Step 2: Sign in

Click login and authenticate with a Shopify account. A successful login establishes the session and sets the cookies that will later be replayed. In plain terms, you prove who you are with your username and password, and the server hands your browser the session cookie that acts as your proof of login for subsequent requests.

Step 3: Export the cookies

After a successful login, open the cookie editor extension and export or copy the cookies. This snapshot is the artefact that will be replayed after logout. Think of it as photocopying your cloakroom ticket before handing the original back.

Step 4: Log out

Log out of the session through the normal logout action. This is the action whose effect is being tested: does the server forget the session, or does it only tell the browser to drop the cookie?

Step 5: Import the cookies

After logout, open the cookie editor extension again and import the previously exported cookies, restoring the pre-logout state of the cookie jar. This puts the photocopied ticket back into your pocket.

Step 6: Refresh

Refresh the browser. The researcher reports that the account is accessible again using the old cookies, and notes explicitly that old or expired cookies are being used to reach the account. If the server had truly invalidated the session at logout, the old cookie would be rejected and you would be asked to sign in again.

The report contains no HTTP requests, responses, headers or cookie values, so there is nothing further to quote. The evidence is the described sequence and the stated result: the replayed cookie is accepted and the session is restored.

Root cause

The design keeps the server-side session valid after a logout performed on one client. Logout therefore removes the cookie from the browser but does not revoke the session record on the server, so the credential remains usable until it expires or is explicitly terminated. Revoke means to cancel or withdraw something, like cancelling a ticket so it cannot be used again. The report does not describe the session store or the logout handler, so the exact mechanism is not shown. Client-side means the action happens only in your browser; server-side means it happens on the website's computers.

Existing defences did not stop it because there was nothing to stop: the pattern is intentional. Shopify's position is that this is a common authentication pattern that supports staying logged in across multiple devices, and that the "Log out of all devices" feature gives users an active way to terminate all sessions.

Impact

The researcher's stated impact is account takeover: an attacker who obtains the victim's cookies by exploiting some other vulnerability can sign in to the victim's account using those old cookies. The condition is explicit and important. The cookie must already be in the attacker's hands before the victim logs out; this finding does not provide a way to obtain it.

The consequence is that a session cookie captured before logout remains usable after the victim logs out.

Fix

No fix was made, because the behaviour was judged intentional. Shopify provides a "Log out of all devices" feature for users who wish to terminate all sessions actively.

Variants to test

These are directions suggested by the finding, not things the report itself tested:

  1. Logout on one device, replay on another. Capture the cookie, log out in a second browser or device, then replay the captured cookie. A positive result is that the replayed cookie still authenticates.
  2. Logout followed by password change. Capture the cookie, log out, change the account password, then replay. A positive result is that the old session still works after a credential change, which is a stronger signal than logout alone.
  3. "Log out of all devices" as the control. Perform the same replay after using the all-devices logout.
  4. Session identifier rotation. Compare the session cookie value before and after login and after logout. A positive result for a weakness is an identifier that does not change at authentication or that remains valid after logout. Rotation means changing the identifier at key moments, like getting a new ticket after showing your ID.
  5. Other Shopify surfaces in scope. The same replay test on other *.shopify.com applications, since session handling may differ between them.

Hunting notes

This kind of behaviour hides in the gap between what users expect from a logout button and what the server actually does. It is most likely to appear in multi-device products where staying signed in is a feature, and in applications with a separate "log out everywhere" control, since the existence of that control often implies that ordinary logout is deliberately non-revoking.

Signals during recon are indirect: a logout that returns a redirect without any server-side state change visible in subsequent requests, a session cookie whose value is unchanged across login and logout, and documentation or UI that distinguishes between logging out and ending all sessions. Recon (reconnaissance) is the early phase of looking around a target to understand how it works. None of these prove the issue, but each is a reason to run the replay test.

On impact, the report is a useful lesson in framing. The researcher demonstrated the replay clearly but could not show how an attacker would obtain the cookie, and the program treated the behaviour as intended and closed it as Informative. To get past that bar, a report of this shape needs either a concrete path to the cookie or a demonstration that the behaviour breaks an explicit security promise, such as a session that survives the all-devices logout or a password change. The report does not contain such a demonstration.

Glossary

  • Cookie: a small piece of text a website asks your browser to store and send back with requests to that site.
  • Session: the period during which a website remembers you are signed in.
  • Session cookie: a cookie that identifies your logged-in session to the server.
  • Session fixation: a weakness where a session identifier can be reused or kept valid in a way that lets an attacker take over a session.
  • Session identifier: the value inside a session cookie that the server uses to look up your session.
  • Server-side: happening on the website's computers, not just in your browser.
  • Client-side: happening only in your browser.
  • Cookie editor extension: a browser add-on that lets you view, copy, save and restore cookies for a site.
  • Cookie jar: the collection of cookies your browser holds for a site.
  • Replay: sending an old credential again as if it were fresh.
  • Revoke: to cancel or withdraw something so it can no longer be used.
  • Rotation: changing a value, such as a session identifier, at key moments.
  • Scoped: which domain and paths a cookie is sent to.
  • Lifetime: how long a cookie remains valid before it expires.
  • Confidentiality: keeping data secret from those not allowed to see it.
  • Integrity: keeping data correct and unaltered by unauthorised parties.
  • Availability: keeping services usable when needed.
  • CVSS: a scoring system for the severity of security vulnerabilities.
  • Informative: a report status meaning the finding did not demonstrate a security vulnerability.
  • Recon: reconnaissance, the early phase of exploring a target to understand how it works.
  • API: a way for software to talk to other software, like a waiter taking your order to the kitchen.
  • Token: a piece of data used as proof of identity or permission, similar to a ticket.

More by naveenventure

View all

3 more disclosed reports, best first.

More from Shopify

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.