BAC + CSRF
An API endpoint exposed all invitation tokens to any member, and the approval action lacked CSRF protection. An attacker could craft a page that, when visited by the owner, automatically approves multiple pending invitations.
Published on medium.com
It was a Self-Hosted program with limited scope, so I started exploring the main application
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 approval endpoint used a GET request without CSRF tokens, and an API endpoint returned invitation tokens to any authenticated member.
Impact
An attacker could use CSRF to onboard any number of users into the organisation without the owner's intent.
What the attacker needed
Attacker is a member of the organisation; owner visits a crafted link
How it was found
- Invite multiple users to the organisation.
- Fetch all invitation tokens from the API endpoint.
- Construct a custom CSRF payload containing all verification URLs.
- Get the owner to visit the crafted link, which triggers all embedded URLs.
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 invite someone to a team, the owner must approve them. The approval link had no protection against being triggered by another website, and any member could see all invitation tokens. So an attacker could make the owner's browser approve many fake members at once.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.