From Subdomain Takeovers to a Critical Race Condition on Shopify
A checkout GraphQL mutation could be sent many times at once from one session, and each request created a separate order. An attacker could place unlimited orders from a single checkout, draining stock and abusing discounts.
Published on medium.com
I started hunting on Shopify 2 weeks ago with zero expectations. Today, I submitted my first Critical vulnerability — a race condition in the checkout process that allows unlimited orders to be placed simultaneously.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the order submission step did not lock or mark the checkout session as already completed, so concurrent requests were each processed as new orders.
Impact
An attacker could create many orders from one checkout session, which could drain stock, bypass coupon limits and flood the order system; the text does not say whether payment or fulfilment checks limited this.
What the attacker needed
A Shopify account; a checkout session; ability to send concurrent requests
How it was found
- Capture the checkout request that submits the order for completion.
- Send that same request many times at the same moment from one session.
- Observe that every request succeeds and a separate order is created each time.
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 write-up has not been written yet. The Original tab links to the source.
A race condition happens when a system checks something once but then acts on it many times at the same moment. Here, the checkout step that finalises an order did not stop the same session from finalising again and again. Sending many copies of the request at once produced many orders instead of one.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.