News for hackers. Stuff that matters.
Re:Bypassing macOS TCC user privacy protections by accident ... by lilyball on Sunday July 04, 2021 @06:12PM (#27733041)
How does granting automation access to Finder allow other users to access Alice’s data? TCC doesn’t negate standard Unix file permissions, and other users couldnt read Alice’s data before TCC. And the standard user directories (such as Desktop) are not accessible by other users.
Re:Bypassing macOS TCC user privacy protections by accident ... by adib on Monday July 05, 2021 @02:09AM (#27735064)
... by manipulating the Finder to:

(1) Create a snapshot of the entire file system; (2) or find a recent Time Machine local snapshot; then (3) mount the snapshot obtained in [1] or [2] without owners enabled, effectively granting Alice read-only access to other people's files without having administrative privileges.

Re:Bypassing macOS TCC user privacy protections by accident ... by lilyball on Monday July 05, 2021 @05:17AM (#27735978)
The Finder doesn’t create or mount APFS snapshots. And while I haven’t tested it, I fully expect Time Machine to still enforce Unix file permissions. You really need to be using the command line to do what you’re describing.
Re:Bypassing macOS TCC user privacy protections by accident ... by adib on Monday July 05, 2021 @07:50AM (#27736965)
I haven’t tested the Finder case though. Nevertheless there is the `tell ‘Finder’ ... do shell script ... end tell` construct that _may_ be able to get the Finder to launch an arbitrary subprocess (and may inherit full disk access) just like how Terminal would.

However I’ve tested mounting a local snapshot using the Terminal having full disk access and found out that it is possible to mount a local snapshot and make the mounted copy ignore Unix file permissions.

Re:Bypassing macOS TCC user privacy protections by accident ... by Dah00n on Sunday July 04, 2021 @07:50PM (#27733540)
It gives full sudo access.
Re:Bypassing macOS TCC user privacy protections by accident ... by lilyball on Sunday July 04, 2021 @08:22PM (#27733699)
Finder doesn’t run as sudo though. TCC is layered on top of Unix file permissions. It prohibits access to files, it doesn’t open a hole through pre-existing protections.

Basically, it acts as a sandbox rule. Sandboxing your app doesn’t allow you access to new files, it just denies access as determined by the sandbox profile.

Re:Bypassing macOS TCC user privacy protections by accident ... by lilyball on Sunday July 04, 2021 @08:29PM (#27733729)
I just took another look at the article and it appears I misunderstood what it was saying. I thought it was saying automation of Finder granted access to other users' files. This is not the case. It was talking about accessing other users' files in the previous section, but in this one it's merely claiming that allowing automation of Finder means being able to read data owned by your user that would otherwise be blocked by TCC.

And honestly, that's not a surprise. "Granting an app the ability to automate the Finder means granting it the ability to access any data the Finder can access" seems fairly obvious.

Re:Bypassing macOS TCC user privacy protections by accident ... by tsimionescu on Monday July 05, 2021 @01:49AM (#27734964)
The article's point is that, while understandable, the UI completely hides these facts from you. Finder is not mentioned as having FDA in the settings app, and so, even if you realize that Automation of FDA app means having FDA, you won't be able to tell implicitly that apps having Automation of Finder rights also have FDA through this mechanism.

Furthermore, in principle there is nothing stopping OSX from giving me a prompt when Automation AppX without FDA access wants to access my files through Finder specifically.