Skip to content
Access control Write-up Beginner

How I Achieved a Full Account Takeover Through Information Disclosure

A lower-privileged Developer user could fetch the list of workspace invitations, which exposed the UUIDs used in invitation links. By using the UUID of a pending Owner invitation, the attacker could register a new account as an Owner, achieving full account takeover.

ahmedsamirghallab Follow

Published on medium.com

Today, I want to share an exciting bug bounty experience where I discovered a CWE-201: Insecure Exposure of Sensitive Information to an Authorized Actor, which ultimately led me to achieve a full account takeover. Let’s dive into the details of how this unfolded.

Ahmed Samir Ghallab, 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

The invitation list endpoint returned invitation UUIDs to any workspace member, and those UUIDs alone were sufficient to accept an invitation without further validation or role checks.

Impact

A lower-privileged user could escalate to Owner and take over the account with full privileges.

What the attacker needed

A Developer account in the workspace; an Owner invitation pending

The fix

The issue was fixed by encrypting UUIDs in invitation links and restricting access to invitation details based on roles.

How it was found

  1. Create an Owner account and a Developer account.
  2. As the Owner, invite another user as an Owner to generate an invitation link containing a UUID.
  3. Log in as the Developer and send a GET request to the workspace invites endpoint.
  4. Observe that the response includes the UUIDs of all invitations.
  5. Take the UUID of the Owner invitation and use it in the invitation link to register a new account.
  6. The new account is created with Owner privileges.

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.

The app has two roles: Developers with limited rights and Owners with full rights. A Developer could see the secret code (a UUID) inside other people's invitation links. Because that code was all that was needed to accept an invitation, the Developer could use an Owner's invitation to become an Owner themselves.

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 ahmedsamirghallab

View all

2 more disclosed reports, best first.

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.