[CSRF] Install premium themes
A premium theme demo URL installed the theme when visited directly, without checking the authenticity token the button flow uses. The text does not show an attacker luring a victim.
Originally disclosed on HackerOne
- Triaged in 17 hours
- Fixed in 8 months
- Paid in 8 months
- Disclosed after 8 months
Hi , I have found a CSRF issue in themes.shopify.com when installing premium themes.
#Details:
When going to a premium theme page for example: https://themes.shopify.com/themes/editions/styles/light/ there is a button saying Preview in your store , clicking that button sends a POST request to https://themes.shopify.com/themes/editions/styles/light/demo with an authenticity token to prevent CSRF , but going to the url https://themes.shopify.com/themes/editions/styles/light/demo directly will get the theme installed without any validation for the authenticity token.
#Steps to reproduce:
- Go to themes.myshopify.com then login with your store
- Go to https://themes.shopify.com/themes/editions/styles/light/demo and the theme
editionswill be installed in your shop - To confirm go to
https://<your_store>.myshopify.com/admin/themesand you'll see the theme installed there.
Thanks
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 demo endpoint performed the install on a plain navigation without verifying the authenticity token that the button-driven POST request carried.
Impact
An attacker could cause a premium theme to be installed on a victim's store without their consent, though the text does not show any further harm beyond the unwanted install.
What the attacker needed
Victim is logged in to the theme store; victim visits the crafted URL
The fix
The install endpoint should verify the authenticity token for direct requests as well as the button-driven POST.
How it was found
- Log in to the theme store with a store account.
- Visit the theme's demo URL directly.
- Check the store admin themes page to confirm the theme was installed.
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.
Websites often use a hidden token to prove a request came from their own page, so another site cannot trigger actions for you. Here the install action could be triggered just by visiting a link, so a logged-in store owner could have a theme added to their shop without meaning to.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.