Skip to content
Memory corruption Write-up Advanced

(CVE-2021-30745) Apple macOS QuartzCore Type Confusion Vulnerability

A type confusion flaw exists in Apple's QuartzCore framework used by the privileged _windowserver process, which receives Mach messages from other applications. An attacker could exploit this to bypass the sandbox and gain system privileges on the victim's computer.

starlabs.sg

Published on starlabs.sg

This vulnerability exists in QuartzCore Framework, which is used by windowserver process that allows other applications to interact with OS by mach message that allows attacker can bypass sandbox to get system privilege on the victim’s computer.

The author, on starlabs.sg

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 a type confusion in QuartzCore's handling of Mach messages received by the privileged _windowserver process, where data is interpreted as the wrong type.

Impact

An attacker could bypass the sandbox and gain system privileges on the victim's computer.

What the attacker needed

Local app able to send Mach messages

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.

QuartzCore is a part of macOS that helps draw what you see on screen. The _windowserver process runs with high privileges and talks to other apps using special messages called Mach messages. A type confusion bug means the program misreads the kind of data it receives, and here that mistake could let a malicious app escape its sandbox (a security box that limits what an app can do) and take control of the whole system.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.