Meta caught breaking Android's sandbox by monitoring web browsing through its apps

Tracking is one of the most lucrative parts of the advertising business. The idea is that the more you know about a particular individual's interests and habits, the better their reaction to ads is.
Researchers have discovered a new tracking scheme that Meta, owner of Facebook, Instagram, and WhatsApp, an Russia-based Yandex have used to track users on the Internet.
The tracking was specifically designed to break the barrier between a user's web browsing on Android, using any of the installed mobile browsers, and the use of apps, like Facebook or Instagram.
A sandbox on Android protects data from being exchanged with applications or services that are outside of that sandbox. This allowed Meta and Yandex to bypass security and privacy protections on the devices.
Android, and iOS as well, implement various security and privacy features in this regard. Next to sandboxing, partitioning is used to separate data and make it inaccessible to unrelated resources.
How did Meta and Yandex track users?
The method has two requirements. First, that the user has installed at least one of the Meta or Yandex applications on the device.
Second, that sites are visited that implement the tracking pixels that Meta or Yandex use. Millions of sites do.
Both companies send web requests to local Android ports when users visited sites with their tracking code. The native apps listened on the same ports, effectively breaking the barriers that are in place to prevent this type of tracking and abuse.
Here is how the researchers describe the tracking: "The Android OS allows any installed app with the INTERNET permission to open a listening socket on the loopback interface (127.0.0.1). Browsers running on the same device also access this interface without user consent or platform mediation. This allows JavaScript embedded on web pages to communicate with native Android apps and share identifiers and browsing habits, bridging ephemeral web identifiers to long-lived mobile app IDs using standard Web APIs."
The researchers note that the tracking method bypassed typical privacy protections, including clearing cookies or using private browsing mode. Why? Because the installed applications still knew the user, even if all browsing data was deleted in the mobile browser.
With that in place, tracking would commence unhindered once the user started to browse again on the device.
Some browsers included protections against this kind of misuse. Brave, DuckDuckGo or Vivaldi block the behavior by default or when the blocking is enabled during browser configuration.
The researchers at Local Mess note that Meta has been using the method since September 2024. Yandex on the other hand seems to have implemented it since 2017.
A Google representative told Ars Technica that "the behavior violates the terms of service" for the Google Play marketplace and also the "privacy expectations of Android users".
Meta and Yandex have stopped the tracking at the time of writing.
Is this possible on PC too?
Thank goodness I don’t use those apps. I’m always shocked by how much junk people have installed on their phones when I have to fix an issue for them. They’ve got hundreds of food apps, useless shopping apps, social media, and so on. I always keep the most minimal number of apps on my phone possible.
Did they do the same thing on Apple a few years ago? I remember this news. So nothing changed. They just hacked more operating systems. I bet they do or try to so the same on Windows.
Can other browsers be checked as well ?
Most devices also seem to preinstall the stub for at least one FB pseudo app. Does this make them affected as well even though users havent installed the actual apps listed on app stores ?
If you can nor remove it, you have an option to deactivate/disable any third-party app in Android app settings. Also remove app’s permissions if the app has been used at least once. That what I do if somebody asks me to help with their phone.
In any civilized country with privacy legislation, this surely cannot be legal. If Facebook and Yandex are not prepared to follow privacy laws, they are free to leave those markets entirely. They will not be missed.
It’s clear that fines are not working and are seen as just a cost of doing business. Targeted advertising is a net negative to society and needs to be outlawed outright. Only contextual advertising should be permitted, as it’s clear that for-profit companies will continue to find ways to abuse consumers and spy, track and profile them even though the majority do not wish to be.
Keep in mind that Facebook paid to ensure that their app was pre-installed on the vast majority of Android phones, meaning it was already installed without the user downloading it and on Samsung phones for example, it was not possible to uninstall it (only disable it).
Brave was aware of this type of abuse years ago and subsequently implemented browser-level mitigations to prevent the browser from talking to localhost without explicit user consent (Localhost Resource Permission). And even before Brave included the mitigation directly in the browser, both Brave Shields and uBlock Origin had a filter list available that prevented browser access to localhost (Block Outsider Intrusion into LAN).
If Brave and uBlock Origin (and also Microsoft Edge before they switched to Chromium) were aware of this back then and actively took action to prevent it, there’s no way Google wouldn’t have known about it back then too. So why didn’t Google do the same with Chrome (another pre-installed app) – unless Google were complicit in this.
“uBlock Origin had a filter list available that prevented browser access to localhost (Block Outsider Intrusion into LAN)”
Yes, althought not enabled by default. The default tracker blocking lists in ublock origin might also block the tracking pixels too.
Never use the Facebook App on a phone. Or better yet, never use Facebook. I been 10 years Facebook free.
In other shocking news, water is wet, puppies are cute and ice cream is yummy.
Not a criticism of the article itself, thanks for informing and reminding readers that trust in apps and social media companies should remain at 0%.
Water is not wet.
Most scientists define wetness as a liquid’s ability to maintain contact with a solid surface, meaning that water itself is not wet.
@El Duderino, exactly! This is also why, when it starts raining on the beach, we all dive into the ocean to avoid getting wet :)
Your comment, likely shared by many, is maybe relevant of the fact that we’re so used to facing the insane and dishonest practices of major companies that our reaction to yet another may leave us indifferent, as the expression of a certain defeatism. IMO this is parented to surrendering. It is not because we’re expecting bad news that news aren’t news, it’s just that they aren’t new news so to say. I believe each and every information is to be published of course (which you do not deny) but as well received with the same level of anger and revolt, otherwise we’re just accepting, which may be a legitimate attitude when no alternatives exist, which it is definitely not when alternatives do exist : in this precise case, avoid Meta, your digital life will be but improved.