Skip to content
Business logic Disclosed report Intermediate

Add store to new partner account without confirming email address.

An unconfirmed partner account could obtain a signup token from the partners site and use it to create a development store on the app site, bypassing the email confirmation requirement. This let an attacker create stores without verifying their email address.

jmp_35p Follow

Originally disclosed on HackerOne

  • Triaged in 42 hours
  • Fixed in 32 days
  • Disclosed after 6 months

Details When a someone signs up for a new account on partners.shopify.com they are asked to confirm their email address before they can do anything and by anything I mean add stores, invite members, use affiliate tools and so on. Apparently they can leverage an issue on partners.shopify.com to create stores on app.shopify.com without confirming their email address.

Setup

  1. A new test account on partners.shopify.com.
  2. Don't confirm email after signing up.
  3. A partner account ID - say 1234
  4. Shop name - say attacker

Step to reproduce.

  1. While logged in send the following to the server to obtain an access token

GET /1234/stores/signup_object/dev_store Host: partners.shopify.com 2. You should get a request similar to {"extra":{"affiliate_shop":"eyJfcmFpbHMiOnsibWVzc2FnZSI6ImV5SndiR0Z1WDNOd1pXTWlPbn....."},"signup_source":"development shop","signup_types":["affiliate_shop"],"previous_page":"https://partners.shopify.com/1234/stores"} 3. Finally, to create the shop, do the following:

POST /services/signup/create HTTP/1.1 Host: app.shopify.com .... <snipped> .... _orig_referrer=https%3A%2F%2Fpartners.shopify.com%2F1234%2Fstores%2Fnew%3Fstore_type%3Ddev_store _y=&ref=&ssid=&source=&source_url=&signup_code=&signup_source=development+shop&signup_source_details=build_store_for_client&forwarded_host=&signup_page=&signup_locale=&signup%5Bshop_name%5D=attacker&signup%5Bsubdomain%5D=&signup%5Bfirst_name%5D=&signup%5Blast_name%5D=&signup%5Bemail%5D=attacker%40domain.com&signup%5Bpassword%5D={shop-password-here}&signup%5Bconfirm_password%5D={shop_password_here}signup%5Baddress1%5D=Beverly+Hills&signup%5Bcity%5D=Los+Angeles&signup%5Bprovince%5D=CA&signup%5Bzip%5D=90210&signup%5Bcountry%5D=US&signup%5Bphone%5D=&signup%5Bpos%5D=&signup%5Bextra%5D%5Baffiliate_shop%5D={access_token_here}&signup%5Bextra%5D%5Borganization_id%5D=1234&signup%5Bextra%5D%5Bpartner_test_shop%5D=&signup%5Bsignup_types%5D%5B%5D=affiliate_shop

Note: Every occurrence of "1234" should be replaced with the partner account ID created above. In case you have troubles reproducing the issue I will be glad to help out.

Impact

A user can still find a way around stores creation without confirm email first.

The original report as published on HackerOne, by jmp_35p. 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 store signup endpoint trusted a token issued by the partners site without checking that the partner account's email had been confirmed.

Impact

An attacker could create development stores without confirming their email address, bypassing the intended restriction on unconfirmed partner accounts.

What the attacker needed

A new partner account; email left unconfirmed; partner account ID

How it was found

  1. Create a new partner account and do not confirm the email.
  2. While logged in, request the dev store signup object for the partner account ID to obtain an access token.
  3. Send a store creation request to the app site, including the access token and partner account ID.

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.

When you sign up for a partner account, the site normally makes you click a link in an email before you can create stores. The researcher found that one part of the site would hand out a special token even to an unconfirmed account, and another part would accept that token to create a store. So the email check could be skipped.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by jmp_35p

View all

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

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.