CleanMyMac X removeKextAtPath privilege escalation vulnerability
The privileged helper tool of CleanMyMac X exposes a removeKextAtPath function that accepts a user-supplied path without validating the calling application. Any local application could therefore ask the root helper to unload and delete kernel extensions from the system.
Originally disclosed on Cisco Talos
The CleanMyMac X software contains an exploitable privilege escalation vulnerability due to improper input validation. An attacker with local access could use this vulnerability to modify the running kernel extensions on the system.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The privileged helper's removeKextAtPath function passes a caller-supplied path straight to the kext manager without validating which application is making the request.
Impact
A non-root local attacker could unload running kernel extensions and delete them from the system directory, crossing a privilege boundary; the proof of concept needs an administrator password to set up root files first.
What the attacker needed
Local access to the Mac; admin password for PoC setup
The fix
The vendor patched the issue, presumably by validating the calling application before the helper acts on the supplied path.
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 report has not been written yet. The Original tab links to the source.
A kernel extension is a piece of code that plugs into the core of the operating system, the kernel. CleanMyMac X ships a small helper program that runs with the highest permissions so it can clean system files, and this helper lets any program on the machine ask it to remove kernel extensions. Because the helper never checks who is asking, a normal user's program can get a root-level action done for it.
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.