Privilege Escalation To Super Admin
The web application did not validate the role_id parameter in the user profile update request, allowing a user with Marketer privileges to change their own role to Super Admin. An attacker could gain full control over the application, including access to and modification of any data.
Published on infosecwriteups.com
Hey hackers!!! Hope u all are doing very well in you life.
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
An attacker could gain Super Admin access, allowing them to access, modify, or delete any data in the application, including user information and sensitive data, and potentially take over the whole website.
What the attacker needed
An Administrator account to send invites; A second email address to receive invite; Ability to intercept and modify requests (e.g., Burp Suite)
How it was found
- Create an Administrator account and invite a second user with Marketer role.
- Accept the invite in another browser and log in as the Marketer user.
- As Administrator, go to edit profile of the invited user and intercept the save request.
- Modify the role_id parameter in the request body to value 1.
- Refresh the Marketer user's page to see the Super Admin dashboard.
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.
This is a privilege escalation bug. The app let a low-privilege user change their own role to the highest level by tampering with a hidden field in the request. That means the app trusted the user's input without checking if they were allowed to make that change.
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.