Skip to content
RCE Write-up Advanced

[Blog] Exploiting the hidden Saxon XSLT Parser in Ektron CMS

A SOAP web service in Ektron CMS accepted an XSLT document and passed it to the Saxon XSLT parser, which allows calling static methods of .NET classes. An attacker could send a crafted XSLT to run code at the application's privilege level.

code-white.com

Published on code-white.com

Another vulnerability I came across was in Ektron CMS. It’s a .NET-based Web CMS System.

The author, on code-white.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 web service passed user-supplied XSLT to the Saxon parser without disabling its extension functions that call static .NET methods.

Impact

An attacker could run arbitrary code at the privilege level of the application, though the text notes the service was later exposed only on localhost by default.

What the attacker needed

Reachable ServerControlWS.asmx service; Saxon parser present on server

The fix

Ektron released a security update that was said to harden the parser, though the author had not verified it.

How it was found

  1. Find the exposed ServerControlWS.asmx web service and read its WSDL
  2. Identify the ContentBlockEx SOAP method and its xslt parameter
  3. Discover the Saxon parser libraries on the server and read its documentation on calling .NET static methods
  4. Build an XSLT stylesheet that calls a .NET static method
  5. Send it inside the ContentBlockEx SOAP request and observe the output

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.

XSLT is a language for transforming XML documents, and some XSLT engines can call functions from the host programming language. Here the engine (Saxon) let a supplied stylesheet call .NET methods, so whoever controlled the stylesheet could make the server run their chosen code. The web service exposed a parameter that accepted a whole XSLT document from the client.

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.