Race Condition Exploitation in Poll Systems: How I Manipulated Vo
A race condition in a forum's poll voting allowed the 'members who voted' counter to be inflated by sending parallel requests, and then a second race condition let a single account cast multiple votes, manipulating the poll results. The attacker could submit 15 votes from one account.
Published on medium.com
While testing a bug bounty program on HackerOne, I discovered a forum where users can interact with each other. The forum allows users to create topics (posts) and polls.
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 application checked and updated the vote counter without locking, so parallel requests could both pass the check and increment the count.
Impact
An attacker could manipulate poll results by casting multiple votes from one account, though the triager stated it does not impact any reward system or critical functionality.
What the attacker needed
A user account on the forum; ability to intercept and replay HTTP requests
How it was found
- Intercept the poll voting request.
- Send the request multiple times in parallel to inflate the 'members who voted' counter.
- Vote again using the manipulated value to influence vote validation.
- Submit multiple votes from a single account to change the poll results.
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 is when a program does two things at almost the same time and gets confused, like two people grabbing the last item on a shelf. Here, sending many voting requests at once tricked the forum into counting more votes than it should. The tester could then make a poll show a result that most users did not actually vote for.
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.