HexBrain

HackerOne · Report #605720

Team member with Program permission only can escalate to Admin permission

Validstatus
mediumseverity
268upvotes
26 Jun 2019disclosed

Summary

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

How it was found

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

  1. Go to https://hackerone.com/TEAM/groups
  2. Select the current user's group
  3. 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.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original