Skip to content
CSRF Write-up Intermediate

CSRF in Facebook/Dropbox - "Mallory added a file using Dropbox"

The Facebook/Dropbox integration lacked the OAuth state parameter, allowing an attacker to forge a link with their own authorization code. When a victim visited the link, the attacker's cached access token was used to post a file to the victim's Facebook group under the attacker's name.

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 OAuth flow was initiated by Facebook without a state parameter, and Dropbox cached the access token indefinitely, so a forged authorization code could bind the victim to the attacker's token.

Impact

An attacker could post a file to a victim's Facebook group under the attacker's name, but the exploit relied on Dropbox caching the access token indefinitely.

What the attacker needed

Victim clicks a link; attacker has a Dropbox account; victim has Facebook and Dropbox linked

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.

OAuth is a way for one website to ask another for permission to do something on your behalf, like letting Facebook post a file from Dropbox. A security check called the 'state' parameter is supposed to stop someone from tricking you into using their permission instead of yours. Here, that check was missing, so an attacker could make you use their Dropbox connection to post a file to your Facebook group.

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.