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.
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…
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
- Log in as a normal member and obtain the member access token and session cookie.
- Intercept an admin delete request and replace the admin token and cookie with the member's token and cookie.
- Send the modified request and observe a 200 response with the app deleted.
- 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.