⚡ Race Condition That Leads to Privilege Escalation
A workflow creation endpoint used a user-scoped identifier in the URL path for authorization, but under concurrent requests the check could be bypassed, allowing a resource to be created in another user's account. An attacker could escalate privileges by creating resources in another user's workspace.
I discovered a race condition in a workflow creation endpoint that allowed me to escalate privileges by triggering resource creation in another user’s context. By firing multiple concurrent requests with modified identifiers, I was able to cause the system to accept one of the unauthorized actions, effectively…
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 authorization check was performed early in the request lifecycle and not re-validated before execution, so concurrent requests could race past it.
Impact
An attacker could create resources in another user's workspace, effectively escalating privileges and polluting cross-tenant data; the exploit required brute-force timing but was reproducible.
What the attacker needed
A normal user account; ability to send concurrent requests; knowledge of a valid target account identifier
The fix
The issue was fixed by not relying on URL parameters for trust decisions, enforcing access control deep in the execution path, and adding locking or deduplication to prevent concurrent logic flaws.
How it was found
- Log in as a normal user.
- Capture the workflow/resource creation request.
- Modify the identifier in the URL to a valid target account.
- Send the modified request in rapid bursts (20–50 parallel attempts).
- Observe that some requests fail but occasionally one succeeds.
- The newly created resource appears in the target account.
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 is when a program does two things at nearly the same time and the order gets mixed up. Here, the server checked whether you were allowed to act on a user ID, but if many requests arrived at once, one could slip past the check and create something in another person's account. That means you could act as if you were part of someone else's workspace.
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.