Skip to content
DoS Write-up Advanced

Stealing administrative JWT's through post auth SSRF (CVE-2021-22056)

A VMware kernel driver exposes a device that low-privileged users can open, and a user-controlled value in a shared buffer is used as a divisor without checking for zero, causing a divide-by-zero exception. An attacker could trigger this to crash the system (denial of service).

Christopher Vella Follow

Published on signal-labs.com

I posted a poll on twitter (Christopher on Twitter: “Next blog topic?” / Twitter) to decide on what this blog post would be about, and the results indicated it should be about Kernel driver reversing.

Christopher Vella, on signal-labs.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 driver fails to validate that a user-controlled value used as a divisor is non-zero before performing a division operation.

Impact

A low-privileged user could crash the system, causing a denial of service.

What the attacker needed

Low-privileged user access; VMware vCenter Converter installed

How it was found

  1. Open a handle to the device named vstor2-mntapi20-shared using CreateFile.
  2. Send IOCTL 0x2A0014 with an input buffer filled with zeros to set the user-controlled value in the DeviceExtension buffer to zero.
  3. Call ReadFile or WriteFile on the device handle to trigger the division by zero.

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.

A kernel driver is a low-level program that runs with high privileges. This driver lets any user open a handle to it and send commands. One command copies user data into a shared buffer, and later the driver divides by a value from that buffer without checking if it is zero. Dividing by zero crashes the whole system, so a normal user can cause a denial of service.

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.

More from VMware

View all

The newest disclosed reports for this program.

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.