Skip to content
Business logic Write-up Beginner

$1,000-Value Bug: Abusing Cookie-Based Voting to Manipulate Comme

The voting system on a Turkish news platform tracked votes using a client-supplied CookieId instead of authenticated sessions, and did not validate or rate-limit it. An attacker could generate unlimited unique CookieIds to cast fake votes on any comment without authentication.

Erkan Kavas Follow

Published on infosecwriteups.com

But not all voting systems are implemented securely. In this article, I will walk you through a real-world vulnerability that still exists on a live turkish news platform, which allows an attacker to cast unlimited fake votes on any comment — without authentication, just by manipulating a CookieId.

Erkan Kavas, on infosecwriteups.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

The server trusted a client-controlled CookieId to identify unique voters and did not tie votes to authenticated sessions or enforce rate limits.

Impact

An attacker could cast unlimited fake votes on any comment, manipulating vote counts without authentication.

What the attacker needed

No account needed; network access to the platform

The fix

The voting system should require authentication, use server-generated identifiers, and add rate-limiting and CAPTCHA to prevent automated abuse.

How it was found

  1. Inspect the voting request and observe that it includes a CookieId parameter.
  2. Determine the predictable format of CookieId values.
  3. Write a script that generates a new CookieId for each vote request.
  4. Send repeated vote requests with different CookieIds to the comment voting endpoint.

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 vote on comments, but instead of checking who they were, it just looked at a random-looking string the browser sent. Anyone could make up new strings and vote as many times as they wanted. This is like a ballot box where you can write any name you like and stuff as many ballots as you want.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by Erkan Kavas

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.