From Arbitrary File Read to Shell: Yet Another RCE in Telerik
Two flaws in Telerik UI for ASP.NET AJAX were chained: an arbitrary file read in RadImageEditor's caching mechanism, and an unrestricted file upload in RadEditor's file browser. An unauthenticated attacker could read web.config and, where a static machineKey or DialogParametersEncryptionKey was configured, escalate to remote code execution.
Published on tantosec.com
We used AI tools to assist with researching and producing this post. Learn more about our approach to AI.
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 image editor's client state field was neither encrypted nor signed, so a client-supplied image path was trusted and cached, and the cache handler then served that path without restricting it to the application root.
Impact
An unauthenticated attacker could read files under the application root, and where a static machineKey or DialogParametersEncryptionKey was configured, could escalate to remote code execution; a default install lacks those keys, so code execution is configuration-dependent.
What the attacker needed
A reachable page rendering RadImageEditor or RadEditor; no authentication needed; for RCE: static machineKey or dialog key set
The fix
It was fixed in version 2026.3.812, and operators should also restrict the file browser's reachable folders as a defence-in-depth measure.
How it was found
- GET a page that renders RadImageEditor or RadEditor and keep the ViewState and the client state field name, or harvest the encrypted dialog parameters for the ImageEditor dialog.
- POST back a crafted client state with imageUrl set to an application-relative path such as the root web.config, or POST the dialog parameters with OriginalImageLocation set to the same path.
- Take the returned download key from the response.
- Send the download key to the cache handler to retrieve the file contents.
- Use secrets recovered from web.config, such as a static machineKey, to forge a ViewState carrying a deserialisation gadget chain.
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.
Telerik is a set of ready-made controls that developers drop into ASP.NET web pages. One control let a visitor tamper with a hidden form field so the server would later hand back any file under the application folder, including the configuration file that holds secret keys. If those keys are present, an attacker can use them to make the server run their own code.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.