Skip to content
RCE Write-up Advanced

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.

Jordan Parkin Follow

Published on bishopfox.com

The following document describes identified vulnerabilities in the Netwrix Auditor application in supported versions prior to 10.5.

Jordan Parkin, on bishopfox.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 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

  1. Scan the Netwrix Auditor server with nmap to find the .NET remoting service on TCP port 9004.
  2. Use netstat and tasklist on the server to identify the process exposing the service.
  3. Analyse the service to find the UAVRServer endpoint.
  4. Use ysoserial.net to generate a serialized object that executes a command.
  5. Send the serialized object to the UAVRServer service using ExploitRemotingService.
  6. 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.

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.