CleanMyMac X removeItemAtPath Privilege Escalation Vulnerability
The privileged helper tool in CleanMyMac X does not validate the calling application, allowing any local application to invoke its removeItemAtPath function. An attacker with local access could use this to delete files from the root file system as root.
Originally disclosed on Cisco Talos
The CleanMyMac X software contains an exploitable privilege escalation vulnerability that exists 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 executing the removeItemAtPath function.
Impact
An attacker with local access could delete arbitrary files from the root file system, potentially causing denial of service or system instability.
What the attacker needed
Local access to the Mac; CleanMyMac X installed
The fix
The vulnerability was fixed by the vendor in version 4.04 (patched on 2018-12-27).
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 privileged helper is a small program that runs with high permissions (as root) to perform tasks that a normal user cannot. CleanMyMac X's helper lets any program on the same computer call a file-deletion function without checking who is calling. This means a malicious program could delete important system files, which a normal user would not be allowed to do.
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.