Skip to content
Race condition Write-up Intermediate

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.

Lelouchzero Follow

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.

Lelouchzero, on medium.com

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

  1. Capture the checkout request that submits the order for completion.
  2. Send that same request many times at the same moment from one session.
  3. 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.

More by Lelouchzero

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.