Fabric.io - an app admin can delete team members from other user apps
An app administrator could delete team members belonging to other apps they had no access to, by altering the account and app identifiers in the team-removal request. This allowed removing users from a victim app and, in the single-user case, locking the owner out entirely.
- Triaged in 16 hours
- Fixed in 18 days
- Paid in 12 days
- Disclosed after 59 days
It is possible for an app admin to delete all the team members from other apps for which he doesn't have access.
To reproduce the attack, create two apps and add different user roles as below,
VictimApp - Aliceadmin, Alicemember
HackerApp - Hackeradmin, Hackermember
Before proceeding with the attack, log into fabric.io as Aliceadmin and grab the VictimApp id and account ids.
VictimApp id: 54ad5e03a25bb8136b000002 Aliceadmin id: 54aa4c616bb166b8f300134a Alicemember id: 54af48304d8f5b12ff0000fd
Case 1: Deleting other app team members
-> Log into fabric.io as Hackeradmin. -> Navigate to settings->apps->HackerApp->Team member link. -> Click on x symbol corresponding to Hackermember to remove him from HackerApp. Intercept this request using burp proxy.
Proxy shows a similar request as below,
DELETE /accounts/54aa37d8f61d7749430127ee?admin=true&app_id=54aeafc28bfc55053d000028 HTTP/1.1
Host: fabric.io
-> In the intercepted request change the account id, app id to other app user and remove admin parameter.
For example, Alicemember - account id: 54aa4c616bb166b8f300134a, VictimApp id: 54ad5e03a25bb8136b000002
Modified request is,
DELETE /accounts/54aa4c616bb166b8f300134a?app_id=54ad5e03a25bb8136b000002 HTTP/1.1
Host: fabric.io
-> Send the modified request to the server and it removes Alicemember from VictimApp. -> To confirm, login as Aliceadmin and look at the VictimApp team members.
Though Hackeradmin does not have access to VictimApp, he successfully deleted VictimApp team member.
Case 2: DOS
Aliceadmin is the only user in VictimApp. If there is only one user in the app, fabric does not allow to leave the app. However, by following the steps provided above, it is possible to delete Aliceadmin account from the app. Now, VictimApp is not accessible to anyone and Aliceadmin can't log into Fabric with his password (Reset password also does not work - it shows success but does not send the reset link in email).
To successfully perform the attack, attacker has to know the app id and corresponding account ids. Possible scenarios are,
-> Hackeradmin might be a member of VictimApp initially and later his access is removed. He might have noted down (or have some logs) VictimApp id and all other account ids. -> Hackeradmin can obtain the victim account ids by sending an invitation to the victim email id (account id displayed in the response). Later, he can perform a bruteforce on the app id.
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 delete endpoint authorised the caller as an admin of some app but did not verify that the caller was an admin of the specific app identified by the app_id parameter.
Impact
An attacker could delete team members from apps they do not control, and could remove the sole user of an app, making it inaccessible and locking that user out.
What the attacker needed
Attacker is admin of their own app; victim app id and account ids known
How it was found
- Create two apps, each with an admin and a member, and note the victim app and account identifiers while logged in as the victim admin.
- Log in as the hacker admin and open the team member page for the hacker app.
- Remove the hacker app's member while intercepting the request with a proxy.
- Change the account id and app id in the request to the victim's values and drop the admin parameter.
- Send the modified request, which removes the victim member from the victim app.
- Confirm by logging in as the victim admin and checking the team member list.
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.
The server accepted a request from an admin of another app to remove a member from an app they had no access to.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.