Skip to content
Access control Write-up Intermediate

CVE-2020-9771 is not fixed correctly (2020)

Local APFS snapshots on macOS could be mounted by any user, including low-privileged and Guest accounts, with the noowners flag, which made every file on the volume readable regardless of ownership or TCC privacy protection. An attacker with local access could therefore read other users' documents, messages and other protected data without gaining root.

theevilbit.github.io

Published on theevilbit.github.io

We could mount the entire file system through APFS snapshots as read-only, with the noowners flag, which enables us accessing (almost) every file in the file system, including data (documents, files, etc...) of every user on the system, including those protected by Apple's privacy framework (TCC). Even with the Guest…

Csaba Fitzl, on theevilbit.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

Likely the mount path for local APFS snapshots neither enforced the BSD ownership model nor applied TCC checks, and the later fix only gated it behind the Full Disk Access permission rather than blocking the mount itself.

Impact

Any local user, including Guest when FileVault is off, could read other users' files and TCC-protected data; the vendor's fix only required Full Disk Access, which the author argues still lets a low-privileged user read an admin's files if that admin granted the right to Terminal.

What the attacker needed

Local access to the Mac; ability to run Terminal; FileVault off for the Guest variant

The fix

The vendor addressed it with a new entitlement tied to Full Disk Access, but the author argues the mount itself should fail for non-root users; the text does not describe a proper fix being shipped.

How it was found

  1. List the local snapshots available on the data volume.
  2. Mount a chosen snapshot read-only at a temporary mount point.
  3. Browse the mounted copy and read files inside a TCC-protected folder such as Messages.
  4. As a low-privileged user, create or list a snapshot to obtain its identifier.
  5. Mount that snapshot with the noowners option.
  6. Read another user's files through the mount point.

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.

macOS keeps point-in-time copies of the disk called snapshots, and it lets any logged-in user mount one as a separate read-only drive. The mount option used here tells the system to ignore who owns each file, so the person mounting it appears to own everything. Because the privacy protection that normally guards folders like Messages is not applied to these mounted copies, a normal or Guest user could open files belonging to the administrator.

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.

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.