.NET Deserialization Leading to Remote Code Execution in Composit
The CMS's SOAP service deserialises an EntityToken parameter without validation, allowing an authenticated low-privilege user to execute arbitrary code on the server. The attacker used a crafted BinaryFormatter payload to obtain a reverse shell and then escalated to SYSTEM.
Published on medium.com
This post demonstrates the black-box exploitation of Composite C1 CMS leveraging the deserialization vulnerability tracked as CVE-2019–18211. The flaw exists in specific SOAP-based web services within the CMS and allows attackers to execute arbitrary code on the target server.
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 EntityTokenSerializer class performs unvalidated deserialization of wrapped BinaryFormatter payloads.
Impact
An attacker with low-level privileges could execute arbitrary code on the server, leading to a reverse shell and potential full system compromise.
What the attacker needed
Low-level privileges (e.g., Editor); network access to the CMS
The fix
The text recommends upgrading to the latest version of C1 CMS, restricting access to /Composite and its SOAP endpoints, disabling or securing WSDL file access, and avoiding BinaryFormatter.
How it was found
- Discover the CMS admin panel via directory scan.
- Identify the CMS version through the About menu.
- Locate the SOAP WSDL file and enumerate methods.
- Find the GetMultipleChildren method that accepts an EntityToken.
- Generate a malicious BinaryFormatter payload with ysoserial.
- Send a SOAP request with the payload in the EntityToken parameter to trigger RCE.
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 CMS has a web service that accepts a piece of data and turns it back into an object without checking what it is. An attacker can send a specially crafted object that, when rebuilt, runs commands on the server. This lets someone with a basic account take full control of the machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.