Skip to content
Access control Write-up Beginner

let’s Unlock Advanced Permissions

The invite collaborator API accepted role values that were not offered in the UI, allowing an attacker to grant advanced permissions such as growth, developer, or support. After a fix, changing the first character of the role to uppercase bypassed the restriction and still allowed inviting collaborators with those advanced permissions.

rofes1337 Follow

Published on rofes1337.medium.com

i will share to you most interested finding i discovered at @revenuecat private program at hackerone .

Yousef Muhammedelkhir, on rofes1337.medium.com

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

Likely the server did not validate the role parameter against an allowlist of permitted values, and the fix only checked for exact lowercase strings, so a case variation bypassed it.

Impact

An attacker could invite collaborators with advanced permissions that are normally restricted to higher plans, potentially gaining control over project settings and customer data.

What the attacker needed

A free account; ability to create a project; ability to invite collaborators

The fix

The issue was fixed by validating the role parameter against an allowlist, but the first fix was bypassed by changing the case of the role name; a subsequent fix addressed the bypass.

How it was found

  1. Create a project and invite a collaborator with a normal role.
  2. Intercept the invite request and change the role value to an advanced role name such as growth.
  3. Send the request and observe that the invite succeeds.
  4. After the fix, change the first character of the role name to uppercase and resend to bypass the restriction.

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.

When you invite someone to a project, the server should only allow the permission levels shown in the interface. Here, the server accepted hidden permission names that gave more access than intended. Later, simply capitalising the first letter of the role name got around the fix.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.