Fabric.io: Ex-admin of an organization can delete team members
An ex-admin of an organisation retained the ability to delete team members from that organisation after being removed. An attacker could use a modified request to remove any member from an organisation they no longer belonged to.
- Triaged in 3 days
- Fixed in 4 months
- Paid in 13 days
- Disclosed after 7 months
When an admin is deleted from an organization, his access rights are not removed properly. This allows an ex-admin to delete team members from the organization.
Before proceeding with attack,
-
Create an organization with two accounts. Lets say, VictimOrg - Victimadmin, Victimmember
-
Invite Hackeradmin to VictimOrg and change his role to admin. At this point Hackeradmin can login and grab VictimOrg & Victimmember ids.
VictimOrg id:54af7e07b8568e8c6a0001e Victimmember id:552787195127ae16b8000987
-
Delete Hackeradmin from VictimOrg. Now, Hakeradmin is not a member of VictimOrg anymore. Ideally, he does not have rights to access/make changes to VictimOrg. However, he can still delete team members from the VictimOrg.
Steps listed below shows that Hackeradmin can delete Victimmember from VictimOrg:
-
Log into fabric.io as Hackeradmin.
-
Navigate to settings->organizations->HackerOrg->Team member link.
-
Click on x symbol corresponding to Hackermember to remove him from HackerOrg. Intercept this request using burp proxy.
Proxy shows a similar request as below,
DELETE /api/v3/accounts/54c1e78b9ea696b3cb00026a/organizations/54aa36e3937ae35559011d17/leave HTTP/1.1 Host: fabric.io
-
In the intercepted request replace the account id with Victimmember id and org id with VictimOrg id.
Modified request is,
DELETE /api/v3/accounts/552787195127ae16b8000987/organizations/54af7e07b8568e8c6a0001e/leave HTTP/1.1 Host: fabric.io
-
Send the modified request to the server and it removes Victimmember from VictimOrg.
-
To confirm, login as Victimadmin and look at the VictimOrg team members.
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 application did not revoke the ex-admin's permissions or session upon removal, allowing them to perform actions on the organisation.
Impact
An ex-admin could delete team members from an organisation they no longer belonged to.
What the attacker needed
Attacker must have been an admin of the target organisation; Attacker must know the victim member's account ID; Attacker must know the victim organisation's ID
How it was found
- Create an organisation with two accounts: a victim admin and a victim member.
- Invite a hacker admin to the organisation and change their role to admin.
- Delete the hacker admin from the organisation.
- Log in as the hacker admin and intercept the request to remove a team member from their own organisation.
- Modify the request to target the victim member and victim organisation.
- Send the request, which removes the victim member from the victim organisation.
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.
When someone is removed from a team, the system should also take away their ability to change that team. Here, the system forgot to do that, so a removed admin could still delete other members. This is like keeping a key to an office after you are fired.
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.