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.
- 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:
-
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.
-
As the customer, visit the Wholesale shop and fill your cart with products.
-
Observe that the UI forces the user to submit a purchase order:
-
To bypass this restriction, intercept the request to
PUT /purchase_orders/submitto submit the purchase order and change the url to/purchase_orders/update_checkout. -
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.
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
- As a wholesale owner, disable immediate checkout for a customer.
- As the customer, add products to the cart and observe the UI forces a purchase order submission.
- Intercept the purchase order submission request and change its URL to the update checkout endpoint.
- 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.