Skip to content
DoS Write-up Advanced

Vulnerabilities found in VMWare by me

Two vulnerabilities were found in VMware's Cortado ThinPrint virtual printing component: a denial-of-service via a negative FileEndOffs value in font records, and an out-of-bounds read in the TTC header's tableDirectoryOffsets field. An attacker could crash the vprintproxy.exe process or cause an out-of-bounds read by sending crafted EMFSPOOL data.

gabrieldurdiak.github.io

Published on gabrieldurdiak.github.io

This post is going to be about the two vulnerabilities found by me in the VMWare hypervisor during my internship at quarkslab, it was a great experience in which I learned a lot.

Gabriel Durdiak, on gabrieldurdiak.github.io

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 a signedness error in a bounds check and a missing validation of a file offset, leading to a negative size passed to realloc and an out-of-bounds read.

Impact

An attacker could cause a denial of service by crashing the vprintproxy.exe process, and could trigger an out-of-bounds read that may lead to a crash.

What the attacker needed

Ability to send data to COM1 port; crafted EMFSPOOL file

How it was found

  1. Send data through the COM1 port to vprintproxy.exe in EMFSPOOL format containing an EMRI_TYPE1_FONT record.
  2. Set the FileEndOffs field to a negative value such as -1.
  3. The signed check passes, and the negative value is used as the size argument to realloc, causing an error and denial of service.
  4. For the second vulnerability, edit the tableDirectoryOffsets field of a TTF font header to contain 'A's.
  5. The function attempts to read from the address 0x41414141, causing a crash.

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 report describes two bugs in a virtual printing tool that runs on a host machine and receives data from a guest machine. One bug lets an attacker send a specially crafted font file that causes the printing process to crash, and the other lets an attacker make the program read memory it should not, which could also crash it. Both bugs are in how the program parses font files.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.