Remix.run Logo
▲ RossBencina an hour ago

>> It says that “Full Disk Access” allows the app to take actions on websites you’re signed in to. What?! > Is this wrong? It seems correct to me.

I'm not a web developer nor do I understand how browser secrets are managed on MacOS. If this is indeed correct, could someone please explain how this might be possible? Is it that bearer tokens or session state might be stored on disk in plaintext?

▲MrAlex94 an hour ago | parent | next [-]

Not quite plaintext (sqlite databases instead), but for Firefox you can access and read all of the profile data stored, uninhibited. You can enable master password but that only protects your logins, not any other data.

▲codebje 36 minutes ago | parent [-]

Huh, that's shonky. Chrome encrypts (secure) cookies in an sqlite3 database with a key managed by your OS; I kind of assumed all browsers did the same.

▲mook 19 minutes ago | parent [-]

But Chrome is also running as you; it still boils down to, Muse or whatever could eventually try to puppet Chrome to exfiltrate your data for its use. Much harder, yes; but some people _do_ seem to want to let their AI to do real world–affecting actions for them.

▲josh3736 8 minutes ago | parent | prev | next [-]

In short, https://xkcd.com/1200/

The desktop security model was designed in the 70s, when the biggest concerns were:

1. Protecting the system itself from its users, and

2. Protecting users from each other.

The need to protect one app from another wasn't a concern in the slightest, because basically all software was trustworthy, and even if it wasn't, there wasn't much to be gained for malware developers other than notoriety. So security was designed around making sure you couldn't break the system or mess with someone else's files (since you shared one machine with potentially thousands of other people).

Fast forward to today, and the latter is irrelevant (machines are rarely shared, especially outside your own family). The former is still somewhat of a concern, but mostly to prevent accidental damage, and manifests as "run this as administrator?" dialogs.

So we're left with every app running under the same user account (the one you use to sign in to your computer). By definition, that account has full access to all of your data (ie, ~/*), and every app you run inherits those permissions.

Your browser has to store its data (including cookies, session state, tokens, etc) somewhere it can read and write, which means somewhere your computer user account can read and write. But of course, that means that any other app you run can also read that data. Browsers do encrypt their cookie jar, but that just punts the problem a bit: the encryption key still needs to be saved somewhere the browser can access, which means other software running as you can access the key too. eg https://www.npmjs.com/package/chrome-cookies-secure

Apple has tried to paper over this situation on Macs by layering additional app-level permissions on top of the traditional UNIX security model, but it's leaky at best, and for power user tools to do anything useful, they end up needing the wide-ranging permissions discussed here — even if the tool only needs a small subset of that access.

This was fixed on mobile OSes by running every single app under its own UNIX user account so that the kernel can properly enforce separation between apps. This is far more effective, but also far more restrictive.

▲ an hour ago | parent | prev | next [-]
[deleted]
▲charcircuit 39 minutes ago | parent | prev | next [-]

Such software is typically called "stealers". People steal your login tokens and then resell them or use them to purchase things, read through private messages, spam other users, scam other users, get other users to install the malware, steal virtual items, find personal information, etc.

BTW Unlike Safari, Chrome protects against this by encrypting the cookies using macOS's keychain API.

▲cyberax an hour ago | parent | prev [-]

For example, a malicious app can add a browser plugin by directly manipulating your browser's profile. Or maybe just replace the browser entirely.

Also, "we encrypt secrets on disk" is usually just pure nonsense, only slightly better than using rot-13. If an app can decrypt the secrets without asking for your password, then a malicious app can also do that.

▲kccqzy 7 minutes ago | parent [-]

Nope. The macOS keychain doesn’t by default reveal secrets to a different app.