Skip to content
CSRF Disclosed report Beginner

[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.

Mahmoud Gamal Follow

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:

  1. Go to themes.myshopify.com then login with your store
  2. Go to https://themes.shopify.com/themes/editions/styles/light/demo and the theme editions will be installed in your shop
  3. To confirm go to https://<your_store>.myshopify.com/admin/themes and you'll see the theme installed there.

Thanks

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

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

  1. Log in to the theme store with a store account.
  2. Visit the theme's demo URL directly.
  3. 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.

More by Mahmoud Gamal

View all

32 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.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.