Privilege Escalation — From Member to Organization Takeover
The invites API returned pending invitations to low-privileged members, including accept links, role identifiers and invitee email addresses. A low-privileged user could use a leaked accept link, or tamper with the role identifier in a create-invite request, to obtain a higher role such as Owner and take over the organisation.
medium.com
Published on 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 invites API returned sensitive invitation data (accept links, role identifiers, invitee emails) to any authenticated member, and the server trusted a client-supplied role identifier when creating an invitation.
Impact
An attacker could gain admin or Owner permissions and take full control of the organisation, including billing, domains and member management, and access sensitive organisational data.
What the attacker needed
A free account; ability to create an organisation; low-privileged member access; an owner or admin sends an invite
The fix
The accept link and invite token should be removed from API responses, and any exposed tokens should be invalidated or rotated.
How it was found
- Create an organisation with a new email address.
- As Owner, invite a low-privileged user such as Website Manager and accept the invite.
- As Owner, invite another user with the Account admin role.
- As the Website Manager, view pending invitations and note the accept link and role details.
- Open the leaked accept link and register to gain the higher privileges.
- As admin, send an invite, intercept the request and change the role identifier from admin to Owner, then accept to obtain the owner role.
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.
An organisation lets an owner invite people and give each one a role, such as a limited manager or a full owner. The site's invitation feature was too generous: it showed the invitation links and role details to people who should not see them, and it trusted a role number sent by the browser. So a low-level member could grab a link meant for someone else, or swap the role number, and end up with owner powers.
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.