Unauthenticated RCE in Adobe Coldfusion – CVE-2023-26360
Adobe ColdFusion versions 2018 and 2021 were vulnerable to unauthenticated remote code execution through untrusted JSON data. An attacker could read arbitrary files and execute commands without user interaction.
Published on blog.securelayer7.net
Vulnerability Research
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 JSON deserialisation logic in ColdFusion allowed untrusted input to specify a class name that was then used to load and compile arbitrary files, leading to file read and code execution.
Impact
An unauthenticated attacker could read arbitrary files and execute arbitrary commands on the server, and the vulnerability was exploited in the wild by a Chinese APT group against US government agencies.
What the attacker needed
Network access to the ColdFusion server; no authentication required
How it was found
- Send a POST request to a ColdFusion component endpoint with a JSON body containing a _variables parameter.
- In the JSON, set a _metadata object with a classname pointing to a file path such as /etc/passwd.
- The server reads and returns the contents of the specified file.
- To execute code, send a request with a cfexecute tag in the _variables parameter.
- The server runs the command specified in the cfexecute tag.
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 is a flaw in a web server program called ColdFusion. It lets anyone on the internet send a specially crafted request that makes the server run commands or read files, without needing to log in. That is very dangerous because the attacker can take full control of 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.