M1 Macs GateKeeper bypass aka CVE-2021-30658
iOS apps installed on M1 Macs via the itms-services URL handler were not quarantined, allowing an attacker to install a malicious app signed with an enterprise certificate. The attacker could then execute malicious code on the victim's machine with a few clicks.
Published on wojciechregula.blog
This blog post describes a GateKeeper bypass that worked on M1 Macs. With a few clicks in a web browser, the attacker could have executed malicious code on the victims’ machines.
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
Impact
An attacker could execute malicious code on the victim's M1 Mac, though the installed app is sandboxed.
What the attacker needed
M1 Mac running macOS Big Sur; victim clicks a link; attacker has an enterprise certificate
The fix
Apple fixed the vulnerability in macOS Big Sur 11.3.
How it was found
- Build a malicious iOS app and sign it with an enterprise certificate.
- Export the project to an .ipa archive.
- Prepare a webserver with a valid SSL certificate.
- Upload the index.html, app.plist, and app.ipa files.
- Follow the steps shown in the video (victim clicks links to install and launch the app).
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.
GateKeeper is a macOS security feature that checks downloaded apps for malware and notarization. Normally, apps from the internet are tagged with a quarantine attribute that triggers these checks. Here, apps installed through a special iOS app installation method skipped that tag, so malicious apps could run without being checked.
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.