X(twitter) & my first real bug
The author describes two race conditions on X: replaying like requests in parallel to inflate a tweet's like count, and sending many password reset requests at once to try to reuse a reset code and take over an account. The text claims both were resolved and that the second was marked as a duplicate.
Published on medium.com
The original lives on medium.com
We do not hold its text, 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 server checked a limit or state (one like per user, one valid reset code) and then acted on it without making that check-and-act step atomic.
Impact
An attacker could inflate a tweet's like count, and the text claims the reset race could lead to account takeover, though no evidence of the latter is shown and both issues are said to be resolved.
What the attacker needed
An X account; a proxy tool such as Burp Suite; victim's email address (reset claim)
The fix
The text says the issues were resolved, but does not describe how.
How it was found
- Open a tweet on X and choose to like it.
- Intercept the like request in a proxy tool and send it to the repeater.
- Duplicate the request several times and group them.
- Send the grouped requests in parallel to trigger the race.
- For the reset issue, know the victim's email and start a password reset.
- Fire many reset requests at once to try to reuse a code and take over the 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 checks something and then acts on it, and an attacker squeezes many requests into the tiny gap between those two moments. Here, many 'like' clicks or password reset requests are fired at the same moment so the server counts or processes them incorrectly. The write-up claims this could inflate likes or let someone reset another person's password, though it gives no proof for the second claim.
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.