How I got $$$$ Bounty within 5 mins
The Telerik UI dialog handler was vulnerable to a base64 encryption oracle (CVE-2017-9248), allowing an attacker to recover the key and access a file manager. The attacker then uploaded an ASPX web shell, achieving remote code execution.
Published on p4n7h3rx.medium.com
Hi folks, Usually I don't do writeups or share anything related to bug bounty. From now I will be sharing my experience and knowledge & hope it will add some value to your Bug Bounty journey ❤
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 a weak encryption implementation in the Telerik UI dialog handler that allowed recovery of the encryption key.
Impact
An attacker could upload a web shell and execute arbitrary commands on the server, provided remote file permissions allow.
What the attacker needed
Target runs vulnerable Telerik UI version; Remote file permissions allow upload
The fix
Upgrade Telerik UI for ASP.NET AJAX to a version after 2017.1.118.
How it was found
- Identify the target is using Telerik UI and the vulnerable DialogHandler endpoint.
- Run the dp_crypto tool to recover the encryption key.
- Use the tool to generate an encrypted link to the file manager.
- Visit the link to access the file manager.
- Upload an ASPX web shell through the file manager.
- Navigate to the uploaded shell to execute commands.
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.
The website used an old version of a software component called Telerik UI. That version had a flaw in how it protected a secret key, so an attacker could figure out the key and use it to reach a file upload page. Once there, the attacker uploaded a malicious file that let them run commands on 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.