Loading HuntDB...

Outsider can affect Upvote Percentage of private subreddit post by calling /api/vote API

Low
R
Reddit
Submitted None
Reported by trieulieuf9

Vulnerability Details

Technical details and impact analysis

Improper Access Control - Generic
## Summary: Attacker that does not have access to a private subreddit, can still affect `Upvote Percentage` of any posts in this private subreddit. He does that by calling `/api/vote` API and passing post id directly. What is `Upvote Percentage`?: F1407175 ## Impact: - Attacker can affect `Upvote Percentage` of private subreddit posts, although he does not have access to this private subreddit posts. - Only `Upvote Percentage` is changed, vote number is not affected. - Limitation: Attacker needs to know post id in private subreddit to start the attack. ## Steps To Reproduce: 1. Victim prepare a private subreddit and create a post in it [1] 2. Attacker intercepts a legitimate `/api/vote` request in Burp and send to Repeater 3. In Repeater, request body, change param `id` value to Victim's post id (assume that attacker has a way to get post id) F1407184 4. Change param `dir` value to -1 and send request. `Upvote Percentage` decreases from 100% => 99% 5. Then change param `dir` value to 1 and send request. `Upvote Percentage` decreases from 99% => 67% [1]: If you just created a new post, please wait for half a day, until vote number is visible F1407178. It is fine to start the exploit right away, but the result does not update correctly until vote number is visible. ## Impact - Attacker can affect `Upvote Percentage` of private subreddit posts, although he does not have access to this private subreddit posts. - Only `Upvote Percentage` is changed, vote number is not affected. - Limitation: Attacker needs to know post id in private subreddit to start the attack.

Report Details

Additional information and metadata

State

Closed

Substate

Resolved

Submitted

Weakness

Improper Access Control - Generic