CVE202232929 Bypass iOS backup's TCC protection
The iOS backup utility AppleMobileBackup allowed specifying a custom root directory, bypassing TCC protection that normally restricts backups to a protected location. An attacker could thus create a backup of a connected iOS device in an unprotected directory and access sensitive data.
Published on theevilbit.github.io
Normally, when a users backup their iOS device, the backup is saved into ~/Library/Application Support/MobileSync/Backup directory. The MobileSync directory is properly protected by TCC, as the backup can contain photos, contact information, everything from the iOS device, and it might be unencrypted, so this is a…
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 AppleMobileBackup utility accepted a --root argument to set an arbitrary backup destination, bypassing TCC restrictions on the default backup directory.
Impact
An attacker with local access could bypass TCC and create an unencrypted backup containing sensitive data such as photos and contacts, but Apple later mitigated by requiring the passcode for each backup.
What the attacker needed
Local access to a macOS machine; connected iOS device; device unlocked and trusted
The fix
Apple initially removed the --root option, then later required the device passcode for every backup, though the author did not verify the final fix.
How it was found
- Find the UDID of the connected iOS device using system_profiler.
- Run AppleMobileBackup with the --root option pointing to an unprotected directory.
- Access the backup files in the specified 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.
TCC is a macOS privacy feature that limits access to sensitive folders like backups. The backup tool had an option to save backups anywhere, so an attacker could put the backup in a folder they can read, stealing photos, contacts, and more.
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.