(This is a Brave bug report, but let me first describe the Chrome equivalent): Lately I have been trying to use two different Facebook logins on my phone: I am logged in in the Facebook Android app, and I tried logging in also in Chrome. I noticed that whatever I log in with on Chrome, even if I clear all my cookies and site data, Chrome somehow reuses the Facebook app login. I can’t make it log in with the second account. Bizarrely, I have to put in the correct login credentials in Chrome to even log in at all, but when it logs me in, it switches back to the (unlinked!) second account, effectively reusing the cookie from the Facebook app. I have no idea how it is doing this: it has to either be using some sort of Android-specific JS API to generate an Android Intent, to talk to the FB app, or it has to be reading the SD card, and something is stored there. I don’t know which it is, or what permissions would allow it to do either of those things, but I can’t think of any other mechanism that could explain this leakage of login info across the browser security model.
So instead, I installed Brave browser, for the first time on this nearly-brand-new phone. IMMEDIATELY upon visiting Facebook.com, I was already logged in, in Brave, without ever actually logging in in Brave.
This is Very Bad. The browser should have NO IDEA what I am logged in as on another app, and it should have no ability to read the SD card. It should not be able to generate Intents to talk to other apps, without asking my permission.
I noticed that TikTok also does similar witchcraft: If you uninstall TikTok and re-install it, you are immediately logged into the old account when you re-open the app. Somewhere on the SD card some cookie is stored permanently. This allows them to track your usage across app installs. I would expect much better of the browser security model than this!
Please somebody try to validate this behavior: (1) try logging in to different FB accounts on the FB app and the browser (you won’t be able to, if it’s anything like what I see on my phone); and (2) once you are logged into a FB account on the FB app, try uninstalling and reinstalling Brave, and then open Brave and go to facebook.com: you will be logged in without even authenticating.
User identity leakage across boundaries like this is very, very bad!