Skip to content
Access control Write-up Beginner

Fabric.io API permission apocalypse – Privilege Escalations

A member-level access token could be used to perform admin actions such as deleting apps and managing members, because the API did not check the token's scope. An attacker with a normal member account could escalate to admin and take over any organisation.

WeSecureApp Follow

Published on wesecureapp.com

The Fabric platform is made of three modular kits that address some of the most common and pervasive challenges that all app developers face: stability, distribution, revenue and identity. It combines the services of Crashlytics, MoPub, Twitter and others to help you build more stable apps, generate revenue through…

user, on wesecureapp.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

The API did not verify the scope of the access token before performing privileged actions.

What the attacker needed

A normal member account in an organisation

The fix

The API should check the scope of the access token before completing any request; the report says the issues were fixed after being reported to Twitter.

How it was found

  1. Log in as a normal member and obtain the member access token and session cookie.
  2. Intercept an admin delete request and replace the admin token and cookie with the member's token and cookie.
  3. Send the modified request and observe a 200 response with the app deleted.
  4. Repeat with other admin requests such as adding a user or granting admin permission, which also succeeded.

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 log in, the server gives your browser a token that proves who you are. This token is supposed to have limits (a 'scope') saying what you are allowed to do. The bug was that the server never checked those limits, so a low-privilege user could send admin commands and they would work.

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.

More by WeSecureApp

View all

2 more disclosed reports, best first.

More from Twitter

View all

The newest disclosed reports for this program.

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.