Skip to content
Access control Write-up Beginner

Easy 150$ Bounty: Delete all votes

The vote deletion endpoint did not check whether the vote belonged to the requesting user, so any authenticated user could delete other users' votes by repeating the request. This allowed manipulation of vote counts on reviews.

medium.com

Published on medium.com

I have been hunting for a while on the Hackerone public program and what I learned is If you choose the right program and spend more time on it you wont regret wasting hundreds of hours (you will regret other things :) because If you read my “Easy 130$ Bounty: User to Admin” article I found a privilege escalation…

Musab Sarı, 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 endpoint lacked an ownership check, so it deleted any vote matching the review ID without verifying the requester owned that vote.

Impact

Any authenticated user could delete votes belonging to other users, potentially manipulating review vote counts.

What the attacker needed

An authenticated account

How it was found

  1. Send a DELETE request to the reviews/likes endpoint with a review ID.
  2. Repeat the same request multiple times.

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.

When you click a vote button, the website sends a request to a server to record or remove your vote. The server should check that the vote being removed is actually yours. Here it did not, so anyone logged in could remove other people's votes by sending the same request repeatedly.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.