Skip to content
Info disclosure Write-up Intermediate

Victim’s Anti CSRF Token could be exposed to Third-party Applications

A broken feature in Facebook's Creator Studio caused an HTML error page containing the user's anti-CSRF token and other session details to be downloaded to the user's device. A malicious application on the same device could read this file and use the token to perform actions on the user's behalf.

Rohit Kumar Follow

Published on rohitcoder.medium.com

Bounty$500 View original

Complete Details === During my investigation, I found that a user’s DTSG token can be exposed to a third-party application because of a broken feature in Facebook’s Creator Studio (Web Version), That broken feature triggers an HTML file download in user’s device, which contains fbdtsg, hashes, ajaxpipetoken, LoggedIn…

Rohit kumar, on rohitcoder.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

Root cause

Likely the thumbnail download feature returned an error page instead of the intended file, and that error page included sensitive session tokens.

Impact

A malicious application on the user's device could read the downloaded file and use the token to perform actions as the logged-in user, though this requires local access to the download folder.

What the attacker needed

Victim uses Creator Studio; victim downloads thumbnails; malicious app on same device

How it was found

  1. Visit the Creator Studio content posts page.
  2. Open the 'Edit Video' modal for any video.
  3. Click the three dots at the footer of the modal.
  4. Select 'Download Generated Thumbnails'.
  5. An HTML file is downloaded containing the dtsg token and other details.

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.

When you use a website, it gives your browser a secret token to prove that actions come from you and not from an attacker. This report found that a Facebook tool accidentally downloaded a file containing that secret token onto the user's computer. Any other app on that computer could then read the file and use the token to act as the user.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Rohit Kumar

View all

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

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.