Skip to content
RCE Write-up Advanced

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.

SecureLayer7 Follow

Published on blog.securelayer7.net

Vulnerability Research

SecureLayer7 (@SecureLayer7), on blog.securelayer7.net

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

  1. Send a POST request to a ColdFusion component endpoint with a JSON body containing a _variables parameter.
  2. In the JSON, set a _metadata object with a classname pointing to a file path such as /etc/passwd.
  3. The server reads and returns the contents of the specified file.
  4. To execute code, send a request with a cfexecute tag in the _variables parameter.
  5. 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.

More by SecureLayer7

View all

1 more disclosed report, best first.

More from Adobe (ColdFusion)

View all

The newest disclosed reports for this program.

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.