Pre-Authenticated RCE In VMware VRealize Network Insight - CVE-2023-20887
An nginx access rule protecting a Thrift RPC endpoint could be bypassed by adding a dot to the path, allowing unauthenticated attackers to reach the endpoint. The createSupportBundle procedure then passed the nodeId parameter into a shell command, enabling remote code execution.
Published on summoning.team
I have recently identified and reported multiple vulnerabilities within VMware vRealize Network Insight by working with the Zero Day Initiative. Several of these vulnerabilities have been assigned a CVE:
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 nginx location matching was not strict enough to prevent path traversal, and the application passed unsanitised user input (nodeId) directly into a shell command.
Impact
An unauthenticated attacker could execute arbitrary commands on the server, leading to full remote code execution.
What the attacker needed
Network access to the VRNI instance; No authentication required
The fix
The vulnerability was fixed by VMware; the text does not detail the fix, but it should involve stricter path matching in nginx and proper sanitisation of user input before shell execution.
How it was found
- Send a request to /saas./resttosaasservlet to bypass the nginx allow rule.
- Craft a Thrift RPC request to the createSupportBundle procedure with a malicious nodeId containing a shell command.
- The server executes the command, allowing the attacker to run arbitrary code (e.g., a reverse shell).
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 web server (nginx) had a rule to block outside access to a special internal service. The rule only checked the exact path, so adding a dot (like /saas./resttosaasservlet) slipped past it. Once inside, a function that builds support bundles used a user-supplied value in a system command without cleaning it, letting an attacker run their own commands 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.