Thinking Defensively About Three Recent Lucee Vulnerabilities
Three vulnerabilities in Lucee were described: a Java deserialization flaw in REST mappings leading to remote code execution, a code evaluation issue via client cookies, and unsafe evaluation of CFML code in certain functions. An attacker could exploit these to execute arbitrary code, with the third being unauthenticated in Masa CMS and Mura CMS.
Last week, Harsh Jaiswal and Rahul Maini from ProjectDiscovery released some impressive security research on multiple vulnerabilities in Lucee (and Mura CMS and Masa CMS). Their blog post is a must-read, and I'm not going to rehash their steps from research to discovery to exploitation.
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 root causes are unsafe deserialization of untrusted data, evaluation of user-controlled cookie contents as code, and passing unvalidated user input into functions that evaluate code.
Impact
An attacker could execute arbitrary code on the server, potentially leading to full compromise, though some defences like WAF rules or disabling client management may limit exploitation.
What the attacker needed
Lucee with REST mappings for CVE-2023-38693; Client management enabled for cookie issue; Masa CMS or Mura CMS on Lucee for third issue
The fix
The vulnerabilities were fixed in Lucee [redacted] and [redacted], and in Masa CMS 7.4.5 / 7.3.12 / 7.2.7 and Mura CMS 10.0.687; additionally, disable client management, avoid passing unvalidated input to dangerous functions, and enable the limit evaluation setting.
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.
Lucee is a server-side platform for building web applications. These bugs let an attacker run their own code on the server, which is very serious. The article explains how to defend against them, not how to exploit them.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.