Skip to content
RCE Write-up Advanced

Telerik Revisited

The Telerik UI AsyncUploadHandler deserialises attacker-supplied JSON into an arbitrary .NET type, allowing a crafted request to load a mixed-mode DLL and execute code. This bypassed the usual need to write to the web root and gave unauthenticated remote code execution on Managed Workplace.

Markus Wulftange Follow

Published on codewhitesec.blogspot.com

In 2017, several vulnerabilities were discovered in Telerik UI, a popular UI component library for .NET web applications. Although details and working exploits are public, it often proves to be a good idea to take a closer look at it.

Markus Wulftange, on codewhitesec.blogspot.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

The handler passed an attacker-controlled assembly-qualified type name to JavaScriptSerializer.Deserialize, enabling arbitrary type deserialisation and gadget-based code execution.

Impact

An unauthenticated attacker could execute arbitrary code in the context of the IIS worker process, though the text notes that the earlier upload step still required a writable location to be found.

What the attacker needed

Telerik UI vulnerable to CVE-2017-11317; a writable directory path is known; no authentication needed for the handler

The fix

The issue was addressed and should be fixed in Managed Workplace 11 SP4 MR2.

How it was found

  1. Upload a mixed-mode assembly DLL to a writable location using the AsyncUploadConfiguration exploit.
  2. Send a rauPostData value containing JSON and an assembly-qualified type name for System.Configuration.Install.AssemblyInstaller.
  3. The handler deserialises the JSON into that type, which loads the uploaded DLL and triggers its DllMain entry point.

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.

A web component was trusting data sent by the user and turning it back into a program object without checking what kind of object it was. By choosing a special object type, an attacker could make the server load a malicious library file and run its code. This meant someone with no login could take over the server.

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 Markus Wulftange

View all

11 more disclosed reports, best first.

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.