Skip to content
RCE Write-up Intermediate

[CVE-2025-46661] IPW Systems Metazo - Remote Code Execution via unauthenticated SSTI

An unauthenticated endpoint evaluated user-supplied content as a Smarty template, allowing remote code execution. An attacker could run arbitrary commands on the server without logging in.

hesec.de

Published on hesec.de

IPW Polaris and IPW Metazo are part of the IPW BasicBuilder Suite. The vendor describe their solution as:

The author, on hesec.de

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 application passed unsanitised user input from the 'content' parameter directly into Smarty's fetch() function on an unauthenticated endpoint.

What the attacker needed

Network access to the endpoint; no authentication required

The fix

The vendor fixed the RCE and all other discovered vulnerabilities on their hosted instances.

How it was found

  1. Send a POST request to /metazo/api/smartyValidator.php with a 'content' parameter containing a Smarty template that executes a system command.
  2. The server evaluates the template and runs the command, returning the output or making an outbound request.

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.

Template engines like Smarty let websites insert dynamic content into pages. If a template engine is given raw user input and evaluates it, an attacker can include special template code that runs system commands on the server. Here, a public endpoint did exactly that, so anyone could run commands without needing an account.

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.