Session works after logout from Shopify account and password of online store is displayed
After logging out of a Shopify Lite Plan account, the session remained valid, allowing access to the store password page. An attacker with access to the session could view the store password and then access the password-protected storefront.
Originally disclosed on HackerOne
- Triaged in 5 days
- Fixed in 24 days
- Paid in 10 days
- Disclosed after 24 days
When a user creates a Shopify Lite Plan account, in the product creation stage when the account has not been upgraded, the store's password is enabled such that any visitor who wants to access the store is required to enter password before being granted access to view the products listed in the online store.
When a logout request has been made and response has been received/displayed that logout is successful, session still works when https://unctify.myshopify.com/accounts/passwords is entered in the browser url address bar; the resulting Shopify page displays the password required to enter the store which is supposed to be visible to only the admin and those who have been sent this password.
Please see the PoC attached.
Impact
Third party can view the listed products and also exploit the user session vulnerability.
Attachments
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 did not invalidate the server-side session, so the session cookie remained valid after logout.
Impact
A third party could view the listed products and exploit the user session vulnerability, as the store password is exposed after logout.
What the attacker needed
Shopify Lite Plan account; Store password enabled; Attacker has access to the session
How it was found
- Create a Shopify Lite Plan account and enable the store password.
- Log out of the account and confirm the logout success message.
- Enter the store's passwords page URL in the browser address bar.
- Observe that the page still loads and displays the store password.
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 out of a website, the site should end your session so that your browser can no longer access private pages. Here, the logout did not properly end the session, so the browser could still open a page that shows the store's password. That password is meant only for the store owner, so anyone who still had the session could see it and then view the store.
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.