Skip to content
Business logic Write-up Beginner

Same Bug, Different Places: 3 Logic Flaws I Found on Main Domain

The platform identified voters and reactors by a cookie called cuid, and when an invalid cuid was sent, the server issued a new one in a Set-Cookie header. An attacker could use each new cookie to vote or react repeatedly, bypassing the one-vote-per-user restriction.

medium.com

Published on medium.com

In this write-up, I’ll walk you through how I found three different logic bugs across different features of a well-known platform, all by using the exact same technique.

nooh zidan, 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 relied solely on a client-supplied cookie for identity and issued a new valid cookie when an invalid one was presented, without any server-side check or rate limit.

Impact

An attacker could cast unlimited votes, spam reactions, and manipulate author ratings, though the platform rated these issues as informational or P4 because the features were considered entertainment-only.

What the attacker needed

No authentication required; ability to intercept and modify requests

How it was found

  1. Intercept a request to vote for a player
  2. Send the request with an invalid cuid
  3. The response returns a 400 error but includes a Set-Cookie header with a new cuid
  4. Use the new cuid in a new request
  5. The request returns 200 OK and the vote is registered
  6. Repeat steps 1–4 to vote as many times as you want

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 cookie is a small piece of data a website stores in your browser to remember you. The site used a cookie to check if you had already voted, but it also gave out a fresh cookie whenever it saw an invalid one. By taking each new cookie, a user could vote again and again.

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.

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.