630 points · by neodypsis · 4y ago · 393 comments
And ownership. (The sentence before that suggests "root directory" here means "directory owned by root".) The permissions on the directory apply only to the file's directory entry, not the file itself.
This isn't a "subtlety", it's how it works, and no-one who doesn't understand this should be writing macOS installers.
The correct approach is to open the file for read and copy its bytes into your private area. Only then check the cryptographic signature. Just renaming into your private directory isn't enough, even if that directory has no read or execute access to other users, because the attacker could have opened the file for write access before you did the rename.
https://unix.stackexchange.com/questions/684122/what-permiss...
Using the "folder" mental model leads to exactly the bugs in TFA. "Oh, the root folder can only be accessed by root, so if I put a file _inside_ that folder it will be protected". Thats not how it works.
> And you could easily have file access permissions depend on the directory if you wanted to.
No, because you can have multiple links in multiple directories all pointing to the same file.
Let's put all subtleties about Unix directories to the side. Zoom wanted to change the permissions of a file so that only root could access it. The obviously correct way to do that is to simply change the permissions of the file.
Even if their solution of putting the file in a root dir worked the way they expected, it would be a circuitous and hacky solution.
> sounds like a lot of reliance on people knowing and wanting to do the right thing?
At a certain point, people need to have basic knowledge. There's a lock on your front door. It does not lock when you turn your lights off. The lock maker is not responsible if you expected it to.
Obvious, but incorrect. As pointed out elsewhere, the permission check is done when a process opens a file, not when it performs read/write operations. So, an attacker could get a legitimate file, open in for writes, trigger the zoom update on it, zoom would then change the permissions to prevent writes, and then the attacker could modify the file using its already-open file handle.
Sounds like its something that probably happens a lot and will continue to happen a lot?
Objective C does retain perms by default using some common move techniques.
If you're using a library or tool to do this for you, you should know what it's doing.
https://superuser.com/questions/101676/is-there-some-differe...
It is not until the last comment of the accepted answer that you get to the difference in permissions. (along with the answers that are not accepted as best)
Besides, for what zoom does, why do they need an app? Browser has all the capabilities they need.
Just a little snippet from the Teams installer page: "Windows Firewall configuration will be altered even when the prompt is dismissed by selecting “Cancel”. Two inbound rules for teams.exe will be created with Allow action for both TCP and UDP protocols."
Does zoom have such a thing as an unsolicited incoming meeting/join request? You don't have to answer, idk and don't care, just guessing at possible theoretical legit uses just to be complete.
I just know there's all kinds of use cases I have no use for, or actively hate, that most other people seem to love, not even just businesses inflicting things on employees but normal people using voluntarily.
Discovered this during pandemic WFH. Since then, this is THE collaborative drawing tool for any design discussions, interviews etc.
On the other hand, Zoom web client is an afterthought, to put it nicely.
Just because you're root does not mean you get any entitlement you want, or arbitrary access to the whole filesystem, arbitrary memory access (a la /dev/(k)mem), or can replace the kernel just like that.
(That's also probably why you don't hear of iPhones being "rooted", but rather "jailbroken". Just being root on an iPhone wouldn't do that much.)
Make no mistake, this is still a privilege escalation attack and needs to be fixed.
Top tip for people that use 1Password: I’ve discovered recently that you can run it as an ssh agent. That way your keys never leave the 1password app.
https://help.apple.com/pdf/security/en_US/apple-platform-sec...
This means that if the user as given Zoom access to the mic and camera (a more than likely scenario), our injected library can equally access those devices.”
The only annoyance is having to manually extract it out of the downloaded archive when I want to update it. But IIRC, this takes two commands, not including the commands to swap the new app bundle with the old.
The downloaded archive is compressed with xar, and I believe that one should be extracted into an empty directory because otherwise it will spray files everywhere. Then the app bundle is in a gzipped cpio file...I think it's at Contents/Payload.
It does some unusual stuff that it probably doesn't actually need to be doing.
They have taken the market by storm, because most people care about the former, not the latter
Per-app self-updaters are such a disgrace, it really makes me wish I could cheer this on. It's a shame that their elimination, for Mac users, might mean that the app store becomes the only or primary mechanism for automatic app updates on macOS.
What would they stand to gain from this? They already have root on the machine, so they could just send an "update" to that code to do whatever they need.
Udocker and singularity (the containerization toolset) also help a ton too. Docker's root requirements make it unsuitable for lots and lots of situations where it would otherwise be useful.
Zoom for government is authorised for FedRAMP moderate, and has authorisations from the DoD and the Air Force. Does that mean anything?
It means they ticked a lot of boxes.
Certifications only overlap a little bit with actual security. Most of SOC2 for example is just bureaucracy and a cash grab by enterprise SSO providers.
[0]: https://fly.io/blog/soc2-the-screenshots-will-continue-until...
By default if you click a Zoom meeting link to join, it takes you to the Zoom page and starts a download of the installer (.pkg for Mac). The "Join from Browser" option is hidden and if I remember right, you have to click "Join" again, and then it will show a small HTML link about Join from Browser.
The Browser experience is subpar and buggy. A lot of features lag in the UI, it's very slow to connect to audio, and there are a few options I recall that reload the entire page without warning, meaning you leave the meeting and have to reconnect, often to find a double of yourself.
I also noticed issues with USB Audio devices where after awhile, a static-ey robot noise would appear from you. No other voice apps I used experienced this, only Zoom and only with USB devices and from the browser version. Maybe it's something with Firefox + USB audio, but never was interested to investigate more.
Zoom is really not good software and it's an exercise in frustration when we have to use it at work, and the pricing model seems a bit ridiculous, even for basic users.
On the other hand, I’ve not had any audio or video problems once in the call, so ymmv.
Having used pretty much all video conferencing software, it's by far the best in terms of features, UX, call quality, feature distribution across platforms (do you know that some like BlueJeans don't allow you to have a separate audio input/output device if the device chosen for one supports both? (I have headphones and a separate mic, i can't have the headphones for output only). With Zoom as long as everyone is on the app and not the browser version, all features work. Teams on Linux or mac is always lagging months behind.
Most use them to update the application seamlessly without a pop up asking for permission from the users afaik.
But yes it does mean you get hilarious stuff you wouldn't expect like privilege escalation to root in teams, zoom, etc.
I did one other thing when I discovered their app auto installing a launchd auto-update service:
rm -rf ~/.zoomus
sudo touch ~/.zoomus
This makes a file with root permissions where they hide their auto-update script directory. This causes their code to (silently) err out and viola, no more launchd junk.[1]: https://gist.github.com/caldwell/c212119fffd92a1d706c0a9b00f...
The UX for packages also sucks. With DMGs you just mount and then drag to the Applications folder… even the most basic macOS users have done this.
It still has way, way more privileges than a webapp. And arguably, if you have all your valuable information in a single user account, it has the crown jewels already, no admin needed.
E.g. Unix was built around the idea that other users should not be trusted but applications can be trusted; it is becoming painfully clear that this idea is wrong.
Honestly, this is the number 1 confounding factor for me in terms of the “app stores should be more open” argument. Sure, Apple is stifling innovation in phone applications by disallowing this type of thing, but also the Zoom app is much better behaved on iPhone because it has to be. Personally I am happy trading off some convenience for security, but I am unsure if there is a “correct” answer here. My personal hope is that VMs will become useful enough that it will become viable to have a crude per-shitty-application sandbox for folks that are security conscious. I already have done this with tools like docker from time to time, which admittedly isn’t a great experience.
‘Been fairly good’
Those can’t both be true
https://developer.apple.com/documentation/bundleresources/in...
Chrome has to go through the hoops on Mac every time it updates to re-allow it in Privacy Settings for Google Hangouts to work. It's such a pain.
That said, it could just ask for your password at the time.
edit: meant this in response to some comments below about Zoom requiring admin access to install on macOS
It isn't root all the time, and is only root when provided with the proper password.
Because the UX of other offerings is so poor and zoom for most part just works.
I say this as someone who is aware of the security issues, but still prefer zoom over anything else.
Half the options that should be on a meeting-basis are buried deep into the user settings, only accessible from the web interface, and they have confusing names and meanings. I've used lots of softwares, Zoom might be one of the worst when it comes to UX.
Teams, Google Meet, etc all seem to fall apart on large calls with participants who have questionable hardware and/or wifi. Zoom works with those same people.
This is based on my experience early in the pandemic, so it's possible the landscape has changed since then. We tried a bunch of different options at my company, because we explicitly didn't want to use Zoom, but Zoom worked like nothing else did.
For me, it’s Teams. It’s worse in almost every way.
We switched to zoom though because the performance was just better than anything (we tried a boat load of tools - but most of them were just shiny saas offerings on top of Chrome). Now I’m on an M1 it doesn’t matter as much, but zoom was the only thing that didn’t totally kill our machines before that.
I’ve had better experiences as an attendee on other software. (I think one was Gotomeeting). Works flawlessly in the browser. No dark patterns like the way Zoom tries to trick you into downloading their malware.
And the interface was superior, in my opinion. No idea how good / bad the presenter UX is, though.
In addition, even if I select "System default microphone", that doesn't always work correctly. As far as I can tell, that option doesn't mean to attach to the default source. Instead, it means to attach to the same source that is currently bound to the default source. If I change the default source later, Zoom doesn't get moved along with it.
While we are at it why can’t I control what audio interfaces are available to a specific program on a program by program basis? No, I will never want to use Steam Streaming Audio or my Oculus quest mic on a webex/zoom. Ever.
the few times I used zoom there always was problems with audio, camera or people struggled to join
Or were you you referring to Duo, which is also called Google Meet now. Or Hangouts, the other Google video chat app which also exists for some reason? Or Google Hangouts Meet, which also existed? Or Google Allo?
It's better than Google Meet because Zoom won't shut itself down in 6 months, replace Zoom with a different app with a different name, change the name, change the name again, then shut that down and repeat the cycle 6 months later.
I’ve found that the screenshare quality in Zoom is rather strikingly better than in Meet, to the point that sharing a large screen with an editor full of text is frequently unreadable on Meet but perfectly crisp in Zoom.
Also, Zoom does some sort of background noise cancellation that is really impressive. I don’t know if other apps don’t do it, or do it worse, but it’s noticeable on calls (I use both Zoom and Meet daily). I was curious so I tested it from a coworking space recently: recording my headset mic in the open room I could hear voices, an espresso machine and some distant music pretty clearly. Joining a Zoom and doing the same and my background audio was genuinely silent.
I don't recall meet being this bad a few years ago (I used to be at a company that used it for all internal meetings) so I don't know whether some infrastructure changes have occurred to make it so.
Doesn’t require a Google account to login.
Not surprisingly given it’s gamer heritage, Discord is slick and fast for many-party voice and the present/screen-share is better than I expected, but video chat needs work and there are other nags.
I have somewhat high hopes for Telegram because it usually does things well or not at all, but I also wouldn’t want to try getting 20 people in a videoconference.
I never liked in-person meetings with tons of people in the room, and one presenter, many listener video/screen broadcast is very achievable today without Zoom. Maybe it’s a hard UX problem because it’s a fundamentally flawed collaboration model, who knows.
They made that very hard by pushing their desktop app. They also broke audio on Linux very often. Another long running bug is that after you've muted yourself in the meeting for long enough they start to think you did not give them microphone access and refuse to let you unmute yourself.
I also had performance issues on zoom, but I'm willing to ignore that since most other people don't seem to mention those issue so that's probably on me.
Link: https://apps.apple.com/app/presentify/id1507246666
Disclosure: I made this app.
The main "advantage" that I can see to prefer Zoom is that Zoom ("Zhumu") is considered by the authorities in China as safe, so it's not blocked there (which is convenient if you speak to people in China).
Sometimes you end up with something quite decent, sometimes there's no one with enough power in the company who can rebuild it properly and it's just trying to make a stone out of sh.t.
If you are trying to do it properly from the start you are in a lost position. You need way more time, more money and better people to end up with something that looks the same for an average user (in most cases, for a few products it may pay off). You iterate more slowly, and you can be copied before you acquired enough user base.
I hate it. Marketing wins over merit everywhere currently.
Bad software that solves my problem now is almost always going to beat great software that might eventually solve my problem.
Just as in coding, when you have a problem and you're stuck, you look for a solution. But it's very hard to learn that there's some better solution to a problem that you've already solved.
There are many video chat sites, all free for small groups and without the need to trust some random company that wants to execute code on your machine.
If when you join a call (without zoom installed) you click the download button, then let the zoom installer start downloading, then press the “I had problems installing” (or some phrasing to that effect) button, finally the join through the browser button appears.
Yes, you have to download the zoom installer executable every time you want to join a call.
Also to make the join via web easier you can try something like https://addons.mozilla.org/en-CA/firefox/addon/zoom-redirect...
For a long time you couldn't use your microphone in Firefox.
MS teams I think worked once.
Skype is ok.
Zoom works every time.
Want people to use something else? Make a thing that works.
Edit: if you have also had problems with everything besides Zoom have you also ever held a security clearance with the US government?
Didn't work (Linux, Wayland even). We switched to discord for the interview.
Uninstalled zoom, never installed it again.
All my clients use alternatives and I am sooo glad.
I should clarify: my clients range from multi billion dollar companies to small to medium sized ones.
The big ones use teams or such, the smaller ones are more flexible
Wherever we can, we use jitsi
Hangouts Google Meet Skype Zoom Teams
Also, Wayland had issues years ago, that may have been related to the issue you experienced.
I ended up having to go to a computer to connect with using a browser.
We use Google Meet for everything but those meetings, because Google is still lacking on that aspect. At least they added breakout rooms and polls, but there's still work to do, like preconfiguring polls before the actual meeting takes place, etc.
They left Linux users in limbo, while Zoom worked for everyone.
They couldn't handle more than a couple of people in a call.
They also had Lync which was rebranded as Skype, so you also had other bad software masquerading as Skype which wouldn't have helped their image.
You couldn't share a meeting URL and have the call in a browser for the longest time.
They only started to try again after Zoom picked up being the default word for video calls.
But really, much of Teams was built upon Skype, and that is the dominant market player by a long shot.
Do you have any source on that?
That's when I switched away.
If anyone asks me when I’m on my phone, I tell them I don’t trust Zoom.
I know Windows has its issues, security and otherwise, but they actually did have some insightful prescience on this class of problems.
An admin user in MacOS is always in sudoers though.
The only video conferencing software I have installed is Chime [1].
[1] yeah I know. How do you say where you work without saying where you work.
Zoom has some of the most archaic security practices I have seen in 2022. It really practices security like it's 10-15 years behind a modern company. Almost all top-down initiatives to improve security have meant useless red tape practices such as hiding information from its own internal developers.
source: I work at Zoom.
That doesn't sound like outdated security practices, it sounds like unconscionable bullshit.
And yet we keep wearing those handcuffs, maybe out of laziness or a habit.
The management of proprietary software is a frickin' minefield. The idea that publishers should be trusted to manage their own installations like this is madness.
(Zoom should just be an App Store app, not a crappy installer.)
And Linux users can typically expose themselves to the same shit as Mac users with Zoom here: when they grab proprietary DEBs for Discord or Google Chrome or whatever, those can run scripts that mess with the whole filesystem or call out to the internet at install time. It's only by convention that those behaviors are forbidden in the normal repos on most distros.
I don't love that the only repository-like option that's part of the normal system is the App Store, or that it doesn't come with an official CLI. I can see how some small proprietary software authors trying to make a living might resent being funneled toward a platform where Apple takes their cut, and I empathize. But for end users, I still think centralizing app updates into one system and taking the implementation details out of the hands of app developers/publishers is the only thing that makes sense, even if that always means going with the App Store.
You need to use something like portals like Flatlak does. But the Flatpak sandboxing model is clearly inspired by macOS and hated by a significant portion of the Linux community.
Just allow them to do anything, but isolate the environments such that it doesn't matter if one is compromised, because there is nothing to compromise other than the application itself.
Strongly recommended if you're willing to live without GPU support.
I'd rather have my mom use auto-updating chrome than having to remind and reteach her how to update chrome manually once a week.
Zoom and Mac are perfect for eachother.
Every time I have to relaunch FF after updates, the Zoom webpage forces me to download their installer (which I delete without using), and working their way through the dark pattern UI BS to get to the 'launch in browser' link to appear.
its open source so if ya dont trust this installer either, grab it from GitHub, its only a few lines of code :) hopefully others find it useful:
https://chrome.google.com/webstore/detail/zoom-web-launcher/...
This is beyond absurd.
The FBI have previously issued warnings[1] about Zoom “accidentally” routing calls through China and for “accidentally” allowing CCP officials to monitor and end calls made outside of China they don’t like[2].
This is just the latest “accident” we’ve found out about. You’d be a fool to think there won’t be more.
1. https://www.fbi.gov/contact-us/field-offices/boston/news/pre...
2. https://www.washingtonpost.com/technology/2020/12/18/zoom-he...
In his essays, Paul Graham talks about this. If you are a company with no software brains at the top, the only way of getting ahold of competent programmers is luck. And business founders generally ruin their own luck.
Even the best programmers constantly make these mistakes in large code bases.
Contrary opinion: I'd rather have a world in which everyone is always root on their machine and trusts all their software --- regardless of how mistaken that trust can be --- than the current trend of using "privilege separation" to take away freedom and control, create walled gardens, and silo applications from interoperating with each other. I have had little care for privilege escalation "attacks" ever since I realised that in practice they are so common, and also quite harmless (or sometimes even freedom-enabling), that it's often a way to feed the security-paranoia news machine and further drive users into the increasingly restrictive regimes of non-general-purpose computing.
That said, I didn't install Zoom, but rather use a standard SIP client to join. As others have mentioned, using a browser is also possible when SIP is not an option.