Parallels Desktop prl_disp_service Snapshots.xml Hard Link Privilege Escalation
A root service in Parallels Desktop writes snapshot details to a user-owned file, allowing a local attacker to replace that file with a hard link to a root-owned file and inject malicious content. This could let the attacker overwrite arbitrary root-owned files and escalate privileges.
A privilege escalation vulnerability exists in the Snapshot functionality of Parallels Desktop for Mac version 20.1.1 (build 55740). When a snapshot of a virtual machine is taken, a root service writes to a file owned by a normal user.
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
Likely the root service follows a hard link when writing to a user-controlled file path, without checking that the file is not linked to a sensitive location.
Impact
A low-privilege local user could overwrite arbitrary root-owned files and escalate to root, though the resulting sudoers file contains invalid XML that causes syntax errors when using sudo.
What the attacker needed
Local user account; Parallels Desktop installed; ability to create hard links
The fix
The vulnerability was fixed in a later release; the service should avoid following hard links when writing to user-controlled paths.
How it was found
- Select a VM without snapshots and delete any existing snapshots.
- In the VM folder, delete or move the Snapshots.xml file if it exists.
- Create a hard link named Snapshots.xml pointing to a root-owned file (e.g., a sudoers file).
- Open Parallels Control Center, choose Manage Snapshots, click New, and enter a crafted description containing sudoers directives.
- Click OK to create the snapshot, causing the service to write the payload into the linked root-owned file.
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 hard link is like a second name for the same file on disk. The Parallels service runs as the superuser (root) and writes to a file in a folder the normal user controls. By making that file a hard link to a sensitive system file, the user tricks the service into writing attacker-controlled text into that system file, which can give them superuser powers.
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.