Skip to content
RCE Advisory Intermediate

GHSL-2020-076: Server-Side Template Injection in Cascade CMS

Cascade CMS did not use Velocity's SecureUberspector, allowing users who can edit templates to execute arbitrary Java code and system commands. An attacker with template editing privileges could achieve remote code execution.

Alvaro Muñoz Follow

Originally disclosed on GitHub Security Lab

A user with privileges to edit templates may execute arbitrary Java code or run arbitrary system commands with the same privileges as the account running Cascade CMS.

pwntester, on GitHub Security Lab

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 report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The application failed to enable Velocity's SecureUberspector, which restricts template access to dangerous Java classes and methods.

Impact

An attacker with template editing privileges could execute arbitrary Java code and system commands, leading to remote code execution with the same privileges as the Cascade CMS process.

What the attacker needed

Privileges to edit or create templates

The fix

The issue was fixed by the vendor after coordinated disclosure.

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 report has not been written yet. The Original tab links to the source.

Cascade CMS lets users customise web pages using templates written in a language called Velocity. Normally, Velocity has a safety setting that stops templates from running dangerous Java code, but here that setting was missing. So someone who could edit a template could make the server run commands, like a remote control for the computer.

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 Alvaro Muñoz

View all

132 more disclosed reports, best first.

More from GitHub Security Lab

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.