From Padding Oracle to Shell: RCE in Telerik UI for ASP.NET AJAX
An unauthenticated AES-CBC padding oracle in Telerik UI for ASP.NET AJAX's RadAsyncUpload control let an attacker decrypt and forge the encrypted client-state blobs, which was chained with two further flaws to reach remote code execution. The oracle arises because bad padding and valid-padding-but-invalid-JSON produce distinguishable errors.
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 framework used AES-CBC without a MAC and exposed two distinguishable error paths (padding failure versus JSON parse failure) when decrypting client-supplied state, creating a padding oracle.
Impact
An unauthenticated attacker could decrypt and forge the control's encrypted state and, by chaining two further flaws, achieve remote code execution, though exploitation requires a reachable RadAsyncUpload page whose handler reads UploadResult and a non-default explicit encryption key, and with customErrors On the oracle must be exploited via timing analysis.
What the attacker needed
Reachable page with RadAsyncUpload; handler reads UploadResult; explicit non-default encryption key set; timing analysis if customErrors is On
The fix
The vendor states that upgrading to version 2026.2.708 (2026 Q2 SP1) or later prevents exploitation of the chain.
How it was found
- Send a request to the RadAsyncUpload handler or a page postback carrying the encrypted configuration blob.
- Flip a byte in the ciphertext block preceding the target block and observe which error comes back.
- Use the valid-padding versus invalid-JSON difference to recover the intermediate bytes byte by byte.
- Forge a new ciphertext that decrypts to chosen configuration values.
- Chain the forged state with two further vulnerabilities to reach remote code execution.
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 frameworks encrypt data they send to the browser so the browser cannot read or change it. If the server reports a different error when the encrypted data is malformed versus when it decrypts but contains nonsense, an attacker can use those error differences like a yes/no question to slowly work out the secret contents and even craft new encrypted values without ever knowing the key. This is called a padding oracle, and here it let the researchers tamper with upload settings and eventually run their own code on the server.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.