Skip to content
Race condition Write-up Intermediate

How I Broke the Access Control of an Entire Application

An endpoint returned 'Access Denied' with HTTP 200 for unauthorised IDs, but under a burst of concurrent requests, the access control check sometimes failed, allowing access to other companies' terminal data.

medium.com

Published on medium.com

As bug bounty hunters, we’re often trained to look for the obvious: broken access controls, missing authentication, predictable IDs. But sometimes, the real vulnerabilities live in the subtle details — edge cases, timing quirks, and logic that only breaks when you approach it from just the right angle.

0xP0L73R63157, 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 a race condition in the access control logic, where concurrent requests cause the authorisation check to be skipped or misapplied.

Impact

An attacker could access terminal data belonging to other companies that should have been restricted.

What the attacker needed

Ability to send concurrent requests; knowledge of a valid ID

How it was found

  1. Find an endpoint that takes an ID parameter and returns 'Access Denied' with HTTP 200 for unauthorised IDs.
  2. Use a tool to send many requests to the same ID concurrently.
  3. Observe that a few responses contain restricted data instead of the denial message.

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.

The application checked whether you were allowed to see a page, but it did this check in a way that could be skipped when many requests arrived at the same moment. This is called a race condition: a timing flaw where the program's steps get mixed up under load. An attacker could send many requests at once and occasionally see data belonging to other companies.

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.