Skip to content
RCE Write-up Advanced

50 Shades of SolarWinds Orion Deserialization (Part 1: CVE-2021–35215)

The SolarWinds Orion platform's RenderControl page deserialises user-supplied JSON and uses it to set properties on a server-side control, which can invoke a setter that deserialises attacker-controlled data with type handling enabled. An authenticated attacker could achieve remote code execution by chaining this with a gadget chain.

testbnull.medium.com

Published on testbnull.medium.com

Jang

Jang, on testbnull.medium.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 RenderControl page deserialises JSON and uses it to set arbitrary properties on a control, and one settable property (ViewContextJsonString) calls Newtonsoft.Json deserialisation with TypeNameHandling enabled, allowing unsafe type resolution.

Impact

An authenticated attacker could achieve remote code execution on the server, affecting all SolarWinds products with an Orion-based web interface.

What the attacker needed

A valid account on the target

The fix

The text states that a patch for these bugs is available on the vendor's website.

How it was found

  1. Send a request to Orion/RenderControl.aspx with a JSON body containing a 'Control' value and a 'config' key.
  2. The server loads the specified control and applies the properties from the JSON.
  3. Set the ViewContextJsonString property to trigger ParseViewContext and a second deserialisation.
  4. Use a gadget chain to achieve remote 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.

The application takes data from a web request and uses it to set properties on a server-side object. Because one of those properties triggers another deserialisation step that allows arbitrary types, an attacker who can log in can run their own code 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.