Skip to content
RCE Write-up Intermediate

I Love Lucee: Building Lucee Extensions for Remote Code Execution

Improperly configured Lucee instances allowed administrative access via default or weak passwords, and the admin interface permitted uploading a malicious extension that dropped a web shell, enabling remote code execution.

Will Vandevanter Follow

Published on sprocketsecurity.com

Testing Lab Technical

Will Vandevanter, Juan Pablo Gomez Postigo, on sprocketsecurity.com

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 Lucee administrator interface was exposed with weak or default credentials and allowed uploading of extensions that could write executable files to the web root.

Impact

An attacker with admin access could execute arbitrary commands on the server, leading to full compromise; a WAF may block direct uploads, but a stager can be used to download the shell.

What the attacker needed

Admin access to Lucee (default/weak password); ability to upload extensions

The fix

Restrict access to the Lucee administrator, disable it if not needed, use a complex password, keep Lucee updated, and enable CAPTCHA or login delays.

How it was found

  1. Access the Lucee administrator login page and authenticate using a default or weak password.
  2. Navigate to the Extensions section and upload a crafted .lex extension file.
  3. The extension installs a web shell (cmd.cfm) into a context folder accessible via the /lucee directory.
  4. Send a request to the web shell with the correct authentication header and a command header to execute commands on the server.

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 web application server. If an attacker can log in to its admin panel, they can upload a plugin (extension) that contains a hidden backdoor program. That backdoor lets them run commands on the server, taking full control.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

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.