From Shared Dash to Root Bash :: PreAuthenticated RCE in VMWare vRealize Operations Manager
The report describes three vulnerabilities in VMware vRealize Operations Manager that can be chained: an authentication bypass using a shared dashboard link, an information disclosure of sensitive credentials from log files, and a privilege escalation via a sudo-allowed script that trusts an environment variable. An attacker could exploit these to gain pre-authenticated remote root access.
Published on srcincite.io
On May 27th, I reported a handful of security vulnerabilities to VMWare impacting their vRealize Operations Management Suite (vROps) appliance. In this blog post I will discuss some of the vulnerabilities I found, the motivation behind finding such vulnerabilities and how companies can protect themselves.
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 cause is a series of design and coding mistakes: an authentication filter that trusts a dashboard link token without proper session validation, a log file access function that fails to prevent path traversal and exposes sensitive credentials, and a privileged script that uses an attacker-controllable environment variable to locate and execute another script.
What the attacker needed
A valid shared dashboard link; ability to reach the vROps web interface; ability to run sudo commands as admin
The fix
VMware released an advisory and patched these vulnerabilities.
How it was found
- Obtain a valid shared dashboard link (the `t` parameter).
- Access the application with the link to bypass authentication and create an admin user.
- Use the lower-privileged access to read log files containing the maintenanceAdmin credentials.
- Use the leaked maintenanceAdmin credentials to trigger a password reset for the admin user.
- Run the generateSupportBundle.py script with sudo and a crafted VCOPS_BASE environment variable to execute a malicious script as root.
- The malicious script adds a sudoers entry allowing the admin user to run any command as root, then the attacker escalates to 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.
Together, they allow an attacker with a shared dashboard link to gain root access on the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.