HexBrain

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:

  1. Visit https://www.shopify.com/collabs/find-brands and click on "Apply for early access"
  2. Create a new Shopify ID / account
  3. You get redirected to https://collabs.shopify.com/onboarding:
    {F1871170}
  4. Connect your social media account to your profile (e.g. Instagram), edit your content, etc.
  5. You should now be successfully registered (early bird access - waiting list):
    {F1871169}
  6. 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.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original