Skip to content
Race condition Write-up Intermediate

An Easy RACE CONDITION Bug That Made Me Fame

The application allowed a user to upvote a comment multiple times concurrently, causing the comment's points to decrease and the commenter's reputation to change unexpectedly. An attacker could manipulate reputation points by sending many simultaneous upvote requests.

hashimamin Follow

Published on medium.com

Hey Hackers, This’s mrhashimamin And today I’ll talk about a Race Condition bug that i found on a Vulnerability Disclosure Program ( VDP ) on bugcrowd ( Let’s call it target.com ).

Hashim Amin, on medium.com

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 server did not properly synchronise concurrent upvote requests, allowing multiple votes from the same user to be processed simultaneously.

Impact

An attacker could manipulate comment scores and user reputation points, potentially affecting the integrity of the platform's voting system.

What the attacker needed

A free account; two user accounts; ability to intercept requests

How it was found

  1. Register two users on the app.
  2. Upload an image using user_1.
  3. Comment on this image using user_2.
  4. Switch back to user_1 and upvote user_2's comment.
  5. Intercept the API request using Burp Suite.
  6. Send the request to Turbo Intruder with a Python script and attack.

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 website handles many requests at the same time without proper checks, so doing something twice quickly can cause unexpected results. Here, sending many upvote requests at once let the attacker change reputation points in unintended ways.

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 hashimamin

View all

2 more disclosed reports, best first.

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.