Skip to content
Race condition Write-up Intermediate

Race condition allows bypassing stored family members limit in on

The online store's family member addition endpoint had a race condition that allowed sending multiple concurrent requests to bypass the configured limit of four members. An attacker could add more members than allowed, granting them shared benefits such as free delivery and discounts.

Ahmed Talaat Follow

Published on medium.com

Hello , I need to share this race condition vulnerability i was found in online store .

Ahmed Talaat, 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 endpoint checked the current number of family members and then inserted a new one without an atomic operation or lock, so concurrent requests all passed the check before any insert completed.

Impact

An attacker could add more family members than the allowed limit, granting them shared benefits such as free delivery and exclusive discounts, though the exploit required very tight timing (under 50 ms between requests).

What the attacker needed

A testing account; ability to send parallel requests; timing gap under 50 ms

How it was found

  1. Log in to the testing account.
  2. Go to the add family section.
  3. Capture the 'Add family member' request with Burp Suite and send it to Repeater.
  4. Clone the request 12 times, changing only the member name and email for each copy.
  5. Use Repeater's 'Send in parallel' option (single-packet attack) to send all requests concurrently.

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 website checks a limit but doesn't properly lock things down while multiple requests arrive at almost the same time. Here, the site allowed more family members than it should because several requests were processed simultaneously before the limit was updated. This let the attacker give extra people the benefits meant only for a small family group.

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.

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.