Skip to content
RCE Write-up Advanced

Full infrastructure takeover of VMware Cloud Director (CVE-2020-3956)

An authenticated user could inject Expression Language expressions into a hostname field, leading to remote code execution. This allowed reading the internal database, modifying it to escalate privileges to System Administrator, and taking over all clouds in the infrastructure.

citadelo.com

Published on citadelo.com

VMware Cloud Director (formerly known as vCloud Director) is a leading cloud service-delivery platform used by popular cloud providers to operate and manage cloud infrastructure. VMware powers the world’s complex digital infrastructure and serves over a half-million customers worldwide.

The author, on citadelo.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, user-supplied input was passed to an Expression Language evaluator without proper sanitisation, allowing arbitrary Java code execution.

Impact

An attacker could view sensitive data including password hashes, modify the database to steal virtual machines, escalate privileges to System Administrator, and capture plaintext passwords by modifying the login page.

What the attacker needed

Authenticated user account; access to web interface or API

The fix

VMware released new versions of the product with an implemented fix for this vulnerability.

How it was found

  1. Enter an expression like ${7*7} as the SMTP server hostname and observe the error showing 49.
  2. Use Java reflection to access arbitrary classes and create instances.
  3. Use ProcessBuilder to execute system commands and read their output.
  4. Decrypt database credentials from configuration files using a hardcoded AES key.
  5. Update the System Administrator password hash in the database.
  6. Log in as System Administrator to access all customer data.

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.

The application took user input (a hostname) and evaluated it as code instead of treating it as plain text. This let an attacker run commands on the server, read the database, and change other users' passwords, ultimately controlling the whole cloud system.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.