Skip to content
Access control Advisory Intermediate CVE-2018-4037

CleanMyMac X removeDiagnosticLogs privilege escalation vulnerability

The privileged helper tool in CleanMyMac X exposes a removeDiagnosticLogs function that runs as root and does not check which application is calling it. Any local application could therefore invoke it to delete the system's main log data, crossing a privilege boundary from a non-root user.

Tyler Bohan Follow

Originally disclosed on Cisco Talos

High 7.1 View original

The CleanMyMac X software contains an exploitable privilege escalation vulnerability due to improper input validation. An attacker with local access can use this vulnerability to modify the file system as root.

Tyler Bohan, on Cisco Talos

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 removeDiagnosticLogs function performs no validation of the calling application, so any local process can invoke a root-level log deletion.

Impact

A non-root local application could delete the system's main log data, crossing a privilege boundary; the text does not claim anything beyond log deletion.

What the attacker needed

Local access to the machine; ability to run an application

The fix

The vendor patched the issue, presumably by validating the calling application before the helper runs the log deletion.

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 helper that runs with the highest system permissions so it can do tasks ordinary users cannot. This helper accepted requests from any program on the machine without checking who was asking. That meant a normal user's program could ask it to delete important system logs, which a normal user should 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.

More by Tyler Bohan

View all

84 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.