Single-endpoint Race Conditions
The email change endpoint allowed multiple simultaneous requests without proper locking, creating a race condition. An attacker could exploit this to claim an email address with a pending admin invitation and gain administrator privileges.
infosecwriteups.com
Published on infosecwriteups.com
A single-endpoint race condition occurs when multiple requests sent to the same HTTP endpoint are processed concurrently without proper synchronization on the server side.
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
Impact
An attacker could gain administrator privileges by claiming an invited email address, leading to privilege escalation and potential account takeover.
What the attacker needed
A free account; victim clicks a link; none
The fix
The email change operation should be made atomic with proper locking to prevent concurrent requests from interfering.
How it was found
- Log in with the provided credentials and note the assigned email address.
- Update the email to a new value and confirm it via the email client.
- In Burp Suite, locate the change-email request and send it to Repeater.
- Duplicate the request tab and set two different email values.
- Group both tabs and send them in parallel using a single-packet attack.
- After receiving confirmation emails, verify the email change to the target admin address.
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 does two things at once and gets confused about the order. Here, the email change feature could be tricked by sending two requests at the same time, so the system accepted an email address that was reserved for an admin. This let the attacker become an admin.
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.