CVE-2023-42929: Why do we need the App Container Protection
A fake application with the same bundle identifier as a system app could share its app data container and read protected files. An attacker could steal sensitive data such as Notes or login tokens.
Published on jhftss.github.io
Starting with macOS Sonoma 14.0, Apple has introduced a new TCC category kTCCServiceSystemPolicyAppData to protect the App Container Data. This is designed to address one of my reports (aka CVE-2023-42929):
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 system identified app containers only by bundle identifier, so an app with the same identifier could access the same container.
Impact
An attacker could read and write files in the app data container of a system app, potentially stealing sensitive data such as notes or login tokens.
What the attacker needed
Ability to run a malicious app on macOS
The fix
Apple introduced a new TCC category to protect third-party app data containers and later prevented mounting a DMG onto the container path.
How it was found
- Create a new application in Xcode and set its bundle identifier to that of a system app.
- Modify the app's entitlements to allow writing to a temporary directory.
- Run the app and copy the protected container data from its own container to the temporary directory.
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.
On macOS, apps store their data in separate folders called containers. The bug meant a malicious app could pretend to be a trusted system app by using the same name, and then read that app's private files. This could let an attacker steal notes or login tokens.
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.