New macOS vulnerability, “powerdir,” could lead to unauthorized user data access
A macOS vulnerability allowed an attacker to programmatically change a user's home directory and plant a fake TCC database, bypassing privacy controls. This could let a malicious app gain unauthorised access to protected data such as the microphone or camera without user consent.
Microsoft 365 Defender Research Team Follow
Published on microsoft.com
Following our discovery of the “Shrootless” vulnerability, Microsoft uncovered a new macOS vulnerability, “powerdir,” that could allow an attacker to bypass the operating system’s Transparency, Consent, and Control (TCC) technology, thereby gaining unauthorized access to a user’s protected data. We shared our findings…
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 TCC daemon trusted the user's home directory path, which could be changed by an attacker, to locate the permission database.
Impact
An attacker could grant themselves access to sensitive resources like the microphone or camera without user consent, potentially recording private conversations or capturing screenshots.
What the attacker needed
Root access; ability to run code on the target Mac
How it was found
- Get a csreq blob for the target app.
- Plant a fake TCC.db file with required access and the csreq blob.
- Export the user’s Directory Services entry with dsexport.
- Modify the Directory Services entry to change the user’s home directory.
- Import the modified Directory Services entry with dsimport.
- Stop the user’s tccd and reboot the process.
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 uses a system called TCC to ask your permission before apps can use your camera, microphone, or personal data. This bug let an attacker trick the system into reading a fake permission file, so apps could get access without ever asking you. The attacker could then secretly record audio or take screenshots.
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.