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.
Published on josipfranjkovic.blogspot.com
An example is a critical bug I reported to Facebook some time ago.
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
- Victim has a verified school email address.
- Victim makes a GET request to the join URL.
- 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.