Clean My Mac X removeLaunchdAgentAtPath privilege escalation vulnerability
The root helper service of Clean My Mac X accepted a caller-supplied file path in its removeLaunchdAgentAtPath function without validating the calling application or the path. A local non-root attacker could therefore make the root daemon delete arbitrary files, modifying the file system with root privileges.
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
Impact
A local attacker without root could delete arbitrary files as root, harming the integrity of the system, though confidentiality and availability are not claimed to be affected.
What the attacker needed
Local access to the Mac; no root needed to trigger
The fix
The vendor patched the issue, presumably by validating the caller and the supplied path before deleting anything.
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 apps install a small background service that runs with the highest system permissions so it can clean up protected files. This report found that any program on the machine could ask that service to delete a file of its choosing, and the service would do it as the all-powerful root user. That means a normal user could remove system files they should never be able to touch.
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.