Blog posts atom feed of a store with password protection can be accessed by anyone
A password-protected Shopify store's blog and product data could be accessed via an exposed atom feed without authentication. An attacker could view this data by using a preview URL that did not properly validate its token.
- Triaged in 3 days
- Fixed in 24 days
- Paid in 6 days
- Disclosed after 4 months
Summary by the program
@xenx discovered a way of viewing the blog posts and product details of any online store which had a password page enabled. This was done without the need for any privileges by accessing an exposed atom feed which served blog and product data. The root cause of this was due to the fact that we were not validating the token included in the preview URL allowing for access to these resources. A change was shipped to properly validate the token in the preview URL.
The report
Hi shopify,
###DESCRIPTION
I found a issue with blog posts atom feed of a shopify store. So without password we can't access the blog post atom feed at https://yourstore.myshopify.com/blogs/news.atom . But this can be bypass to access the atom feed of the blog posts.
For example try out this. I have added two blog posts in my store which can't be access through https://testcheckagain.myshopify.com/blogs/news , it will just redirect you to password page or accessing atom feed give you 401 error at https://testcheckagain.myshopify.com/blogs/news.atom. But it can be bypassed to check it at https://dummytext2showpoc-55204085816.shopifypreview.com/blogs/news.atom . So preview link can be exploited to get the atom feed of blog posts of password protected store. It can't be exploited for a partner development store.
###STEPS
- Create a store at shopify.com
- Add a blog post and make it visible.
- If try to check the blog post atom feed in a different machine you will be thrown
401 error. - To bypass this try this link
https://dummytext2showpoc-store_id.shopifypreview.com/blogs/news.atom. - You can the access atom feed
Impact
Disclosing atom feed of blog posts of password protected store
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 preview URL's token was not validated, allowing access to the atom feed of a password-protected store.
Impact
An attacker could disclose the atom feed of blog posts and product details from a password-protected store, but this did not work for partner development stores.
What the attacker needed
A Shopify store with password protection enabled
The fix
A change was shipped to properly validate the token in the preview URL.
How it was found
- Create a store at shopify.com
- Add a blog post and make it visible
- Try to access the blog post atom feed from a different machine and get a 401 error
- Use the preview link with the store ID to access the atom feed
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.
A store owner can put a password on their shop to keep it private. However, the shop also had a special feed (like an RSS feed) that lists blog posts and products. The check that was supposed to stop people from seeing that feed was flawed, so anyone could read it by using a special preview link.
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.