Team member with Program permission only can escalate to Admin permission
A team member with only Program permission could access the team groups page and grant themselves Admin permission, gaining reward and report access. Separately, a read-only member could access a JSON endpoint that disclosed user IDs, assigned groups and group permissions.
- Paid in 11 days
- Disclosed after 16 days
Summary by the researcher
Hi hackers,
Bug: Program members with "Program" permission can escalate to "Admin" and consequently gain "Reward" and "Report" permissions.
- Detailed analysis with possible exploitation scenarios and some additional impact of this bug could be found here and here
- H1 also revealed a lot of info about internal implementation in this report
The report
Summary
https://hackerone.com/TEAM/groups URL is accessible to team members with Program permission, even when "Group Management" and "User Management" menus aren't visible.
I didn't research this further, however, I was able to grant all permissions to the user assigned to a group with Program permission.
PoC
Tested on a user assigned to a group with Program permissions
- Go to
https://hackerone.com/TEAM/groups - Select the current user's group
- Add arbitrary permission (e.g. Admin)
Additional information disclosure
I noticed that hackerone.com/teams.json is accessible to users with "read-only" permission, but https://hackerone.com/TEAM/groups.json is accessible to users with at least 1 valid permission.
That's strange because the data is identical and allows disclosing user ids, assigned groups, groups permissions.
Reporting 2 issues in one report, because it's hard to understand the real root cause of the broken RBAC.
Impact
- A team member with 1 valid permission (except "readonly", e.g. Program) can escalate own permissions in the team to arbitrary permissions.
- "readonly" team member can disclose the team's groups, assigned users, groups' permissions and ids/names.
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 groups management page and its JSON endpoint did not check the caller's permission level, so any member with a valid permission could change group permissions.
Impact
A team member with any valid permission other than read-only could escalate their own permissions to arbitrary levels, and a read-only member could disclose team groups, assigned users and group permissions.
What the attacker needed
A team member account; at least one valid permission, e.g. Program
How it was found
- Open the team groups page while logged in as a user with Program permission.
- Select the group the current user belongs to.
- Add an arbitrary permission such as Admin to that group.
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.
In a team workspace, different members have different levels of permission, such as read-only, program or admin. The report shows that a lower-level member could open a hidden management page and give themselves the highest level, which should not be possible.
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.