Skip to content
RCE Write-up Advanced

Reverse Engineering Sitecore Vulnerabilities-3

A Sitecore installation used a vulnerable Telerik UI component that deserialises untrusted JSON, allowing an attacker to upload and execute a DLL on the server. Chained with an earlier flaw that leaked the web.config, the attacker could obtain the Telerik encryption keys and run code, in the demonstrated case shutting the server down.

nilayp799 Follow

Published on medium.com

This blog will focus on how a third-party vulnerability affected Sitecore in a serious way. I must suggest, please go through my previous blog post in this series before you read further.

Nilay Patel, on medium.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 bundled Telerik UI component deserialised attacker-supplied JSON without adequate type restrictions, and its encryption keys were exposed through a separate file-disclosure flaw.

Impact

An attacker could execute code on the server, and in the demonstration this could shut the server down; the chain depends on first obtaining the Telerik keys from the leaked configuration file.

What the attacker needed

Sitecore with vulnerable Telerik; Leaked web.config for Telerik keys; Ability to reach the Telerik handler

The fix

Sitecore should be patched with the vendor hotfix and the Telerik controls secured as described in the vendor guidance.

How it was found

  1. Exploit the earlier Device Simulator flaw to retrieve configuration and licence files from the webroot.
  2. Read the Telerik keys out of the retrieved web.config file.
  3. Compile a DLL containing the desired action.
  4. Put the keys into the public exploit script and run it against the Telerik web resource endpoint, naming the DLL.
  5. The DLL lands in the website root and executes, in this case shutting down 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.

Some web software includes third-party components, and a bug in one of those can affect the whole site. Here, a Telerik component accepted specially crafted data and turned it into running code on the server. The author first used an older bug to read a configuration file holding secret keys, then used those keys to make the malicious request look legitimate.

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.