Dark Reading is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

Application Security

Researchers Find Significant Vulnerabilities in macOS Privacy Protections

Attacks require executing code on a system but foil Apple's approach to protecting private data and systems files.

BLACK HAT USA 2021 - Applications that are allowed to run on Apple's operating system, macOS, can exceed the permissions granted to them by the user and the operation system, allowing a variety of privacy attacks, such as grabbing address book information, taking screenshots, and gaining access to system files, two researchers stated at a Black Hat USA briefing on Aug. 4.

The researchers — Csaba Fitzl with Offensive Security and Wojciech Regula with SecuRing — found more than a score of vulnerabilities and insecure configurations that allowed the duo to bypass the core mechanism for protecting user privacy — Apple's Transparency, Consent, and Control (TCC) privacy framework. The researchers used malicious plug-ins and process injection into third-party applications — among other approaches — to attack the TCC daemon and give their proof-of-concept attack full permissions on the system.

The two researchers reported the issues to Apple and many of them have been fixed. However, the security weaknesses are not just Apple's problem but also represent issues that third-party software makers need to fix, said Offensive Security's Fitzl during the presentation at Black Hat USA.

"There are too many Apple binaries with exceptions to access private data, which opens up the platform for abuses," he said. "Many, many third-party applications are vulnerable to injection attacks, so if those applications have access to private resources, then those resources are vulnerable."

While the vulnerabilities are not exploitable remotely by themselves, similar issues have been used by attackers to bypass system protections on sensitive data. By convincing the user to run code on their system, the vulnerabilities can be exploited to bypass much of the data security built into Apple's macOS, iOS, and tvOS.

In May, Apple fixed issues in its macOS and tvOS that were exploited in the wild, allowing a malware program, known as XCSSET, to take screenshots and grab Safari browser cookies without requiring user permission. Bypassing privacy permissions on Apple's operation systems has become increasingly popular, as the typical permission request to the user through a dialog box will often tip them off to malware running on the system.

However, bypassing TCC is not a skeleton key to the system. Ransomware, for example, will not be able to encrypt system files following a TCC bypass — the attacker needs to do more, said SecuRing's Regula.

"Ransomware cannot encrypt privacy protected files because they are not only read protected, but write protected," he said.

Security for macOS is based on the System Integrity Protection (SIP) framework, which restricts access to many of the directories, even from a user with root privileges. TCC is based on SIP and provides the mechanism for protecting private data from access. Users interact with the TCC when they use privacy controls found in the Security & Privacy tab of the System Preferences control panel or when a permissions dialog box appears because an application wants to access private data or a private feature, such as the camera.

"TCC limits access to certain data, so that, for example, a malicious application cannot access your desktop or your address book," Regula said during the presentation.

The researchers discovered a variety of ways to gain access to applications or features that have the capability to make TCC changes, and through that method make their own malicious changes to permissions.

In one attack chain, the researchers used a malicious plug-in for the macOS Directory Utility, which keeps track of the user's home directory information, NFSHomeDirectory, to inject code into the process and update the TCC database with fake permissions. In another attack chain, the researchers found a variety of vulnerable system and third-party applications with permissions to change the TCC database and used process injection to change permissions and entitlements.

Veteran technology journalist of more than 20 years. Former research engineer. Written for more than two dozen publications, including CNET News.com, Dark Reading, MIT's Technology Review, Popular Science, and Wired News. Five awards for journalism, including Best Deadline ... View Full Bio
 

Recommended Reading:

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
Edge-DRsplash-10-edge-articles
I Smell a RAT! New Cybersecurity Threats for the Crypto Industry
David Trepp, Partner, IT Assurance with accounting and advisory firm BPM LLP,  7/9/2021
News
Attacks on Kaseya Servers Led to Ransomware in Less Than 2 Hours
Robert Lemos, Contributing Writer,  7/7/2021
Commentary
It's in the Game (but It Shouldn't Be)
Tal Memran, Cybersecurity Expert, CYE,  7/9/2021
Register for Dark Reading Newsletters
White Papers
Video
Cartoon
Current Issue
Enterprise Cybersecurity Plans in a Post-Pandemic World
Download the Enterprise Cybersecurity Plans in a Post-Pandemic World report to understand how security leaders are maintaining pace with pandemic-related challenges, and where there is room for improvement.
Flash Poll
How Enterprises are Developing Secure Applications
How Enterprises are Developing Secure Applications
Recent breaches of third-party apps are driving many organizations to think harder about the security of their off-the-shelf software as they continue to move left in secure software development practices.
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2021-2464
PUBLISHED: 2021-09-24
Vulnerability in Oracle Linux (component: OSwatcher). Supported versions that are affected are 7 and 8. Easily exploitable vulnerability allows low privileged attacker with logon to the infrastructure where Oracle Linux executes to compromise Oracle Linux. Successful attacks of this vulnerability ca...
CVE-2021-39246
PUBLISHED: 2021-09-24
Tor Browser through 10.5.6 and 11.x through 11.0a4 allows a correlation attack that can compromise the privacy of visits to v2 onion addresses. If --log or --verbose is used, exact timestamps of these onion-service visits are logged locally, and an attacker might be able to compare them to timestamp...
CVE-2021-22868
PUBLISHED: 2021-09-24
A path traversal vulnerability was identified in GitHub Enterprise Server that could be exploited when building a GitHub Pages site. User-controlled configuration options used by GitHub Pages were not sufficiently restricted and made it possible to read files on the GitHub Enterprise Server instance...
CVE-2021-22869
PUBLISHED: 2021-09-24
An improper access control vulnerability in GitHub Enterprise Server allowed a workflow job to execute in a self-hosted runner group it should not have had access to. This affects customers using self-hosted runner groups for access control. A repository with access to one enterprise runner group co...
CVE-2021-35313
PUBLISHED: 2021-09-24
** REJECT ** DO NOT USE THIS CANDIDATE NUMBER. ConsultIDs: none. Reason: This candidate was withdrawn by its CNA. Further investigation showed that it was not a security issue. Notes: none.