Skip to content
Race condition Disclosed report Intermediate

Race Conditions in Popular reports feature.

An authenticated user could send multiple simultaneous upvote requests for the same report, causing the vote counter to increase more than once per account. This allowed a single user to artificially boost a report's popularity ranking.

shmoo Follow

Originally disclosed on HackerOne

  • Triaged in 5 hours
  • Fixed in 10 hours
  • Paid in 41 days
  • Disclosed after 41 days

Summary by the researcher

This report describes a race condition bug which allow an authenticated user to upvote or downvote multiple times a single report, increasing its counter (and its rank on the hacktivity page).

The report

This vulnerability allows you to explore a race condition bug on a new feature of hackerone, the popular reports..

To reproduce this bug, you need to intercept the POST request that trigger the "upvote" action.

After having this POST request, i created a script that repeats that POST with multiple threads.

this allows me to, with my single account, favorite multiple times a single tweet increasing its counter.

The post requests repeat was: POST https://hackerone.com/reports/127158/votes HTTP/1.1 Host: hackerone.com User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0 Accept: application/json, text/javascript, /; q=0.01 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate, br X-CSRF-Token: <hidden> X-Requested-With: XMLHttpRequest Referer: https://hackerone.com/hacktivity/popular Cookie: __cfduid=d0b8800c716cf2aa744ddebd0ef2c92e21466701022; session=<hidden> Connection: close Cache-Control: max-age=0 Content-Length: 0

In this case, running my script, returned the response: {"vote_id":865,"vote_count":48} {"vote_id":866,"vote_count":49}

Probably if my connection was faster, I would be able to increase even more the counter.

The original report as published on HackerOne, by shmoo. 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

Root cause

Likely the vote endpoint did not use an atomic operation or a lock to ensure that a user's vote is recorded only once, allowing concurrent requests to bypass the duplicate-vote check.

Impact

A single authenticated user could inflate a report's vote count, potentially manipulating its position on the popular reports page; the text notes that a faster connection might allow even more votes.

What the attacker needed

Authenticated user account; ability to intercept HTTP requests; script to send concurrent requests

How it was found

  1. Intercept the POST request that triggers the upvote action.
  2. Create a script that repeats that POST request using multiple threads.
  3. Run the script to send many simultaneous vote requests.

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.

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 shmoo

View all

3 more disclosed reports, best first.

More from HackerOne

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.