Skip to content
Access control Write-up Advanced

CVE202226712: The POC for SIPBypass Is Even Tweetable

A privileged XPC service that can bypass System Integrity Protection (SIP) accepted requests from any client without checking who was calling. An attacker with root could use it to replace the TCC database and gain full control over privacy permissions, and potentially achieve kernel code execution.

Mickey Jin Follow

Published on jhftss.github.io

I found some new attack surfaces in the macOS PackageKit.framework, and successfully disclosed 15+ critical SIP-Bypass vulnerabilities. Apple has addressed 12 of them with CVE assigned so far.

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 XPC service held the com.apple.rootless.install entitlement but did not validate the identity of connecting clients, so any process could ask it to move files across SIP-protected locations.

Impact

An attacker with root could replace the TCC database to control privacy permissions, and the author states this primitive could lead to arbitrary kernel code execution, though that exploit is not shared.

What the attacker needed

Root privileges on the target Mac

The fix

Apple removed the ShoveService framework and the -X/-x options from the shove command, and later added an AMFI check to stop the old service from launching.

How it was found

  1. Run the shove command with the -X option to talk to the privileged system XPC service.
  2. Supply a crafted database as the source and the TCC database as the destination.
  3. The service, running as root, moves the crafted file into the protected location.

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.

System Integrity Protection (SIP) is a macOS feature that stops even root from changing protected system files. A background helper service was given special permission to bypass SIP, but it did not check who was asking it to move files. Anyone who already had root could therefore use it to overwrite protected files such as the privacy permissions database.

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

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.