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.
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.
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
- Send the GraphQL request as an AJAX call in the console window.
- Use the AccountQualityDataSourceCardWrapperRootQuery with the target user's ID as assetOwnerId.
- 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.