Skip to content
Mobile Write-up Intermediate

Facebook room deep linking vulnerability, allow malicious user to know the code for anyone’s meeting.

A deep link scheme in the Facebook Lite Android app could be registered by a malicious app, which would then receive the room code when a user opens a Facebook room link. The attacker could use that code to join the meeting and disrupt it.

Abid Ahmad Follow

Published on medium.com

Facebook room has been a staple for a lot of people for quite a while now from corporate, class or even personal. I use this myself.

Quel, on 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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

Facebook Room is a group calling feature inside Facebook, used for corporate meetings, classes and personal calls. Each room is identified by a code, a string that identifies the room, and that code is what a participant needs in order to join. The report concerns FBLite, the lightweight Android client, and specifically the way it handles deep links into rooms.

A deep link lets another app or a browser hand a URL to FBLite, which then opens the matching screen. If the link contains the room code and the client accepts the link from any caller, then any app on the device that registers for the same scheme and host can receive the same URL and read the code out of it.

The researcher frames the issue as a privacy and integrity problem: an uninvited party who learns a room code can enter a group call or meeting and share explicit content, offensive acts, hate speech, fake news or simply disrupt the session, in the same way that meeting bombing has affected other group calling products. The report also notes that users sometimes embed Facebook Live inside room calls to share meetings, so an intruder would be visible to the whole organisation.

Setup

The testing was done on Android 11.

Item Value
Mobile app FBLite, version 271.0.0.6.119
OS Android 11
Browser N/A
Users User A
Environment FB_ROOM A
Tools Android Studio, a sample app built by the researcher

Facebook's assessment is that the victim would need a malicious application installed and would need to open the link through it rather than through Facebook. The researcher notes that the number of apps a user installs cannot be controlled, which is why the product side should be made safer.

Finding it

The researcher inspected the Android manifest of FBLite and found an interesting scheme and host declared for room deep links. That declaration is what tells Android that FBLite can handle URLs of that shape. The researcher copied the <intent-filter> into a sample app, which then parsed the path segments of the link and displayed the room code.

To confirm the behaviour, the researcher created a sample application in Android Studio, copied the <intent-filter> from FBLite into it, and parsed the path segments of the link whenever a deep link was delivered, displaying the code. The sample app only displays the code, but the researcher notes it could just as easily store it, for example in a database such as Firebase.

The researcher also points out that a single user can have multiple rooms, some of which are never deleted and remain until the user removes them, so every code collected this way is worth keeping.

Exploitation

Step 1: User A receives a Facebook room link

The victim is sent a room link in the normal way. Nothing about the link itself is unusual; it is the same link a legitimate participant would use.

Step 2: User A clicks the link

Android may ask which application should open the link, or FBLite may already be the default handler from the start. If a malicious app is installed and is selected, or has been made the handler, the URL is delivered to it instead of to Facebook.

Step 3: The malicious app takes the room code

The malicious app receives the deep link, parses its path segments and extracts the code, the string that identifies the room. In the researcher's sample app the code is displayed on screen; in a real attack it could be persisted, for instance to Firebase.

Step 4: The attacker joins the call

With the code in hand the attacker joins the group call and can share explicit content, offensive acts and similar material. The researcher's proof of concept is an unlisted YouTube video:

Or watch on YouTube
From the original on medium.com
Text
https://youtu.be/uNnGw8O9w4g

The report does not include the manifest snippet, the intent filter, the link format or the parsing code, so the exact scheme, host and path layout are not reproduced here.

Root cause

The room code is carried in a deep link, and FBLite declares an intent filter for that link that any other app can also declare. Android's link dispatch then allows a competing app to receive the URL, and because the code is present in the URL path, the receiving app can read it without any further privilege.

Facebook's reply notes that the victim still has the option to kick an intruder out of the room. Facebook's reply also notes that it does accept some scenarios that require a malicious application on the victim's device, but in those cases the possible impact is much higher than entering a room from which the victim can still remove you.

Impact

An attacker who gets the victim to open a room link through a malicious app learns the room code and can join the call. The report lists the consequences as privacy invasion, meeting bombing in the style of Zoom bombing, and offensive speech, acts, hate, fake news and explicit content. The researcher notes that some rooms are never deleted and remain until the user removes them, and that users sometimes embed Facebook Live in room calls to share meetings.

The attack requires the victim to have the malicious application installed and to open the link through it rather than through Facebook. The victim retains the ability to remove the intruder from the room.

Fix

The report does not describe a fix that was applied. Facebook closed it as informative, stating that the team may make changes based on the report but that it fell below the bar for a monetary reward. The researcher's position is that the issue needs to be fixed so that it is not abused, given how widely rooms are used.

Variants to test

  1. Enumerate other deep link handlers in the same client and check whether their intent filters carry sensitive identifiers in the path. A positive result is a link whose path or query contains a room, meeting, group or invite identifier that another app can read after registering the same filter.
  2. Register the same scheme and host in a test app and confirm that Android offers it as a handler for the link. A positive result is the test app receiving the full URL when the link is opened.
  3. Check whether the client validates the caller of the deep link, for example by requiring a signature or a verified app link association. A positive result is the link being accepted from an app that has no relationship with Facebook.
  4. Test whether the code alone is sufficient to join, or whether the join flow also requires an authenticated session with membership of the room. A positive result is a join succeeding with only the code and an unrelated account.
  5. Look for the same pattern in other group calling features that expose join codes through links, and check whether codes are rotated or expire. A positive result is a long lived code that can be harvested from a link and reused later.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 9 min read.

What happened, in plain words

Facebook Room is a feature inside Facebook for group calls. You can think of it a bit like a phone conference line: several people dial in and talk together. It is used for work meetings, online classes and calls with friends and family. Every room has a code, which is a short string of characters that identifies that particular room. If you know the code, you can join the room. That is the whole point of the code: it is the key to the door.

FBLite is the lightweight version of the Facebook app for Android phones. Like many apps, it can be opened by a link. When you tap a link on your phone, Android looks at the link and decides which app should open it. This is called a deep link: a link that does not just open a web page but jumps straight into a specific screen inside an app. For example, tapping a link to a room should open FBLite and take you into that room.

The problem the researcher found is about who else can receive that link. Android lets apps announce which kinds of links they can handle. FBLite announces that it can handle room links. But any other app on the phone can make the same announcement, and then Android may offer that app as a choice when the link is tapped, or even send the link to it by default. If a malicious app receives the link, it can read the room code out of the link, because the code is part of the link itself. Once the attacker has the code, they can join the room.

The researcher built a small test app to prove this. The test app does not do anything clever: it just reads the link it receives and shows the room code on the screen. But the same trick could be used to save the code somewhere, such as a database, and collect codes from many victims.

The consequences are the same as the "Zoom bombing" problem that other group calling products have had: an uninvited person joins a call and shares explicit content, says offensive things, spreads hate speech or fake news, or simply disrupts the meeting. The researcher also points out that people sometimes share their meetings through Facebook Live embedded in a room call, so an intruder would be visible to the whole organisation.

Facebook replied that the issue was valid but that it fell below the bar for a monetary reward. Their reasoning was that the victim would need to have a malicious app installed and would need to open the link through that app instead of through Facebook, and that even then the victim can still kick the intruder out of the room. The report was closed as informative.

The setup

The testing was done on Android 11.

Item Value
Mobile app FBLite, version 271.0.0.6.119
OS Android 11
Browser N/A
Users User A
Environment FB_ROOM A
Tools Android Studio, a sample app built by the researcher

Android Studio is the official program that developers use to write Android apps. The researcher used it to build a small app for the test.

Facebook's reply notes that the victim would need a malicious app installed and would need to open the link through it rather than through Facebook. You cannot control which apps a person installs, which is exactly why the product itself should be made safer.

Finding it

Every Android app contains a file called the Android manifest. It is a kind of identity card and instruction sheet for the app: it lists the app's name, the permissions it needs, and the kinds of links it wants to handle. The researcher looked at the manifest of FBLite and found an interesting scheme and host declared for room links.

Two terms need explaining here. A URL (the address of a link) has a few parts. The scheme is the first part, the bit before ://, such as https. The host is the part after it, the domain name, such as example.com. The path is everything after the host, the part that looks like folders, such as /room/12345. A declaration in the manifest that says "this app handles this scheme and host" is called an intent filter. It is the app telling Android: when a link of this shape arrives, I can open it.

The concern is that this declaration is not exclusive. Any other app can declare the same intent filter. When two apps claim the same links, Android has to choose, and it may ask the user, or it may use whichever app the user has set as the default. If a malicious app wins that choice, it receives the URL. And because the room code sits in the path of the URL, the malicious app can simply read the path segments and pull the code out.

To confirm the behaviour, the researcher created a sample application in Android Studio, copied the <intent-filter> from FBLite into it, and parsed the path segments of the link whenever a deep link was delivered, displaying the code. Parsing means breaking the URL into its parts and reading the pieces you care about. The sample app only displays the code, but the researcher notes it could just as easily store it, for example in a database such as Firebase. Firebase is a cloud database service often used by mobile apps, so saving data there is easy and does not require the attacker to run their own server.

The researcher also points out that a single user can have multiple rooms. Some rooms are never deleted and remain until the user removes them. So every code collected this way is worth keeping, because it may still work much later.

Exploitation

Step 1: User A receives a Facebook room link

The victim is sent a room link in the normal way. Nothing about the link itself is unusual. It is the same link a legitimate participant would use.

Step 2: User A clicks the link

Android may ask which application should open the link, or FBLite may already be the default handler from the start. If a malicious app is installed and is selected, or has been made the handler, the URL is delivered to it instead of to Facebook. This is the moment the attack succeeds or fails: if the link goes to Facebook, nothing is leaked; if it goes to the malicious app, the code is exposed.

Step 3: The malicious app takes the room code

The malicious app receives the deep link, parses its path segments and extracts the code, the string that identifies the room. In the researcher's sample app the code is displayed on screen. In a real attack it could be persisted, for instance to Firebase, so that codes from many victims can be collected and used later.

Step 4: The attacker joins the call

With the code in hand the attacker joins the group call and can share explicit content, offensive acts and similar material. The researcher's proof of concept is an unlisted YouTube video:

Or watch on YouTube
From the original on medium.com
Text
https://youtu.be/uNnGw8O9w4g

The video is the researcher's demonstration of the attack. The report does not include the manifest snippet, the intent filter, the link format or the parsing code, so the exact scheme, host and path layout are not reproduced here.

Root cause

The room code is carried in a deep link, and FBLite declares an intent filter for that link that any other app can also declare. Android's link dispatch then allows a competing app to receive the URL. Because the code is present in the URL path, the receiving app can read it without any further privilege. In everyday terms: the code is the key, and the key is written on the outside of the envelope.

Facebook's reply notes that the victim still has the option to kick an intruder out of the room. Facebook's reply also notes that it does accept some scenarios that require a malicious application on the victim's device, but in those cases the possible impact is much higher than entering a room from which the victim can still remove you.

Impact

An attacker who gets the victim to open a room link through a malicious app learns the room code and can join the call. The report lists the consequences as privacy invasion, meeting bombing in the style of Zoom bombing, and offensive speech, acts, hate, fake news and explicit content. The researcher notes that some rooms are never deleted and remain until the user removes them, and that users sometimes embed Facebook Live in room calls to share meetings.

The attack requires the victim to have the malicious application installed and to open the link through it rather than through Facebook. The victim retains the ability to remove the intruder from the room.

Fix

The report does not describe a fix that was applied. Facebook closed it as informative, stating that the team may make changes based on the report but that it fell below the bar for a monetary reward. The researcher's position is that the issue needs to be fixed so that it is not abused, given how widely rooms are used.

Variants to test

These are follow-up checks a researcher could run to see whether the same pattern appears elsewhere. Each one is written as a test and a positive result.

  1. Enumerate other deep link handlers in the same client and check whether their intent filters carry sensitive identifiers in the path. A positive result is a link whose path or query contains a room, meeting, group or invite identifier that another app can read after registering the same filter.
  2. Register the same scheme and host in a test app and confirm that Android offers it as a handler for the link. A positive result is the test app receiving the full URL when the link is opened.
  3. Check whether the client validates the caller of the deep link, for example by requiring a signature or a verified app link association. A positive result is the link being accepted from an app that has no relationship with Facebook.
  4. Test whether the code alone is sufficient to join, or whether the join flow also requires an authenticated session with membership of the room. A positive result is a join succeeding with only the code and an unrelated account.
  5. Look for the same pattern in other group calling features that expose join codes through links, and check whether codes are rotated or expire. A positive result is a long lived code that can be harvested from a link and reused later.

Glossary

  • Android manifest: a file inside every Android app that describes the app, its permissions and the kinds of links it can handle.
  • Android Studio: the official program developers use to write and build Android apps.
  • Deep link: a link that opens a specific screen inside an app rather than a web page.
  • Default handler: the app Android uses automatically for a kind of link, without asking the user each time.
  • FBLite: the lightweight version of the Facebook app for Android.
  • Firebase: a cloud database service often used by mobile apps to store data.
  • Host: the domain part of a URL, the bit after the scheme, such as example.com.
  • Intent filter: the declaration in an Android manifest that says which kinds of links an app can open.
  • Meeting bombing: joining someone else's online meeting without an invitation, usually to disrupt it.
  • Parse: to break a piece of text such as a URL into its parts and read the pieces you need.
  • Path: the part of a URL after the host, the bit that looks like folders, such as /room/12345.
  • Scheme: the first part of a URL, the bit before ://, such as https.
  • URL: the address of a link.
  • Zoom bombing: the name given to meeting bombing after incidents on the Zoom video calling product.

Similar reports

View all

Same bug class and techniques, clearest first.

Mobile app vulnerabilities

The lesson behind this report.

Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.