IDOR in Avatar Selection Allows Unauthorized Access to Premium Av
The avatar selection endpoint accepted any avatar ID without checking the user's level, so a new-level user could apply premium avatars reserved for higher levels. An attacker could bypass the progression system and use restricted content by changing a parameter.
Its mmnahian, During one of my recent bug bounty hunting public VDP program, I came across a vulnerability in an avatar selection feature of a web application. This bug allowed users at the “New Level” to bypass restrictions and use premium avatars that were meant only for higher-level users.
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
The backend trusted the client-supplied avatar_id and did not verify that the chosen avatar was permitted for the user's level.
Impact
Any user could apply premium avatars regardless of level, undermining the progression system and potentially leading to privilege escalation if avatars were tied to reputation or extra features.
What the attacker needed
A free account at new level; ability to intercept HTTP requests
The fix
The server should validate that the requested avatar is permitted for the user's level before applying it.
How it was found
- Open the profile customisation section and note that some avatars are locked until a higher level.
- Open an avatar image in a new tab and observe the URL contains a numeric avatar ID.
- Change the number in the image URL to see another avatar that is not offered to new-level users.
- Select an allowed avatar, click save, and intercept the save request.
- Change the avatar_id parameter in the intercepted request to the restricted avatar's ID and forward it.
- View the profile and confirm the restricted avatar is now applied.
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.
The app lets you pick an avatar, and some avatars are meant only for users who have reached a higher level. The server did not check whether your account was allowed to use the avatar you asked for, so simply changing a number in the request let anyone use the premium ones.
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.