HexBrain

Shopify · Report #1162443

No Session Expiry after log-out, attacker can reuse the old cookies

Validstatus
lowseverity
$500bounty
87upvotes
1 May 2024disclosed

Summary

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.

How it was found

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

  1. Go to https://exchangemarketplace.com/ and click on Sign In
  2. Continue with Google Account
  3. Use "EditThisCookie" Extension to export the cookies
  4. Once you logged in - click on "EditThisCookie" Extension and export the cookies
  5. Now open another browser and import those cookies - you can able to login an account by using cookies
  6. Logout from your first browser - it should logout from another browser as well.
  7. Now, login again with your google account - This time use old cookies.
  8. 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.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original