Skip to content
Access control Write-up Intermediate

vScalation (CVE-2021-22015)- Local Privilege Escalation in VMware vCenter

A script executed with root privileges was writable by members of the 'cis' group, allowing any such user to inject code that runs as root when a service restarts. An attacker with low-privileged shell access could therefore escalate to root and, for example, read the password hash file.

Yuval Lazar Follow

Published on pentera.io

Pentera’s research team ‘Pentera Labs’ discovered a vulnerability in VMware’s vCenter Server program. The affected VMware software is installed in over 500,000 organizations worldwide and is responsible for managing their most critical systems.

Yuval Lazar, on pentera.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 the root-executed wrapper script had group-writable permissions for the 'cis' group, letting low-privileged members modify it.

Impact

An attacker with low-privileged access could run code as root, enabling actions such as ransomware installation or denial of service, and potentially full organisation takeover.

What the attacker needed

Shell access as a 'cis' group user; ability to restart a service or host

The fix

Apply the updates listed in VMware's advisory; no workaround is known.

How it was found

  1. Gain shell access as a user in the 'cis' group.
  2. Add malicious code to the java-wrapper-vmon file.
  3. Restart a service that uses the wrapper, or reboot the host.
  4. The injected code runs as root.

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.

On a server, some programs run with full control (root) while normal users have limited rights. Here, a startup script that runs as root could be edited by a group of ordinary users, so one of them could add their own commands and have them run with full control.

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.

More by Yuval Lazar

View all

1 more disclosed report, best first.

More from VMware

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.