WordPress TotalPoll Plugin Race Condition vulnerability (Write Up + AI generated blog)
The TotalPoll WordPress plugin's voting logic lacked proper synchronisation when updating vote counts, allowing a race condition. An attacker could send multiple simultaneous vote requests to generate extra votes and manipulate poll results.
Published on blog.evanricafort.com
{{media:0}}
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 vote-count update was not atomic or locked, so concurrent requests could overwrite each other's changes.
Impact
An attacker could generate multiple votes for a poll and manipulate its results, for example to help a streamer win a contest.
What the attacker needed
Access to a poll voting feature; ability to send concurrent requests
The fix
The plugin was updated to fix the vulnerability, and users should update to the latest version.
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 two actions try to change the same piece of data at the same moment, and the final result depends on who finishes last. Here, the plugin did not lock the vote counter while updating it, so several rapid votes could all be counted even though only one should have been. This let someone stuff a poll with extra votes.
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.