Skip to content
Business logic Write-up Beginner

Business Logic Errors - Must Vote

The voting feature accepted a client-supplied vote value without server-side validation, so a single user could set their vote to 1000 or -1000 instead of the allowed one vote. An attacker could therefore inflate or deflate a comment's score, skewing the voting results.

Jerry Shah Follow

Published on shahjerry33.medium.com

Business logic vulnerabilities are ways of using the legitimate processing flow of an application in a way that results in a negative consequence.

Jerry Shah (Jerry), on shahjerry33.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 trusted the vote value sent by the client and did not validate or cap it server-side.

Impact

All users could vote multiple times, abusing the voting system and affecting the voting results.

What the attacker needed

A comment section with voting; ability to intercept requests

The fix

The vote value should be validated and capped on the server side, not only in the browser.

How it was found

  1. Make a normal comment and note the voting option.
  2. Vote up normally and confirm it works.
  3. Vote down normally and confirm it works.
  4. Vote up, intercept the request, change the vote parameter from 1 to 1000, and inspect the response.
  5. Reload the page and confirm the vote count is still 1000.
  6. Vote down, intercept the request, change the vote parameter to -1000, and inspect the response.

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 people vote on comments, normally one vote each. The site trusted the number the browser sent, so someone could edit that number to 1000 before sending it. The server saved the edited number, letting one person cast many votes at once.

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 Jerry Shah

View all

26 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.