Clean My Mac X disableLaunchdAgentAtPath privilege escalation vulnerability
The helper service of CleanMyMac X 4.04 fails to validate input to its disableLaunchdAgentAtPath function, allowing any local application to unload launchd scripts as root. An attacker with local access could modify the file system as root.
Originally disclosed on Cisco Talos
An exploitable privilege escalation vulnerability exists in the helper service of Clean My Mac X, version 4.04, due to improper input validation. An attacker with local access could exploit 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 helper service does not validate the calling application before executing privileged launchctl commands.
Impact
A local attacker could unload launchd scripts as root, potentially modifying the file system.
What the attacker needed
Local access to the machine; CleanMyMac X 4.04 installed
The fix
The vendor patched the vulnerability.
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 that runs with high privileges (root) accepts commands from any application without checking who is asking. This means a normal user or program can tell it to remove system files, which they should not be allowed to do. The flaw is that the helper does not verify the caller.
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.