CVE-2023-20864: Remote Code Execution In VMware Aria Operations For Logs
VMware Aria Operations for Logs deserialises untrusted Java objects sent to three cluster management APIs without validation. A remote unauthenticated attacker can send a crafted serialised object to execute arbitrary code as root.
Published on zerodayinitiative.com
An insecure deserialization vulnerability has been reported in VMware Aria Operations for Logs. The vulnerability is due to improper validation of user data in the InternalClusterController class.
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
The application passed the HTTP request body directly to a Java deserialisation routine without validating the serialised object's class or contents.
Impact
An unauthenticated attacker could execute arbitrary code as root on the appliance; the text notes similar bugs have reportedly been exploited in the wild, though it saw no evidence for this one.
What the attacker needed
Network access to ports 9000 or 9543; no authentication required
The fix
VMware patched the bug in April 2023 with advisory VMSA-2023-0007; users should test and deploy the update quickly.
How it was found
- Identify the cluster management API endpoints applyMembership, setToken and approveMembership.
- Craft a serialised Java object using the CommonsBeanutils1 gadget chain.
- Send an HTTP POST request containing the serialised object to one of those endpoints.
- The server deserialises the object and executes the attacker's code 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.
Java programs can turn objects into a stream of bytes and back again, a process called serialisation. If a program rebuilds an object from bytes supplied by an outsider without checking what is inside, the outsider can smuggle in a malicious object that runs code when rebuilt. Here the server did exactly that on cluster setup APIs, so anyone who could reach them could run commands as the root user.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.