Skip to content
RCE Write-up Advanced

CVE-2022-38108: RCE In Solarwinds Network Performance Monitor

An insecure deserialization vulnerability in SolarWinds Network Performance Monitor allows an authenticated attacker to send crafted messages via RabbitMQ to the SWIS application, leading to arbitrary code execution under the SYSTEM context. The flaw arises because the BytesToMessage function deserializes untrusted JSON without proper validation, enabling the use of known Json.NET gadgets.

Piotr Bazydło Follow

Published on zerodayinitiative.com

An insecure deserialization vulnerability has been reported in SolarWinds Network Performance Monitor. The vulnerability is due to insufficient validation of user-supplied data in the BytesToMessage function.

Piotr Bazydło (@chudyPB), Justin Hong, Lucas Miller, on zerodayinitiative.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

The BytesToMessage function deserializes untrusted JSON data without validating the object type, and the BlackListBinder that could block dangerous types is not used for messages from RabbitMQ.

Impact

Successful exploitation could result in arbitrary code execution under the security context of SYSTEM, but the attacker must have credentials to access the RabbitMQ message broker.

What the attacker needed

Credentials to access RabbitMQ broker; network access to TCP port 5671

How it was found

  1. Connect to the RabbitMQ message broker on TCP port 5671 with valid credentials.
  2. Send an AMQP message with routing-key 'SwisPubSub' containing a malicious Json.NET serialized object.
  3. The SWIS application deserializes the message content without proper validation, triggering code 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.

This report describes a security flaw in SolarWinds Network Performance Monitor, a tool for monitoring networks. The software accepts messages from other parts of the system and turns them into objects without checking if they are safe. An attacker who can log in to the message system can send a specially crafted message that makes the server run harmful code, giving them full control.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More from SolarWinds

View all

The newest disclosed reports for this program.

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.