Skip to content
Race condition Disclosed report Intermediate

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.

bugra Follow

Originally disclosed on HackerOne

  • 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:

  1. Go to any user's profile
  2. Turn on Intercept at Burp Suite and click Follow button
  3. Right click to follow request, click Send to turbo intruder and drop the request
  4. Add a fake header that contains %s value. Like Test: %s
  5. 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 :

EveryRaceCondition.mp4 From the original on HackerOne

Impact

Race Condition vulnerability allows to following a user multiple times with one account

Thanks, Bugra

The original report as published on HackerOne, by bugra. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Go to any user's profile.
  2. Turn on Intercept in Burp Suite and click the Follow button.
  3. Send the follow request to Turbo Intruder and drop it.
  4. Add a fake header containing a placeholder value.
  5. Paste the provided Python script into Turbo Intruder.
  6. 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.

More by bugra

View all

21 more disclosed reports, best first.

More from Staging.every.org

View all

The newest disclosed reports for this program.

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.