Shopify · Report #1672459
Cross-site scripting on api.collabs.shopify.com
Validstatus
mediumseverity
$1,600bounty
51upvotes
13 Oct 2022disclosed
How it was found
Summary:
Shopify collabs (collabs.shopify.com) is a new platform for content creators / influencers to discover and advertise the millions of brands of Shopify. The content creators can apply for different brands on this platform and get paid (affiliate marketing). I discovered a cross-site scripting vulnerability on this quite new domain.
Steps To Reproduce:
- Visit https://www.shopify.com/collabs/find-brands and click on "Apply for early access"
- Create a new Shopify ID / account
- You get redirected to https://collabs.shopify.com/onboarding:
{F1871170} - Connect your social media account to your profile (e.g. Instagram), edit your content, etc.
- You should now be successfully registered (early bird access - waiting list):
{F1871169} - As you are logged in, open the URL
https://api.collabs.shopify.com/creator/auth/login?creator_redirect=javascript:alert(document.domain)and you will see that the JavaScript has triggered:
{F1871171}
Supporting Material:
[list any additional material (e.g. screenshots, video, etc)]
- [attachment / reference]
Impact
- Execution of JavaScript code in the victim's browser => Execution of any future API functions of api.collabs.shopify.com in the name of the victim
- Exfiltration of confidential data
- etc.