Skip to content
Access control Write-up Advanced

CVE-2022-32902: Patch One Issue and Introduce Two

A system daemon with Full Disk Access allowed copying arbitrary files to a world-readable location after a weak admin check, enabling theft of TCC-protected files. The patch introduced a bypassable code-signing check and unsafe deserialisation, allowing arbitrary code execution in the daemon context.

Mickey Jin Follow

Published on jhftss.github.io

A year ago, I discovered a TCC-bypass issue in the system daemon service named com.apple.fontmover. Three months later, Apple addressed it as CVE-2022-32902.

Mickey's Blogs, on jhftss.github.io

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

Root cause

The service trusted client-supplied file paths and destination without proper validation, and the patch introduced a bypassable code-signing check and unsafe deserialisation.

Impact

An attacker with root privilege could steal TCC-protected files; after the patch, the bypass and deserialisation issues could allow code execution in the daemon context and bypass TCC.

What the attacker needed

Root privilege for original issue; ability to run a program for bypass

The fix

The issues were fixed in macOS 13.0 by checking the client's entitlement using the audit token and deserialising safely with a specified class.

How it was found

  1. Connect to the com.apple.fontmover message port using CFMessagePortCreateRemote.
  2. Send a request with msgid 2 containing a dictionary with an authorization blob, a files array, and a destination number.
  3. Pass a valid admin authorization to satisfy XTAuthenticateAsAdminFromExternalAuthorization.
  4. The service copies the specified files to /Library/Fonts, which is world-readable.

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.

A background service that had special permission to read all files could be tricked into copying private files to a place anyone could read. The first fix added a check that only a specific app could talk to the service, but that check could be faked, and the service also used an unsafe way to process data that could let an attacker run code.

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.

More by Mickey Jin

View all

113 more disclosed reports, best first.

More from Apple (macOS)

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.