Disclose-Page-Admins-Via-Watch-Parties-In-A-Facebook-Group
A page linked to a group could post a watch party, and the API response disclosed the page owner's user ID and name to group members. An attacker could use this to identify the admin behind a page.
Published on philippeharewood.com
Given a page that has been linked to a group, and that page decides to post a watch party, the actor of the page will be disclosed to the group members. Proof of Concept
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.
Context
Facebook Pages can be linked to Facebook Groups, so that content posted by the page is associated with the group. When a page that is linked to a group starts a watch party, the party is created under the page's identity, but the backend still records the human user who owns the page as the party owner.
The watch party feature lets a page or profile host a shared viewing session. The report concerns the endpoint that serves watch party data to viewers, and specifically the owner fields it returns.
Setup
The precondition is a page that has been linked to a group, and a watch party started by that page. No specific tooling, version or role configuration beyond this is described.
Finding it
The researcher observed that when a page linked to a group posts a watch party, the actor of the page is disclosed to the group members. The party is presented as belonging to the page, but the data returned to viewers identifies the underlying user account that created it.
Exploitation
Step 1: Request the watch party data
HTTP POST /async/watchparty/WATCH_PARTY_ID
The request targets the asynchronous watch party endpoint for a given party identifier. The report does not show any request body, headers or authentication details.
Step 2: Read the owner fields in the response
The response contains the owner, which is the user rather than the page, who created the party. The relevant excerpt is:
"ownerName": "Page Owner",
"isownerpage": false,
"ownerid": "USER_ID",
"isownerfriend": false,
"isownershowpage": false,
Here ownerName carries the page owner's name, ownerid carries the user identifier, and isownerpage is false, confirming that the owner recorded for the party is a user account and not the page. The isownerfriend and isownershowpage flags are also false in this response.
Step 3: Repeat as new parties start
The researcher notes that as each new party starts, the owner fields change to the last owner who created a watch party. In other words, the endpoint reflects whichever user most recently created a party.
Root cause
The watch party record stores the creating user as its owner, and the endpoint returns that owner. The researcher's view is that this should only be scoped to those with an admin role in the group. The response identifies the user rather than the page. The researcher's view is that this data should only be scoped to those with an admin role in the group. The report does not describe the server-side authorisation logic, so the exact check that was missing is not stated.
Impact
The disclosure could have leaked the page admin through creating a watch party on a group linked to the page. The disclosure was to group members and reveals the user account behind the page rather than the page itself.
Fix
Facebook fixed the issue on 1 May 2018, after further investigation on 4 April 2018. The scoping the researcher proposed is to restrict the owner fields to users with an admin role in the group.
Variants to test
- A positive result is a user identifier or name returned alongside a flag showing the owner is not the page.
- A positive result is the same mismatch between the page identity and the underlying user.
- A positive result is the owner fields updating to the most recent creator, as seen here.
- A positive result is identical owner data for both, showing the fields are not scoped to admins.
Timeline
| Date | Event |
|---|---|
| Mar 27, 2018 | Report sent |
| Apr 4, 2018 | Further investigation by Facebook |
| May 1, 2018 | Fixed by Facebook |
| May 9, 2018 | Bounty awarded by Facebook |
What happened, in plain words
Facebook lets a Page (the public profile a business, brand or public figure uses) be linked to a Group (a place where people gather to discuss something). When a Page is linked to a Group, things the Page posts can show up for the Group's members.
One of the things a Page can post is a watch party: a shared viewing session where several people watch the same video together and comment as it plays. When a Page linked to a Group started a watch party, the party looked like it belonged to the Page. But the data the website fetched to display the party also contained the name and numeric identifier of the real person who owns the Page. The data was disclosed to the Group's members, and the researcher argued it should only be visible to administrators. So the person behind a Page could be revealed simply because a watch party was hosted in a linked Group.
This kind of mistake is often called an information disclosure: the software works as intended, but it hands out a piece of information to people who should not have it. Nothing is broken into and no password is stolen; the private detail is simply included in a response that too many people are allowed to read.
Background you need
A few ideas come up repeatedly below, so here they are from scratch.
- Page: a public presence on Facebook for an organisation or public figure. A Page is run by one or more people, but it is not the same thing as those people's personal accounts.
- Group: a space on Facebook where members share posts. Groups have administrators (admins), who manage members and settings, and ordinary members.
- Watch party: a shared viewing session. Someone starts it, and other people join to watch the same video at the same time.
- Endpoint: a specific address on a website's server that the browser (or an app) sends a request to. Think of it as a counter in a large building: the building is the website, and each counter handles one kind of request.
/async/watchparty/WATCH_PARTY_IDis one such counter. - API: the set of endpoints and rules a website uses to fetch and send data behind the scenes. When a page loads and shows a watch party, it is really asking an API for the party's details.
- Request and response: the browser sends a request (what it wants) and the server sends back a response (the answer, usually in a text format called JSON, which is just labelled data such as
"name": "value"). - HTTP POST: a type of request used when the browser is sending something to the server or asking it to perform an action, rather than just asking to view a page.
- Identifier (ID): a unique number or string the platform uses internally to refer to a particular user, page or party. It is not usually shown to people, but it is stable and can be used to look someone up.
- Field: one labelled piece of data inside a response, for example
ownerNameorownerid. - Authorisation: the check that decides whether the person making a request is allowed to see or do a particular thing. A missing or too-loose authorisation check is what lets data reach people who should not have it.
- Scoping: limiting who a piece of data is shown to. Saying data "should be scoped to admins" means only admins should receive it.
The setup
The precondition for the issue is simple: a Page that has been linked to a Group, and a watch party started by that Page. No special tools, software versions or unusual role settings are described beyond that.
Finding it
The researcher noticed that when a Page linked to a Group posts a watch party, the actor of the Page is disclosed to the Group's members. "Actor" here means the account that performed the action. The party is presented as belonging to the Page, but the data returned to viewers identifies the underlying user account that created it.
Exploitation
Step 1: Request the watch party data
HTTP POST /async/watchparty/WATCH_PARTY_ID
Line by line:
HTTP POSTsays this is a POST request, the kind used to ask the server to do something or to submit data, rather than a plain page view./async/watchparty/WATCH_PARTY_IDis the endpoint.asyncsuggests the data is fetched in the background by the page's code rather than being part of the page itself.watchpartynames the feature.WATCH_PARTY_IDis a placeholder for the identifier of a particular party; in a real request it would be replaced by the actual number.
The request targets the asynchronous watch party endpoint for a given party identifier. The report does not show any request body, headers or authentication details, so we do not know exactly what else was sent alongside it.
Step 2: Read the owner fields in the response
The response contains the owner, which is the user rather than the Page, who created the party. The relevant excerpt is:
"ownerName": "Page Owner",
"isownerpage": false,
"ownerid": "USER_ID",
"isownerfriend": false,
"isownershowpage": false,
Line by line:
"ownerName": "Page Owner"is the name recorded for the party's owner. In the report this is shown as the placeholderPage Owner, standing in for the real person's name."isownerpage": falseanswers the question "is the owner a Page?". The answer is no. This is the key line: the party was started by a Page, yet the owner recorded is not a Page."ownerid": "USER_ID"is the internal identifier of the owner.USER_IDis a placeholder for the real number. Because it is a user identifier rather than a page identifier, it points at the person behind the Page."isownerfriend": falseis a flag saying whether the owner is a friend of the person viewing the data. Here it is false."isownershowpage": falseis another flag, false in this response.
Put together, the response tells any viewer the name and user identifier of the human who owns the Page, while the party itself is presented as the Page's. That mismatch is the whole issue.
Step 3: Repeat as new parties start
The researcher notes that as each new party starts, the owner fields change to the last owner who created a watch party. In other words, the endpoint reflects whichever user most recently created a party. This matters because the owner fields change as each new party starts.
Why it happened
The watch party record stores the creating user as its owner, and the endpoint returns that owner. The researcher's view is that this should only be scoped to those with an admin role in the Group. The response identifies the user rather than the Page. The researcher's view is that this data should only be scoped to those with an admin role in the Group. The report does not describe the server-side authorisation logic, so the exact check that was missing is not stated.
A useful comparison: imagine a company's parcels are all addressed to the company name, but the delivery note inside each box also prints the name of the employee who packed it. Anyone allowed to open the box sees the packer's name, even though the parcel was meant to represent only the company.
Impact
The disclosure could have leaked the Page admin through creating a watch party on a Group linked to the Page. The disclosure was to Group members and reveals the user account behind the Page rather than the Page itself.
The fix
Facebook fixed the issue on 1 May 2018, after further investigation on 4 April 2018. The scoping the researcher proposed is to restrict the owner fields to users with an admin role in the Group.
Variants to test
Each one is a way of asking the same question: does a response show the person behind a Page to someone who should not see it?
- A positive result is a user identifier or name returned alongside a flag showing the owner is not the Page.
- A positive result is the same mismatch between the Page identity and the underlying user.
- A positive result is the owner fields updating to the most recent creator, as seen here.
- A positive result is identical owner data for both, showing the fields are not scoped to admins.
Timeline
| Date | Event |
|---|---|
| Mar 27, 2018 | Report sent |
| Apr 4, 2018 | Further investigation by Facebook |
| May 1, 2018 | Fixed by Facebook |
| May 9, 2018 | Bounty awarded by Facebook |
Glossary
- Actor: the account that performed an action, such as creating a watch party.
- Admin (administrator): a member of a Group with permission to manage it and its members.
- Asynchronous endpoint: an endpoint the page's code calls in the background to fetch data, rather than one that loads a whole page.
- Bounty: a reward paid by a company to someone who reports a security issue to it.
- Endpoint: a specific address on a server that handles one kind of request.
- Field: one labelled piece of data inside a response, such as
ownerName. - Flag: a field whose value is true or false, answering a yes/no question.
- Group: a space on Facebook where members share posts, managed by admins.
- HTTP POST: a request type used to send data to a server or ask it to perform an action.
- Identifier (ID): a unique number or string the platform uses internally to refer to a user, page or object.
- Information disclosure: a flaw where data is handed to people who should not have it, without anything being broken into.
- JSON: a text format for labelled data, written as
"name": "value"pairs. - Page: a public presence on Facebook for an organisation or public figure, run by one or more people.
- Page owner: the person whose user account controls a Page.
- Request / response: what the browser sends to the server, and the answer the server sends back.
- User account: a person's personal Facebook account, as opposed to a Page.
- Watch party: a shared viewing session where several people watch the same video together.