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.
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.
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
- Make a normal comment and note the voting option.
- Vote up normally and confirm it works.
- Vote down normally and confirm it works.
- Vote up, intercept the request, change the vote parameter from 1 to 1000, and inspect the response.
- Reload the page and confirm the vote count is still 1000.
- 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.