How Meta and Yandex Used Localhost Tracking to Bypass Privacy — And Why It Could Cost Meta $32 Billion
Meta and Yandex apps on Android listened on localhost ports, allowing tracking scripts on websites to send user identifiers directly to the app, bypassing incognito mode, VPNs, and cookie deletion. An attacker (or the companies themselves) could link browsing activity to real identities without consent.
💡 Not a Medium member? You can still read this article in full with(Click here)
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 Android allows any app with basic internet permission to listen on localhost ports, and browsers allow web pages to connect to localhost, so a native app can receive data from a web page without user awareness.
Impact
User activity across millions of websites could be linked to real identities without consent, bypassing cookie consent, VPNs, incognito mode, and Android sandboxing; Brave and DuckDuckGo were more resistant due to aggressive blocking of localhost traffic.
What the attacker needed
Facebook or Instagram app installed and running; Victim visits a site with Meta Pixel; Android device
The fix
Android should treat localhost access as a separate permission, browsers should log WebRTC/STUN activity in developer tools, and regulators should enforce privacy laws; the article notes Meta removed the code after public disclosure.
How it was found
- Install and run the Facebook or Instagram app so it opens a socket on a local port.
- Visit a website that includes the Meta Pixel script.
- The script uses WebRTC to connect to localhost and sends a crafted message containing the Facebook cookie.
- The app receives the cookie and relays it to Meta via GraphQL, linking the browsing session to the user's Facebook ID.
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.
When you visit a website, small scripts can run in your browser. Normally these scripts can only talk to their own servers on the internet. But on a phone, apps can also listen on 'localhost' — a special address that means 'this same device'. If a script sends data to localhost, an app on your phone can catch it. This article says Facebook and Yandex apps did exactly that to collect your browsing data secretly.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.