Skip to content
IDOR Write-up Intermediate

Disclose assigned apps of any facebook user

A GraphQL query that returned data sources for a business account also accepted a user ID, letting anyone list the apps assigned to any Facebook user. An attacker could use this to disclose the assigned apps of any user.

Gtm Mänôz Follow

Published on gtm0x01.medium.com

There is a GraphQL query named AccountQualityDataSourceCardWrapperRootQuerythat fetches the data sources of any facebook business account by taking the value of “assetOwnerId” as business account id. At the time of reporting, call for business account id was secured but was vulnerable for the user id.

Gtm Mänôz, on gtm0x01.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 GraphQL query did not check that the assetOwnerId belonged to the caller or to a business account, so it accepted a user ID and returned that user's data sources.

Impact

This could have let a malicious user disclose all the assigned apps of any Facebook user.

What the attacker needed

Knowledge of the target user's ID; ability to send GraphQL requests

How it was found

  1. Send the GraphQL request as an AJAX call in the console window.
  2. Use the AccountQualityDataSourceCardWrapperRootQuery with the target user's ID as assetOwnerId.
  3. Read the response listing the user's assigned data sources.

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 GraphQL query is a way for a website to ask its server for specific data. This query was meant to show data sources for a business account, but it also worked with a normal user ID, so anyone could see which apps were linked to another person's account.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.