Skip to content
CSRF Write-up Intermediate

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.

rajveer_0101 Follow

Published on medium.com

It was a Self-Hosted program with limited scope, so I started exploring the main application

Rajveer, 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 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

  1. Invite multiple users to the organisation.
  2. Fetch all invitation tokens from the API endpoint.
  3. Construct a custom CSRF payload containing all verification URLs.
  4. 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.

More by rajveer_0101

View all

4 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.