Local Privilege Escalation Discovered in VMware Fusion
VMware Fusion, VMRC and Horizon Client contain a local privilege escalation vulnerability where the application blindly executes files from an untrusted location, allowing an attacker to execute arbitrary code as root. A second TOCTOU race condition in the signature check also leads to root code execution.
Published on cyberonesecurity.com
By CyberOne Security TeamThis article was written by members of the CyberOne Security Team, drawing on decades of combined experience in cloud and network security, penetration testing, threat intelligence, and advisory services.
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application executes a script (services.sh) from a path under user control without verifying its integrity, and a separate TOCTOU flaw in the code signature check allows bypassing signature verification.
Impact
An attacker with local access can execute arbitrary code as root, leading to full system compromise.
What the attacker needed
Local access to a macOS system; VMware Fusion installed; ability to create hard links
How it was found
- Copy or hard-link the VMware Fusion application to a location controlled by the low-privileged user.
- Run VMware Fusion from that location and observe that it executes services.sh as root.
- Modify services.sh to include a command that creates a file in /tmp.
- Execute VMware Fusion again and confirm the file is created and owned by root.
- Replace the command with a netcat reverse shell to obtain an interactive root shell.
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 write-up has not been written yet. The Original tab links to the source.
This is a local privilege escalation bug: a normal user on a Mac can trick VMware Fusion into running their own code with the highest system rights (root). The app runs a script from a folder the user can write to, so the user can change that script to do anything as root.
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.