IDOR lets a malicious user reveal the unpinned achievement badges of any Reddit user
An IDOR vulnerability in Reddit's achievement badge preview endpoint allowed any user to check whether another user had a specific badge, even if that badge was unpinned and hidden from their public profile. By iterating over badge IDs, an attacker could enumerate all badges a user had earned, exposing information the user had chosen to hide.
- Triaged in 25 hours
- Disclosed after 17 days
Summary:
Reddit launched a new feature in June 2024 changelog. It is about Achievement Badges being available in profile . As per its the access control a badge is supposed to be hidden to other users if the badge owner unpins it. However, this IDOR vulnerability lets a malicious user find all the hidden badges with the knowledge of username (which is public) and badge id (which is a simple 1-2 digit incremental number)
Impact:
Badges tell a lot about a Reddit user. That is the reason Reddit gave an option for user to hide them. This vulnerability is a threat to confidentiality of Reddit users. It can tell a malicious user about if the user joined more than a threshold number of communities, does this person have high (> 10%) upvote rating, does the person comment in same community in 20 days straight, does the person votes/post/comments in reddit for certain amount of days etc. Basically all the actions due to which an badge gets rewarded gets exposed.
Steps To Reproduce:
- Create a Reddit account.
- Go to any post of any user.
- Share it outside of Reddit by just creating a embedding of the post. Please use Share -> Embed feature.

- Now go to your profile's achievement section and observe that the
New Sharebadge gets unlocked. - Click on that badge and unpin it. This makes it hidden from others.

- Please read this support article which states that unpinning a badge will hide it from others.

- Now create another account. Please try to create using mobile number due to some reasons.
- Login to the newly created account.
- Go to the first users achievement page. The way to do it is craft this URL and visit it in browser
https://www.reddit.com/user/<the-username-here>/achievements/. - Observe that the
New Sharebadge is hidden.

- Now request the following url in same browser
https://share.redd.it/preview/user/<the-usename-here>/achievement/10?show-user-info=trueand observe that you get a response with an image meaning that the provided username hasNew Sharebadge.

- Now change the
10in URL to11or9and observe that you get aNot foundmessage.


- Thus, a
Not Foundresponse means that that particular user does not have that badge and aValid Imageresponse means that that user has that particular badge. - Using this technique we can enumerate the
Achievement Badgesof any arbitrary user of Reddit.
Additional Information:
- Confidentiality is set to HIGH because entire badge component and every badge is affected.
- Privileges required is set to NONE because anyone can register to Reddit as it is a public platform so it is equivalent to no authentication.
Impact
Badges tell a lot about a Reddit user. That is the reason Reddit gave an option for user to hide them. This vulnerability is a threat to confidentiality of Reddit users. It can tell a malicious user about if the user joined more than a threshold number of communities, does this person have high (> 10%) upvote rating, does the person comment in same community in 20 days straight, does the person votes/post/comments in reddit for certain amount of days etc. Basically all the actions due to which an badge gets rewarded gets exposed.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the badge preview endpoint did not enforce the same visibility rules as the profile page, allowing any user to query badge existence by username and badge ID.
Impact
A malicious user could determine which badges any Reddit user has earned, including badges the user had unpinned to hide, revealing information about their activity and community engagement.
What the attacker needed
A Reddit account; knowledge of the target username; badge IDs are simple incremental numbers
How it was found
- Create a Reddit account and share a post using the Embed feature to unlock the New Share badge.
- Unpin the New Share badge so it is hidden from others.
- Create a second account and log in.
- Visit the first user's achievements page and confirm the badge is hidden.
- Request the badge preview URL for the first user with badge ID 10 and observe a valid image response.
- Change the badge ID to 9 or 11 and observe a Not Found response, confirming enumeration is possible.
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 report has not been written yet. The Original tab links to the source.
When you earn a badge on Reddit, you can unpin it so other people do not see it on your profile. However, a separate image preview link still revealed whether you had that badge, and anyone could try different badge numbers to discover all of them. This is called an IDOR because the system did not check that the person asking was allowed to see that hidden information.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.