Skip to content
RCE Write-up Advanced

Local privesc vulnerability in Zoom (for macOS)

Zoom's macOS auto-update process had two flaws: package signature validation was done by searching the output of a command for strings, which could be fooled by naming the package with those strings, and there was no check that the update package was newer than the installed version. A local unprivileged attacker could therefore install a malicious or older vulnerable package as root, escalating privileges.

speakerdeck.com

Published on speakerdeck.com

Your Podcast. Everywhere.

The author, on speakerdeck.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

A local unprivileged attacker or malware could escalate privileges to root, and the update could be made invisible by setting arguments to hide the UI.

What the attacker needed

Local access to the macOS machine; Zoom installed with auto-update enabled

The fix

Zoom fixed the downgrade issue in v5.9.6 by comparing package and installed versions, and fixed the signature validation in v5.11.3 by validating the package signature via CMS/XAR APIs instead of string matching.

How it was found

  1. Create a malicious package whose filename contains the strings the validation looks for.
  2. Trigger Zoom's auto-updater app with the package path so it connects to the privileged daemon.
  3. The daemon runs pkgutil --check-signature on the package and the string check passes because the filename is in the output.
  4. The daemon installs the package as root via macOS's installer.
  5. Alternatively, install an older signed but vulnerable Zoom version because no version check exists, then exploit that version to gain root.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Zoom on macOS has a background helper that runs with the highest system permissions (root) to install updates. The helper checked whether an update package was really from Zoom by running a command and looking for certain words in its output, but the package's own filename appears in that output, so a package named with those words passed the check. Separately, the helper did not check that the update was newer than the installed version, so an attacker could install an old, vulnerable version and then use another bug to become root.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.