Race Condition when following a user
A race condition in the follow-user feature allowed sending multiple follow requests concurrently, resulting in the same user being followed multiple times instead of an error.
- Triaged in 3 hours
- Fixed in 50 days
- Disclosed after 52 days
Summary:
Hi team,
There is a race condition vulnerability when following a user. If you send the Follow requests asynchronously, you can follow a user multiple times instead getting an error message.
I've been using Turbo Intruder extension at Burp Suite for trying Race Condition attacks. I can recommend it for reproduce this vulnerability.
Steps To Reproduce:
- Go to any user's profile
- Turn on Intercept at Burp Suite and click
Followbutton - Right click to follow request, click
Send to turbo intruderand drop the request - Add a fake header that contains
%svalue. LikeTest: %s - Paste this Python code to Turbo Intruder :
Python
def queueRequests(target, wordlists): engine = RequestEngine(endpoint=target.endpoint, concurrentConnections=30, requestsPerConnection=100, pipeline=False )
for i in range(30):
engine.queue(target.req, str(i), gate='race1')
engine.openGate('race1')
engine.complete(timeout=60)
def handleResponse(req, interesting):
table.add(req)
```
5. Click Attack button. Turbo Intruder will send 30 requests, check the status codes. If you see multiple responses with 201 Created status, that means you followed the user multiple times.
PoC Video :
Impact
Race Condition vulnerability allows to following a user multiple times with one account
Thanks, Bugra
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could follow the same user multiple times with one account.
What the attacker needed
A user account; ability to send concurrent requests
How it was found
- Go to any user's profile.
- Turn on Intercept in Burp Suite and click the Follow button.
- Send the follow request to Turbo Intruder and drop it.
- Add a fake header containing a placeholder value.
- Paste the provided Python script into Turbo Intruder.
- Click Attack; Turbo Intruder sends 30 requests, and multiple 201 Created responses indicate multiple follows.
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 report has not been written yet. The Original tab links to the source.
A race condition happens when requests are sent at the same time. Here, sending 30 simultaneous follow requests let one account follow the same person many times.
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.