CVE-2022-35690: Unauthenticated RCE In Adobe ColdFusion
The ODBC Agent component of Adobe ColdFusion mishandles GIOP request messages, allowing heap and stack buffer overflows when oversized opcode data is supplied. A remote unauthenticated attacker could send a crafted request to execute arbitrary code as SYSTEM, or crash the process.
A memory corruption vulnerability exists in Adobe ColdFusion. This vulnerability is due to the lack of proper validation of user-supplied data, which can result in a memory corruption condition.
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 ODBC Agent uses the attacker-controlled OpcodeDataSize field as the length for memmove() calls into fixed-size heap and stack buffers without validating it against the buffer size.
Impact
Successful exploitation could result in arbitrary code execution with SYSTEM privileges, while an unsuccessful attack would crash the process, causing a denial of service.
What the attacker needed
Network access to port 20009/TCP; no authentication needed
The fix
Adobe patched the vulnerability in October 2022 and recommends also updating the ColdFusion JDK/JRE and applying the lockdown guidance.
How it was found
- Send a GIOP request message to port 20009/TCP with the magic bytes set to GIOP and message type 0.
- Set the ServiceContext and Principal fields to 0, the object key to the expected value and the operation to SSP.
- Include opcode 8 with an OpcodeDataSize larger than 38 to overrun the heap buffer, or opcode 7 with a size larger than 22 to overrun the stack buffer.
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.
ColdFusion is a web application platform, and one of its helper programs listens on a network port for a particular kind of message. That program copies data from the message into fixed-size memory areas without checking how much data there is, so extra data spills over into neighbouring memory. An attacker who can reach that port can use the spill to run their own code on the server.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.