Skip to content
CSRF Write-up Beginner

Facebook Bug Bounty: Secondary Damage (CSRF via XSRF token)

A low-risk CSRF vulnerability allowed an attacker to add a victim to a school group if the victim had a verified school email and was not already a member. During investigation, Facebook found a related flag that could have allowed CSRF to add users to more general groups, and paid a bounty for that secondary issue.

Josip Franjkovic Follow

Published on josipfranjkovic.blogspot.com

An example is a critical bug I reported to Facebook some time ago.

Josip Franjković, on josipfranjkovic.blogspot.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

An attacker could add a victim to a school group without their consent, but only if the victim had a verified school email and was not already a member; the broader issue found internally could have allowed adding users to more general groups.

What the attacker needed

Victim has verified school email; victim not already in group; victim visits attacker-controlled site

The fix

The original school-group join issue was marked as wontfix, but the related flag was removed.

How it was found

  1. Victim has a verified school email address.
  2. Victim makes a GET request to the join URL.
  3. The victim becomes a member of the school group.

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.

A CSRF attack tricks a logged-in user's browser into sending a request without the user's knowledge. Here, an attacker could make a victim join a school group if the victim had a verified school email and was not already in the group. Facebook later found a similar but broader issue in their code and rewarded the reporter for it.

What is CSRF?

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

More by Josip Franjkovic

View all

6 more disclosed reports, best first.

More from Meta

View all

The newest disclosed reports for this program.

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.