Skip to content
Access control Disclosed report Intermediate

H1514 Wholesale customer without checkout permission can complete purchases

A wholesale customer could bypass the store's disabled checkout setting by changing a purchase order submission request to a different endpoint, allowing them to complete checkout without staff approval. This also bypassed any maximum checkout amount set by the store.

cablej Follow

Originally disclosed on HackerOne

Medium 5.3 View original
  • Triaged in 5 days
  • Fixed in 3 months
  • Paid in 8 days
  • Disclosed after 6 months

Summary by the program

The Wholesale Channel provides a configuration option to disable checkout, so that purchase orders must be reviewed by shop staff. @cablej reported that even with checkout disabled, it was possible for a customer to trigger a regular checkout flow by making a request to /purchase_orders/update_checkout. This was fixed by checking the customer permission before allowing the use of any checkout-related endpoints for purchase orders.

The report

Summary:

By default, Shopify Wholesale customers are prevented from immediately checking out:

Instead, a store admin must approve each order before the customer can pay.

This restriction can be bypassed, allowing a customer to check out orders without prior approval. This also bypasses any maximum checkout amount that a store can set.

Steps To Reproduce:

  1. As a Wholesale owner, ensure that a customer is disallowed from immediately checking out at https://your-store.myshopify.com/admin/apps/wholesale/admin/shops/x/accounts.

  2. As the customer, visit the Wholesale shop and fill your cart with products.

  3. Observe that the UI forces the user to submit a purchase order:

  4. To bypass this restriction, intercept the request to PUT /purchase_orders/submit to submit the purchase order and change the url to /purchase_orders/update_checkout.

  5. Observe that executing the request will allow the customer to proceed through the checkout flow and place the order:

Impact

This allows a customer to bypass manual approval restrictions for a Wholesale store and immediately check out.

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.

How it worked

Root cause

Likely the checkout-related endpoint for purchase orders did not verify that the customer had permission to check out, relying only on the UI to enforce the restriction.

Impact

A customer could bypass manual approval restrictions and any maximum checkout amount, completing purchases immediately without staff review.

What the attacker needed

A wholesale customer account; checkout disabled by store admin; ability to intercept requests

How it was found

  1. As a wholesale owner, disable immediate checkout for a customer.
  2. As the customer, add products to the cart and observe the UI forces a purchase order submission.
  3. Intercept the purchase order submission request and change its URL to the update checkout endpoint.
  4. Observe that the request lets the customer proceed through checkout and place the order.

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.

In a wholesale shop, the store owner can require that staff review each order before the customer pays. The customer's browser sends a request to submit the order for review, but by changing the address of that request to a different one, the customer could skip the review and pay straight away. This is a missing permission check on the server side.

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.