CleanMyMac X moveToTrashItemAtPath privilege escalation vulnerability
The privileged helper tool in CleanMyMac X does not validate the calling application, allowing any local application to invoke its moveToTrashItemAtPath function. An attacker with local access could use this to delete arbitrary files as root, modifying the file 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 file system as root.
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 tool fails to validate the identity of the calling application before performing file operations as root.
Impact
An attacker with local access could delete arbitrary files from the root file system, potentially disrupting the system or causing denial of service.
What the attacker needed
Local access to the machine; ability to run an application
The fix
The vendor patched the vulnerability, likely by adding validation of the calling application.
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 helper tool is a small program that runs with high privileges (as root) to perform tasks that normal programs cannot. Here, the helper did not check who was asking it to delete files, so any program on the computer could ask it to delete any file, even system files, with full administrator rights.
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.