50 Shades of SolarWinds Orion (Patch Manager) Deserialization (Final Part: CVE-2021–35218)
The SolarWinds Orion Patch Manager chart handler deserialised a user-supplied type and XML payload, allowing remote code execution. A separate authentication bypass in the i18nRedirector module let GET requests containing a special string skip authorisation, so the deserialisation bug could be triggered without an account.
testbnull.medium.com
Published on testbnull.medium.com
Sau bài viết vội về CVE-2021–35215 cuối tuần trước, mình thấy cũng có khá nhiều người đang quan tâm tới các product của SolarWinds.
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 chart handler passed a user-controlled type name to XmlSerializer.Deserialize, and the authentication module only blocked non-GET requests containing the Skipi18n string, leaving GET requests treated as authenticated.
Impact
An unauthenticated attacker could execute arbitrary code on the server, though the vendor reportedly rated it 8.8 rather than as a pre-auth RCE.
What the attacker needed
Network access to the Orion server; no account needed due to auth bypass
How it was found
- Send a GET request to the chart handler path containing the Skipi18n string.
- Supply the gadget type in the tp query parameter.
- Supply the gzip-compressed, base64-encoded serialised payload in the chart parameter.
- The server deserialises the payload and executes the chosen command.
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.
Deserialisation is when a program turns stored data back into objects; if an attacker controls the data and the type, they can make the program create dangerous objects that run commands. Here the chart handler took both the type and the data from the request, and a second flaw let unauthenticated GET requests skip the login check.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.