Skip to content
Race condition Disclosed report Intermediate

Race Condition in Definition Votes

A race condition in the definition voting feature lets a user cast multiple votes at once by sending the same vote request concurrently. This allows artificially inflating up or down votes to any number.

cablej Follow

Originally disclosed on HackerOne

  • Triaged in 5 months
  • Fixed in 6 months
  • Disclosed after 15 months

There exists a race condition vulnerability in definition votes, allowing any user to artificially manipulate the number of up/down votes for a definition by making asynchronous requests to vote. A malicious user can use this method to reach any number of up or down votes for a definition.

See the attached screenshot for an example.

POC:

  1. Visit any definition.
  2. Intercept a vote of the definition, such as with Chrome Developer tools or BurpSuite.
  3. Make the opposite vote, so you are able to vote again.
  4. Copy the vote request as a curl command, and in the command line execute the command in the format (command) & (command).
  5. Revisit the vote. There will now be 2 votes cast, and a negative number of the opposite votes. This can be repeated by removing your vote and executing the request again.

Please let me know if you have any questions,

Jack

Attachments

ub.png
ub.png From the original on HackerOne

The original report as published on HackerOne, by cablej. 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 checks for an existing vote and records the new vote as separate steps without locking, so concurrent requests all pass the check.

Impact

A user could artificially inflate or deflate vote counts on any definition, potentially to any number.

What the attacker needed

Ability to intercept HTTP requests

How it was found

  1. Visit any definition.
  2. Intercept a vote request using browser developer tools or a proxy.
  3. Cast the opposite vote so you can vote again.
  4. Copy the vote request as a curl command and run it twice concurrently in the shell.
  5. Revisit the definition to see two votes and a negative count of the opposite votes; repeat by removing your vote and running the request again.

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 cablej

View all

25 more disclosed reports, best first.

More from Urban Dictionary

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.