Skip to content
CSRF Write-up Intermediate

Meh : CSRF in Facebook Delegated Account Recovery

Facebook's Delegated Account Recovery integration with GitHub was vulnerable to cross-site request forgery. An attacker could start the integration flow, stop it at the right moment, and then trick a victim into visiting a crafted page, which would link the attacker's GitHub account to the victim's Facebook account.

ll Follow

Published on blog.intothesymmetry.com

The original lives on blog.intothesymmetry.com

We do not hold its text, 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 recovery-linking endpoint accepted a state-changing request without a per-session anti-CSRF token or user confirmation.

Impact

The victim's Facebook account could be linked to the attacker's GitHub account, which the author describes as a login CSRF to a GitHub account; Facebook initially questioned the threat but fixed it by adding a confirmation page.

What the attacker needed

Attacker has a GitHub account; victim is logged in to Facebook; victim visits attacker's page

The fix

Facebook fixed the issue by adding an additional confirmation page.

How it was found

  1. The attacker starts the integration with GitHub and stops the flow at the right moment.
  2. The attacker creates a page containing the recovery request with the captured parameters.
  3. The victim visits the attacker's page.
  4. The victim's Facebook account is linked to the attacker's GitHub token.

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.

Cross-site request forgery (CSRF) is when a malicious website makes a logged-in user's browser send a request to another site without the user intending to. Here, the attacker set up a link between their own GitHub account and the victim's Facebook account, so the victim's Facebook account would trust the attacker's GitHub identity for account recovery.

What is CSRF?

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

More by ll

View all

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