Skip to content
CSRF Write-up Intermediate

One Click to Collapse: Chaining Logic Flaw + CSRF to Take Down a

The platform tied user accounts to a single organisation, and the owner could leave via a generic invite link, leaving the organisation ownerless and locking out all members. A CSRF flaw allowed an attacker to force an admin to visit a crafted link that silently accepted an invitation, triggering the same takedown.

CANITEY Follow

Published on canitey.medium.com

Hey friends, I’m CANITEY, and today I’m thrilled to walk you through one of the most impactful attack chains I’ve discovered — one that let me completely take down an entire SaaS organization and lock out every single member, including the owner. All by chaining two bugs that, on their own, seemed harmless… but…

CANITEY, on canitey.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

Impact

A single click from an admin could destroy the organisation and disable every account tied to it, with no alerts or popups.

What the attacker needed

Attacker has a generic invite link; victim is an organisation owner or admin; victim clicks a crafted link

The fix

The accept-invitation action should require a POST with CSRF protection and explicit confirmation, and the owner should not be able to leave an organisation without transferring ownership.

How it was found

  1. Obtain a generic invite link for another organisation.
  2. Craft a page that automatically submits a GET request to the accept-invitation endpoint with the token and group id.
  3. Trick an admin into visiting the crafted page.
  4. The admin's account switches to the new organisation, leaving the original ownerless and locking out all members.

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.

This SaaS platform put every user in exactly one team, and accounts were tied to that team. If the team owner left, the team broke and nobody could log in. The owner could be tricked into leaving by clicking a link, because the 'accept invite' action was a simple GET request with no protection against other sites triggering it.

What is CSRF?

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

More by CANITEY

View all

3 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.