Skip to content
Access control Disclosed report Intermediate

H1514 Bypass Wholesale account signup restrictions

cablej Follow

Originally disclosed on HackerOne

Medium 5.3 View original
  • Triaged in 4 days
  • Fixed in 20 days
  • Paid in 8 days
  • Disclosed after 8 months

Summary:

By default, account registration is disabled on Shopify Wholesale, requiring customers to be manually invited:

Wholesale account signup is disabled. Customers need to be manually invited from the Customers page.

This can be bypassed due to improper access controls in the invitation functionality, allowing an attacker without an invite access to the full Wholesale store.

Steps To Reproduce:

  1. Configure Wholesale for two separate Shopify stores at https://wholesale.shopifyapps.com. Let Store A be the target store (jackstore-7 in my case) for which the attacker aims to gain access. Let Store B be the attacker's own store (jackstore-6 in my case).
  2. As Store B, create a product/price list and add at least one customer to Wholesale.
  3. Under the Wholesale Customers page (https://jackstore-6.myshopify.com/admin/apps/wholesale/admin/shops/7662/accounts), select a customer and generate an invite link. This link will be of the form https://jackstore-6.wholesale.shopifyapps.com/accounts/invitation/accept?invitation_token=KqhsT8sWFbbEdxpHxHt7.
  4. Replace the store domain in the link with Store A.
  5. Observe that the invitation token is still treated as valid for Store A, and an account can be registered.
  6. Upon registration, the user will have access to the entire Wholesale store:
Screen_Shot_2018-10-13_at_4.24.58_PM.png
Screen_Shot_2018-10-13_at_4.24.58_PM.png From the original on HackerOne

Impact

This allows an attacker to bypass account signup restrictions for Wholesale stores and join any store without being invited. This may include private products or documentation which a store wants to keep restricted only to invited users.

The original report as published on HackerOne, by cablej. 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.

What is known

A medium-severity access control bug in Shopify Developed Apps, rated CVSS 5.3. HackerOne made it public on 7 June 2019.

About Access control

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by cablej

View all

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

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.