Adobe ColdFusion Deserialization RCE (CVE-2017-11283, CVE-2017-11284)
Adobe ColdFusion's Flex integration RMI service exposed methods that accept arbitrary Java objects, allowing unauthenticated Java deserialization attacks. An attacker could send a crafted serialized object to execute arbitrary code under the local SYSTEM account.
Published on nickbloor.co.uk
During my research into the Java Remote Method Invocation (RMI) protocol, the most common RMI service that I came across was Adobe ColdFusion’s Flex integration service which is used to support integration between Flash applications and ColdFusion components. A quick look at this service led to the discovery of two…
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 RMI service deserialized arbitrary Java objects received from remote clients without validating their type or origin.
Impact
An unauthenticated attacker could execute arbitrary code on the server, which runs under the local SYSTEM account by default.
What the attacker needed
Network access to the RMI service; no authentication required
The fix
Adobe released a security update, but it was not sufficient on its own because the bundled Java runtime also had to be updated manually.
How it was found
- Enumerate RMI endpoints to find the ColdFusion Flex integration service.
- Download and install a trial version of ColdFusion to obtain the relevant interface class.
- Identify the DataServicesCFProxy interface and note its methods accept arbitrary objects.
- Generate a Java deserialization payload using ysoserial.
- Modify serialVersionUID values in the payload to match the remote classes.
- Send the crafted payload to the RMI service to trigger 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.
Java serialization turns objects into a stream of bytes so they can be sent over a network. If a service deserializes untrusted bytes without checking what they contain, an attacker can craft bytes that make the service run their code. Here, ColdFusion's remote service accepted such bytes from anyone, so an attacker could 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.