Skip to content
Path traversal Write-up Advanced

Parallels Desktop Toolgate Vulnerability

A directory traversal flaw in Parallels Desktop's Toolgate component allowed a local attacker with high-privileged code in a guest VM to write arbitrary files on the host, leading to code execution as the host user. The attacker could overwrite the shell login script to run arbitrary commands.

Alexandre Adamski Follow

Published on blog.impalabs.com

Parallels Desktop](https://blog.impalabs.com/tags/parallels-desktop.html) [{{media:3}}

Alexandre Adamski (@NeatMonster_), on blog.impalabs.com

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 Toolgate handler did not validate the user-supplied filename before using it in file operations, and a quirk in Qt's string handling allowed null characters to truncate the formatted path.

Impact

An attacker with high-privileged code in the guest could write arbitrary files on the host and execute code as the host user, even if the 'Isolate from Mac' feature was enabled.

What the attacker needed

High-privileged code execution in guest VM

How it was found

  1. Obtain high-privileged code execution in the guest VM.
  2. Send a crafted TG_REQUEST_VIRTEX_CRASH request with a filename containing directory traversal sequences.
  3. Include a null byte in the filename buffer to bypass the filename formatting and control the final path.
  4. The host writes the attacker-controlled crash dump data to the chosen file path.
  5. Overwrite the shell login script (e.g., ~/.zshrc) with a command to execute arbitrary code.

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.

Parallels Desktop lets you run a virtual computer (a guest) inside your Mac (the host). A part called Toolgate handles requests from the guest, and it failed to check the file path properly, so someone who already had high-level control inside the guest could make the host write a file anywhere. By overwriting a startup script, they could run their own commands on the host.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More from Parallels

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.