Netwrix Auditor Advisory
The Netwrix Auditor application exposed an unsecured .NET remoting service on TCP port 9004, allowing an attacker to send a malicious serialized object and execute arbitrary code with the service's privileges. Because the service typically runs with high privileges in an Active Directory environment, this could lead to full domain compromise.
Published on bishopfox.com
The following document describes identified vulnerabilities in the Netwrix Auditor application in supported versions prior to 10.5.
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 .NET remoting service on TCP port 9004 accepted and deserialized untrusted objects without authentication or type restrictions.
Impact
An attacker could execute arbitrary code on the Netwrix Auditor server and, because the service typically runs with high privileges, could likely compromise the Active Directory domain.
What the attacker needed
Network access to TCP port 9004; no authentication required
The fix
The issue was fixed by updating to version 10.5.
How it was found
- Scan the Netwrix Auditor server with nmap to find the .NET remoting service on TCP port 9004.
- Use netstat and tasklist on the server to identify the process exposing the service.
- Analyse the service to find the UAVRServer endpoint.
- Use ysoserial.net to generate a serialized object that executes a command.
- Send the serialized object to the UAVRServer service using ExploitRemotingService.
- Log onto the server and check the output file to confirm command execution.
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.
Deserialization is when a program turns stored data back into an object. If an attacker can control that data, they can craft a malicious object that runs code when the program processes it. Here, a network service accepted such objects without proper checks, letting an attacker run 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.