CleanMyMac X moveItemAtPath privilege escalation vulnerability
The privileged helper tool of CleanMyMac X exposes a file-move function that accepts a caller-supplied destination path without validating the calling application. Any local application could invoke it and, by passing a nil destination, cause files to be deleted with root privileges.
Originally disclosed on Cisco Talos
An exploitable privilege escalation vulnerability exists in the way the CleanMyMac X software improperly validates inputs. 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's moveItemAtPath routine passed user-supplied paths straight to the file manager without validating the calling application or the arguments.
Impact
A local attacker could delete files from the root file system, crossing a privilege boundary, though the proof of concept needed an administrator password to first place root-owned files on the system.
What the attacker needed
Local access to the machine; ability to run a local application; admin password for the PoC setup
The fix
The vendor patched the issue, presumably by validating the calling application and the supplied paths before the privileged helper acts.
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.
Some Mac apps install a small background helper that runs with the highest system permissions so it can change protected files. This report found that the helper would do a file move or delete for any app that asked, without checking who was asking. So an ordinary program running as a normal user could get protected system files removed.
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.