Skip to content
Access control Write-up Intermediate

Private Polls? Not Really — Exploiting Access Control and Logic Flaws

A private poll feature allowed unauthorised users to vote and to retrieve poll results and participant lists via JSON-RPC methods. A race condition also let the same account cast multiple votes, inflating the tally.

yosefmostef99 Follow

Published on medium.com

One day, while hunting for bugs and going through an intense moment of boredom, curiosity pushed me to keep testing a certain feature on a website. After a lot of trial and error, I eventually discovered not just one issue, but three different vulnerabilities within the same request.

Yosef Mostef :), 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 verify that the requesting user was authorised to access or vote in the specific poll, and it did not enforce vote uniqueness under concurrent requests.

Impact

An attacker could vote in private polls, view poll results and participant lists, and manipulate vote counts by sending many parallel requests; the race condition was rejected as out of scope by the triage team.

What the attacker needed

A free account; ability to send HTTP requests

How it was found

  1. Create a poll and set its privacy to private.
  2. Create a second account and log in.
  3. Capture the vote request from the first account.
  4. Replace the session cookies and auth_token with those from the second account.
  5. Replay the request against the private poll; the server accepts it.
  6. Send multiple vote requests in parallel to cast multiple votes from one account.

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 website let people create polls, some marked private. The site checked who you were when you loaded the page, but not when you sent the vote or asked for results, so anyone with an account could vote and see who else voted. Also, sending many votes at the same moment tricked the site into counting them all.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.