CVE-2022-22655 - TCC - Location Services Bypass
The location services client list is stored in a file protected by TCC, but its directory can be overridden by mounting a custom disk image. An attacker with root can mount a crafted image to grant location access to an arbitrary executable, bypassing TCC.
Published on theevilbit.github.io
This is a quick blogpost about a vulnerability I covered in our Black Hat Europe 2022 talk with Wojciech Regula.
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 directory containing the location services client list is not protected against being overlaid with a mounted disk image, allowing the list to be replaced.
Impact
An attacker with root privileges could bypass TCC and grant location access to an arbitrary executable.
What the attacker needed
Root privileges
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 controls which apps can access things like your location. Normally, only approved apps can see your location, and the list of approved apps is kept in a protected file. This bug shows that if someone already has full control of the computer (root), they can trick the system into thinking a new app is approved by replacing the folder that holds that list.
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.