My 750 Privilege Escalation Bug How I Prevented Unauthorized Role Changes
A standard user could change their own role to admin by sending a request to an admin-only endpoint with a privilege parameter set to admin. This allowed any logged-in user to gain administrative privileges.
Published on infosecwriteups.com
Explore how I discover a role-changing vulnerability at Private program that allowed users to switch roles without admin privileges and get me paid 750$.This write-up provides the steps to reproduce this surprising bug and its potential impact.
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
Impact
Any logged-in standard user could make themselves an admin, leading to unauthorised access and potential takeover of administrative privileges.
What the attacker needed
A standard user account; ability to capture and replay requests
The fix
The platform's security team fixed the issue after responsible disclosure.
How it was found
- Create two accounts: one admin and one standard user.
- Capture the request an admin makes when changing a user's role.
- Replay that request using the standard user's session, setting the privilege to admin.
- Send the request and observe the standard user becomes an admin.
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 website had a feature for admins to change other users' roles. The server did not check whether the person sending that request was actually an admin. So a normal user could send the same request and make themselves an admin.
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.