Lurker News
I noticed while installing WebEx today that the installer immediately terminated itself after popping up the pre-installation script.

Running `strings` on the installation plugin (CWSPkgPlugin.bundle) shows why - it's using a similar process to what Zoom does [1]

  +[CWSUtilBase unzip:to:]
  /usr/bin/unzip
  Clean up temp unziped app done: %i
  unzip:to:
  [...]
  Cisco Webex pkg plugin, begin init work.
  Install CWS result: %i
  Launch CWS result: %i
  Terminate installer: %@
  Terminate self: %@
  [...]
  /usr/sbin/lsof
  forceTerminate
Previously discussed here: https://news.ycombinator.com/item?id=22736608

[1] https://www.imore.com/zooms-preinstallation-script-workaroun...

Comments (180) 20 threads

Earlier comments
fiddlerwoaroof6 replies#
I still don’t understand the issue with this: it’s not using this feature as intended, but they’re not exploiting any vulnerabilities or attempting to exploit a privilege escalation bug in macOS. Apple’s installers allow these scripts to do anything (and I believe there’s a prompt along the lines of “this installer will run a script to determine if the package can be installed”).
cosmotic1 reply#
They may not be exploiting vulnerabilities but they are breaking the contact with the expectations users have of how installers work.
pxtail2 replies#
>with the expectations users have of how installers work

Tbh I think that most people here on hn are experiencing cognitive bias because of additional knowledge - reality is that most of regular users do not give a damn about what installer does, they just want working app.

comex3 replies#
But why are they even using Installer.app? First, why use an installer at all; second, if they really want an installer, why not make a custom installer app and avoid the "run a script" prompt? Installer.app doesn't have special privileges. Is the script approach just easier?

Continue this thread — 3 replies

cosmotic#
Being only sub-consciously aware of the difference is still an impact. The repetition of the install process should lead toward more familiarity with how the process works. The zoom and cisco installers are breaking that repetition and replacing it with something unexpected.
berti1 reply#
> “this installer will run a script _to determine if the package can be installed_”

Why would the user expect that script to install the application, or even modify their system in any way?

californical3 replies#
The fact that Apple allows an application to be installed in this step is an issue with Apple's design.
saagarjha3 replies#
It’s a script, though; should they sandbox the preinstall phase? That would break most packages.

Continue this thread — 3 replies

catalogia#
Maybe so, but that doesn't excuse those exploiting that flaw.
CGamesPlay2 replies#
To be fair, Apple has rectified this flaw by writing the Mac App Store, where applications can't pull these shenanigans and are properly sandboxed from one another.

Continue this thread — 2 replies

egypturnash1 reply#
“This installer will run a script to determine if the package can be installed.”

Not “This installer will run a script that installs this package without asking further questions, then terminate abruptly without going through the rest of the install process and giving you a chance to decide exactly where it should go”.

lloeki2 replies#
I always read the subtext as "This installer will run a script whose stated goal is to determine if the package can be installed, but y'know, it's a script, and its existence is warranted for doing supposedly helpful yet nonstandard checks that the pkg API-or-something doesn't provide, thus can't be sandboxed, and therefore can do anything else it wants to. Would you like to assume trust and proceed anyway, or would you rather cancel and possibly audit the thing beforehand?".

But that's my paranoid tech background speaking. I can totally understand technical naïveté though.

egypturnash#
Zoom and WebEx are certainly taking that subtext but I am pretty sure that is not the intended subtext of that statement. :)
lonelappde#
MacOS stupidly runs that script as a user with write permissions.
14k12j41j2111 reply#
This is an issue with the installers. The fact that installers on macOS still work like in the 90s baffles me -- I thought they had done something smart with sandboxes, APIs for system privileges, and a "secure path" where user consent uses system-controlled GUI.

This issue mainly tells me that macOS installers are largely like a Windows .exe and Linux curl | sh (well, that's not true since it still needs to be signed…).

fiddlerwoaroof1 reply#
Installers aren’t really the preferred way to distribute software on a Mac, unless you need special access to the system for some reason. Most Mac software is distributed as an application bundle that’s dragged wherever you want on the file system and then run by double-clicking.
kitsunesoba#
I would go as far to say that a good chunk of more technically inclined Mac users have a tendency to view any user facing software that requires an installer with suspicion.
occamrazor1 reply#
It isn’t a _security_ issue, because the script doesn’t circumvent any security restrictions, but it is a _trust_ issue, because the script abuses pre-install functionality to install the program without explicit user agreement: A Mac user expects a confirmation prompt, but never receives one.
damnyou#
Can you point to data which shows that Mac users expect confirmation prompts? Because my thoughts are that no, Mac users don't have any expectations from installers other than to get out of the way as quickly as possible (which the script approach achieves).
alerighi1 reply#
The thing is that Zoom isn't installing the package either! If you look at the list of installed pkgs after installing Zoom there is no Zoom package.

They are using a .pkg only for the side effect of running a pre installation script that simply copies Zoom.app in the /Application directory. That is to a software develper garbage, why doing so, when all other macOS application require the user a single drag and drop?
Sure, that is probably not malware, but is a very poor practice, gives the user a bad experience, for no reason. These are the things that let's you wonder if the installation is managed in such a poor way how is the rest of the infrastructure.

lonelappde#
Why are they doing that? How is it easier than just having the app self install?
rayymlai#
The zoom guys are ex-WebEx guys. I saw the same zoom-bombing problem in WebEx few years back. we just enforce adding passcode/PIN to each meeting to remediate customer escalation.
Cthulhu_4 replies#
Why aren't more apps like Zoom and this one distributed via the app store? I mean besides the installer hackery they are legitimate and free apps right?

Or would that mean that their premium services would require paying the fees to Apple, which they avoid this way?

rwc#
Because logging in, downloading and installing from the App Store is higher friction than how it works now. Typically Zoom is installed for the first time at the very moment a meeting is starting. Seconds matter.
adwww3 replies#
Can you even use the app store with a company mac? Who has the login - your personal account or some corporate one?
berdario1 reply#
Good question, I think it should be the corporate one, and even if it might be a bit more work to setup, it's definitely in the company's interest, since then the applications that are installed can be sandboxed and be vetted/whitelisted more easily.
xnyan1 reply#
App Store is disabled on my enterprise mac, same for my last job. I think it's fairly common.

Continue this thread — 1 reply

IshKebab#
Sure, you just make an account with your company email.
jonfw#
On my company computer we can login to the App Store however we want. I created a new Apple ID with my work email but there would have been nothing stopping me from re-using an existing one.
flatiron1 reply#
I know at least slack from the App Store can’t screen share for some reason. Maybe it’s not available as a permission from the App Store. [edit] apparently this may be old info
ThePowerOfFuet1 reply#
Yes it can.
flatiron#
well that's interesting! i have to look that up again. i have it in our on boarding manual to not install it from the app store for that specific reason. thanks for the update
jpambrun2 replies#
The app store is disabled on my work mac where I am most likely to need zoom/WebEx.
jeromegv1 reply#
So your company prevents you from downloading vetted apps from the AppStore but will let you install random apps downloaded on the internet? Well that’s a good one!
jpambrun#
Most folks can't install anyting at all. Dev can request admin rights. I don't make the rules..
diebeforei485#
This is fair enough for managed situations where your company has signed-off on certain apps that they let you install.

But when everyone and their dog is using Zoom on their personal machines, Mac App Store should be an option.

x0x010 replies#
Everyone who's spent 3 hours talking a parent through downloading and installing a Zoom client understands exactly why they're doing this. Mine are unable to (1) reliably download a zip file; (2) navigate to that file using Finder; (3) run something inside it.

By the time we were done -- I use copilot (basically VNC with NAT punching built in) -- and I got control of the laptop to just do it myself, there were 7 downloads and 4 unzip attempts.
My MIL and I have literally had facetime pointed at her laptop while I directed her where to to get copilot running for the quarterly cleansing-of-the-spyware.

sprinfo1 reply#
This is not a valid to excuse companies when they do this.
icelancer#
For this forum, maybe not. For 99.9% of their userbase, it plainly is.
wmf4 replies#
If that problem exists it needs to be solved at the OS level, not worked around in shady ways. BTW, can't Web pages link to the app store?

Continue this thread — 4 replies

Continue this thread — 8 more replies

Load more comments