Skip to content
Business logic Write-up Beginner

Business Logic Flaw in a Rating System and Earned €150

A GraphQL mutation that updates comment ratings accepted repeated identical requests without authentication, CSRF tokens, rate limiting or validation. An attacker could send the mutation in a loop to artificially inflate a comment's vote count and manipulate the platform's community ranking.

medium.com

Published on medium.com

Bug bounty hunting is often about the little details a forgotten header, a missing validation, or in this case a rating system without limits.

Erkan Kavas, 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 rating mutation lacked authentication, CSRF protection, rate limiting and per-user vote validation, so identical requests could be replayed indefinitely.

Impact

An attacker could artificially inflate comment visibility and manipulate the community voice on a media platform, potentially influencing public opinion; the text does not mention any defence that limited the exploit.

What the attacker needed

Access to the private program site; ability to send requests to the GraphQL endpoint

The fix

The bug was patched after the report, though the text does not describe the specific fix.

How it was found

  1. Open the article comment section and click the upvote button while watching network requests in developer tools.
  2. Observe a POST request to a GraphQL endpoint containing an updateCommentRatingPositive mutation for the comment.
  3. Repeat the same request multiple times and confirm the vote count increases by one each time.
  4. Run a script that sends the mutation in a loop to inflate the vote count at scale.

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 lets users upvote comments, and each click sends a request to the server to add one vote. The server did not check who was sending the request or stop the same person from sending it hundreds of times, so anyone could make a comment look far more popular than it really was.

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.