Categories
Audio Sources - Full Text Articles

Microsoft shares details for a Gatekeeper Bypass bug in Apple macOS

Listen to this article

Microsoft disclosed technical details of a vulnerability in Apple macOS that could be exploited by an attacker to bypass Gatekeeper.

Microsoft has disclosed details of a now-fixed security vulnerability dubbed AchillesĀ (CVE-2022-42821, CVSS score: 5.5) in Apple macOS that could be exploited by threat actors to bypass the Gatekeeper security feature.

The AppleĀ GatekeeperĀ is designed to protect OS X users by performing a number of checks before allowingĀ an App to run. In fact,Ā you will not be able to execute code that wasn’t signed by an Apple developer, you will not be able to run apps that weren’t downloaded from Apple’s store if the device is notĀ jailbreakedĀ of course.

The flaw was discovered on July 27, 2022, by Jonathan Bar Or from Microsoft, it is a logic issue that was addressed with improved checks.

ā€œOn July 27, 2022, Microsoft discovered a vulnerability in macOS that can allow attackers to bypass application execution restrictions imposed by Apple’s Gatekeeper security mechanism, designed to ensure only trusted apps run on Mac devices. We developed a proof-of-concept exploit to demonstrate the vulnerability, which we call ā€œAchillesā€.ā€ reads the post published by Microsoft.

Microsoft researchers explained that Gatekeeper bypasses can be used by threat actors to install malware on macOS systems.

The experts pointed out that Apple’sĀ Lockdown Mode introduced in July does not prevent the exploitation of the Achilles bug.

The Achilles vulnerability relies on the Access Control Lists (ACLs) permission model to add extremely restrictive permissions to a downloaded file (i.e., ā€œeveryone deny write, writeattr, writeextattr, writesecurity, chownā€), to block the Safari browser from setting the quarantine extended attribute.

Below is the POC developed by Microsoft:

  1. Create a fake directory structure with an arbitrary icon and payload.
  2. Create an AppleDouble file with theĀ com.apple.acl.textĀ extended attribute key and a value that represents a restrictive ACL (we chose the equivalent of ā€œeveryone deny write,writeattr,writeextattr,writesecurity,chownā€). Perform the correct AppleDouble patching if usingĀ dittoĀ to generate the AppleDouble file.
  3. Create an archive with the application alongside its AppleDouble file and host it on a web server.
Gatekeeper bypass.png

while video POC is available here.

Follow me on Twitter: @securityaffairs and Facebook and Mastodon

PierluigiĀ Paganini

(SecurityAffairs – hacking, Gatekeeper)

The post Microsoft shares details for a Gatekeeper Bypass bug in Apple macOS appeared first on Security Affairs.