macOS elevated updater lets a local user copy files to privileged locations
The macOS elevated updater helper for Firefox accepts arguments from an unauthenticated local NSConnection, allowing a local user to supply a rogue server. Through the dmgInstall path, the root helper copies attacker-chosen files or app bundles into privileged locations such as /Applications.
Originally disclosed on Mozilla
- Fixed in 34 days
- Paid in 39 days
- Disclosed after 34 days
Platform: Desktop (macOS)
Version: Firefox 149.0b3
The Firefox macOS elevated updater helper (`org.mozilla.updater`) obtains its arguments from the fixed `NSConnection` name `org.mozilla.updater.server` on the local host without authenticating the sender. A local attacker can pre-register this name and supply attacker-controlled arguments to the root helper.
Via the `-dmgInstall` code path, the root helper copies attacker-chosen files or bundles to locations that the current user normally cannot write to.
Steps to reproduce:
Because the issue is triggered during an update, end-to-end reproduction requires starting from a build that still has an update available. The practical reproduction below therefore uses Firefox 149.0b3. as the installed starting point, while the affected code paths are still present in current source and Nightly builds (150.0a1 as of 2026-03-06).
Setup:
- Two macOS user accounts: an administrator (`tomoya`) and a standard user (`attacker`).
- `Firefox.app` must not be writable by the current user. This is the default when Firefox is installed system-wide via the official `.pkg`, which is the standard deployment method in Jamf/MDM-managed environments. In the reproduction below, assume Firefox was installed via `.pkg` ([https://ftp.mozilla.org/pub/firefox/releases/149.0b3/mac/en-US/Firefox%20149.0b3.pkg](https://ftp.mozilla.org/pub/firefox/releases/149.0b3/mac/en-US/Firefox%20149.0b3.pkg)).
Steps:
1. Log in as `attacker`.
2. Build the PoC:
'''sh
clang -o rogue_updater_server rogue_updater_server.m -framework Foundation -framework CoreServices -lobjc
'''
3. Build the payload .app bundle:
'''sh
mkdir -p /tmp/FakeApp.app/Contents/MacOS
cp Info.plist /tmp/FakeApp.app/Contents/Info.plist
clang -o /tmp/FakeApp.app/Contents/MacOS/FakeApp FakeApp.m -framework AppKit -framework Foundation -lobjc -mmacosx-version-min=10.13
'''
4. Start the rogue server:
'''sh
./rogue_updater_server /tmp/FakeApp.app /Applications/FakeApp.app
'''
5. Switch to `tomoya` using Fast User Switching.
6. Launch Firefox, open `Menu > About Firefox`, and wait for the update to download.
7. Click `Restart to Update`. After Firefox restarts, it shows the Update Elevation dialog. Click `Restart Now`.
8. When macOS displays the authorization dialog, enter administrator credentials. The root helper connects to the rogue server and copies the attacker-controlled `FakeApp.app` bundle into `/Applications`.
9. Run `open /Applications/FakeApp.app` to confirm that the planted app launches.
Impact:
A local unprivileged user can copy attacker-controlled files or bundles to administrator-only locations such as `/Applications`. Existing files are not overwritten if the destination path already exists.
However, the attacker can create new entries, such as an `.app` bundle in `/Applications`. Firefox explicitly removes the copied bundle's `com.apple.quarantine` attribute and registers the destination with Launch Services via `LSRegisterURL`. Because `/Applications` is a system-wide application directory shared by all local users, this turns a single-user foothold into a system-wide app-planting primitive visible to other users of the same Mac.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The elevated updater helper obtains its arguments from a fixed local NSConnection name without authenticating the sender, so any local process can impersonate the update server.
Impact
A local unprivileged user can plant attacker-controlled app bundles in administrator-only locations such as /Applications, and because Firefox removes the quarantine attribute and registers the app with Launch Services, this becomes a system-wide app-planting primitive visible to other users; existing files are not overwritten.
What the attacker needed
Local user account on the Mac; Firefox installed system-wide via .pkg; Firefox.app not writable by the user; an available Firefox update
How it was found
- Log in as the standard user account.
- Compile the rogue updater server program.
- Build a fake application bundle to be planted.
- Start the rogue server, pointing it at the fake bundle and the target destination.
- Switch to the administrator account and launch Firefox, then wait for an update to download.
- Click Restart to Update, then Restart Now in the elevation dialog, and enter administrator credentials when prompted.
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 report has not been written yet. The Original tab links to the source.
When Firefox updates on a Mac, a small helper program runs with administrator rights to install the update. This report shows that the helper trusts instructions from any program on the same computer without checking who sent them. A normal user can therefore trick the helper into placing their own app into a system folder that only administrators should be able to write to.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.