CVE-2003-0224
CVSS10.0
发布时间 :2003-06-09 00:00:00
修订时间 :2016-10-17 22:30:56
NMCOS    

[原文]Buffer overflow in ssinc.dll for Microsoft Internet Information Services (IIS) 5.0 allows local users to execute arbitrary code via a web page with a Server Side Include (SSI) directive with a long filename, aka "Server Side Include Web Pages Buffer Overrun."


[CNNVD]Microsoft IIS ssinc.dll长文件名缓冲区溢出漏洞(MS03-018)(CNNVD-200306-007)

        
        Microsoft IIS 5.0(Internet Infomation Server 5)是Microsoft Windows 2000自带的一个网络信息服务器。IIS支持SSI(Server Side Include)功能。ssinc.dll就是一个SSI解释器。默认情况下,扩展名 .stm、.shtm 和 .shtml 被映射到解释程序(ssinc.dll)。
        IIS 4.0/5.0所带的一个动态链接库(ssinc.dll)在处理包含文件时存在一个缓冲区溢出漏洞,本地攻击者可能利用这个漏洞获取Local System权限。
        SSI支持"#include"指令,通常的使用方式是:
        
        ssinc.dll在处理"#include"指令时,会首先试图获取该shtml文件的物理路径,因此它会将URI请求拷贝到一个固定大小的缓冲区中,例如当请求下列shtml文件时:
        http://iishost/abc/test.shtml
        它会将"/abc/test.shtml"保存到一个固定大小的缓冲区中。由于在拷贝时没有对shtml文件名的长度进行检查,导致一个栈缓冲区溢出。
        NSFocus安全小组曾发现过一个类似的问题,参见
        http://www.nsfocus.net/index.php?act=advisory&do=view&adv_id=17,
        相应的微软安全公告为
        http://www.microsoft.com/technet/security/bulletin/ms01-044.asp。
        本漏洞是在原来的那个漏洞之前发生的。
        IIS检测了过长的shtml文件名以避免缓冲区溢出,然而遗憾地是IIS的处理方法是将长文件名截短至合法长度然后试图打开它,而打开之后ssinc.dll仍然会使用初始的URI进行拷贝。因此通过创建一个特定长度的WEB文件就有可能绕过这个检查,然后再请求一个长文件名的shtml文件就会产生溢出,可导致IIS停止响应。如果精心地构造溢出数据,就可能改变程序流程,并以local System权限执行任意代码。
        攻击者要进行攻击需要有两个条件:
        1. 攻击者需要有权限在web目录下创建文件。
        2. 攻击者需要能够通过web服务访问创建的文件。
        

- CVSS (基础分值)

CVSS分值: 10 [严重(HIGH)]
机密性影响: [--]
完整性影响: [--]
可用性影响: [--]
攻击复杂度: [--]
攻击向量: [--]
身份认证: [--]

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

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

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

oval:org.mitre.oval:def:483IIS Server Side Include Web Pages Buffer Overrun
*OVAL详细的描述了检测该漏洞的方法,你可以从相关的OVAL定义中找到更多检测该漏洞的技术细节。

- 官方数据库链接

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

- 其它链接及资源

http://marc.info/?l=ntbugtraq&m=105431767100944&w=2
(UNKNOWN)  NTBUGTRAQ  20030530 NSFOCUS SA2003-05: Microsoft IIS ssinc.dll Over-long Filename Buffer Overflow Vulnerability
http://www.microsoft.com/technet/security/bulletin/ms03-018.asp
(VENDOR_ADVISORY)  MS  MS03-018

- 漏洞信息

Microsoft IIS ssinc.dll长文件名缓冲区溢出漏洞(MS03-018)
危急 边界条件错误
2003-06-09 00:00:00 2005-10-20 00:00:00
远程  
        
        Microsoft IIS 5.0(Internet Infomation Server 5)是Microsoft Windows 2000自带的一个网络信息服务器。IIS支持SSI(Server Side Include)功能。ssinc.dll就是一个SSI解释器。默认情况下,扩展名 .stm、.shtm 和 .shtml 被映射到解释程序(ssinc.dll)。
        IIS 4.0/5.0所带的一个动态链接库(ssinc.dll)在处理包含文件时存在一个缓冲区溢出漏洞,本地攻击者可能利用这个漏洞获取Local System权限。
        SSI支持"#include"指令,通常的使用方式是:
        
        ssinc.dll在处理"#include"指令时,会首先试图获取该shtml文件的物理路径,因此它会将URI请求拷贝到一个固定大小的缓冲区中,例如当请求下列shtml文件时:
        http://iishost/abc/test.shtml
        它会将"/abc/test.shtml"保存到一个固定大小的缓冲区中。由于在拷贝时没有对shtml文件名的长度进行检查,导致一个栈缓冲区溢出。
        NSFocus安全小组曾发现过一个类似的问题,参见
        http://www.nsfocus.net/index.php?act=advisory&do=view&adv_id=17,
        相应的微软安全公告为
        http://www.microsoft.com/technet/security/bulletin/ms01-044.asp。
        本漏洞是在原来的那个漏洞之前发生的。
        IIS检测了过长的shtml文件名以避免缓冲区溢出,然而遗憾地是IIS的处理方法是将长文件名截短至合法长度然后试图打开它,而打开之后ssinc.dll仍然会使用初始的URI进行拷贝。因此通过创建一个特定长度的WEB文件就有可能绕过这个检查,然后再请求一个长文件名的shtml文件就会产生溢出,可导致IIS停止响应。如果精心地构造溢出数据,就可能改变程序流程,并以local System权限执行任意代码。
        攻击者要进行攻击需要有两个条件:
        1. 攻击者需要有权限在web目录下创建文件。
        2. 攻击者需要能够通过web服务访问创建的文件。
        

- 公告与补丁

        临时解决方法:
        如果您不能立刻安装补丁或者升级,CNNVD建议您采取以下措施以降低威胁:
        1、禁止不可信用户对web目录拥有写权限
        2、如果您不需要SSI功能,删除.shtml、.shtm、.stm映射
        3、安装微软提供的IIS Lockdown工具:
        
        http://www.microsoft.com/downloads/details.aspx?familyid=dde9efc0-bb30-47eb-9a61-fd755d23cdec&displaylang=en

        厂商补丁:
        Microsoft
        ---------
        Microsoft已经为此发布了一个安全公告(MS03-018)以及相应补丁:
        MS03-018:Cumulative Patch for Internet Information Service (811114)
        链接:
        http://www.microsoft.com/technet/security/bulletin/MS03-018.asp

        补丁程序可以在下列地址下载:
        
        http://microsoft.com/downloads/details.aspx?FamilyId=2F5D9852-4ADD-44F8-8715-AC3D7D7D94BF

- 漏洞信息

4655
Microsoft IIS ssinc.dll Long Filename Overflow
Local Access Required Input Manipulation
Loss of Integrity
Exploit Public

- 漏洞描述

A local overflow exists in the Microsoft IIS web server. The service fails to validate the length of the parameter passed to the SSI include() function, resulting in a stack overflow. With a specially crafted SHTML page, an attacker can execute arbitrary code on this system, resulting in a loss of confidentiality, integrity, and/or availability.

- 时间线

2003-05-30 Unknow
Unknow Unknow

- 解决方案

The vendor has released hotfix Q811114 to address this issue. This hotfix is dependent on the patch associated with Microsoft Security Bulletin MS02-050. It is also possible to correct the flaw by implementing the following workaround: Disable the ssinc.dll mapping, using a tool such as IIS Lockdown.

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

Microsoft IIS SSINC.DLL Server Side Includes Buffer Overflow Vulnerability
Boundary Condition Error 7734
Yes No
2003-05-28 12:00:00 2009-07-11 10:06:00
Discovery of this vulnerability has been credited to Ren Guang Yuan of NSFOCUS Security Team.

- 受影响的程序版本

Microsoft IIS 5.0
- Microsoft Windows 2000 Advanced Server SP2
- Microsoft Windows 2000 Advanced Server SP2
- Microsoft Windows 2000 Advanced Server SP1
- Microsoft Windows 2000 Advanced Server SP1
+ Microsoft Windows 2000 Advanced Server
+ Microsoft Windows 2000 Advanced Server
- Microsoft Windows 2000 Datacenter Server SP2
- Microsoft Windows 2000 Datacenter Server SP2
- Microsoft Windows 2000 Datacenter Server SP1
- Microsoft Windows 2000 Datacenter Server SP1
- Microsoft Windows 2000 Professional SP2
- Microsoft Windows 2000 Professional SP2
- Microsoft Windows 2000 Professional SP1
- Microsoft Windows 2000 Professional SP1
+ Microsoft Windows 2000 Professional
+ Microsoft Windows 2000 Professional
- Microsoft Windows 2000 Server SP2
- Microsoft Windows 2000 Server SP2
- Microsoft Windows 2000 Server SP1
- Microsoft Windows 2000 Server SP1
+ Microsoft Windows 2000 Server
+ Microsoft Windows 2000 Server
Microsoft IIS 6.0
+ Microsoft Windows Server 2003 Datacenter Edition
+ Microsoft Windows Server 2003 Datacenter Edition
+ Microsoft Windows Server 2003 Datacenter Edition Itanium 0
+ Microsoft Windows Server 2003 Datacenter Edition Itanium 0
+ Microsoft Windows Server 2003 Enterprise Edition
+ Microsoft Windows Server 2003 Enterprise Edition
+ Microsoft Windows Server 2003 Enterprise Edition Itanium 0
+ Microsoft Windows Server 2003 Enterprise Edition Itanium 0
+ Microsoft Windows Server 2003 Standard Edition
+ Microsoft Windows Server 2003 Standard Edition
+ Microsoft Windows Server 2003 Web Edition
+ Microsoft Windows Server 2003 Web Edition
Microsoft IIS 5.1
- Microsoft Windows 2000 Advanced Server SP2
- Microsoft Windows 2000 Advanced Server SP1
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows 2000 Datacenter Server SP2
- Microsoft Windows 2000 Datacenter Server SP1
- Microsoft Windows 2000 Datacenter Server
- Microsoft Windows 2000 Professional SP2
- Microsoft Windows 2000 Professional SP1
- Microsoft Windows 2000 Professional
- Microsoft Windows 2000 Server SP2
- Microsoft Windows 2000 Server SP1
- Microsoft Windows 2000 Server
+ Microsoft Windows XP 64-bit Edition SP1
+ Microsoft Windows XP 64-bit Edition
+ Microsoft Windows XP 64-bit Edition
- Microsoft Windows XP Home SP1
- Microsoft Windows XP Home SP1
- Microsoft Windows XP Home
- Microsoft Windows XP Home
+ Microsoft Windows XP Professional SP1
+ Microsoft Windows XP Professional SP1
+ Microsoft Windows XP Professional
+ Microsoft Windows XP Professional
Microsoft IIS 4.0
+ Cisco Building Broadband Service Manager (BBSM) 5.0
+ Cisco Building Broadband Service Manager (BBSM) 5.0
+ Cisco Call Manager 3.0
+ Cisco Call Manager 3.0
+ Cisco Call Manager 2.0
+ Cisco Call Manager 2.0
+ Cisco Call Manager 1.0
+ Cisco Call Manager 1.0
+ Cisco ICS 7750
+ Cisco ICS 7750
+ Cisco IP/VC 3540 Video Rate Matching Module
+ Cisco IP/VC 3540 Video Rate Matching Module
+ Cisco Unity Server 2.4
+ Cisco Unity Server 2.4
+ Cisco Unity Server 2.3
+ Cisco Unity Server 2.3
+ Cisco Unity Server 2.2
+ Cisco Unity Server 2.2
+ Cisco Unity Server 2.0
+ Cisco Unity Server 2.0
+ Cisco uOne 4.0
+ Cisco uOne 4.0
+ Cisco uOne 3.0
+ Cisco uOne 3.0
+ Cisco uOne 2.0
+ Cisco uOne 2.0
+ Cisco uOne 1.0
+ Cisco uOne 1.0
+ Hancom Hancom Office 2007 0
+ Hancom Hancom Office 2007 0
+ Microsoft BackOffice 4.5
+ Microsoft BackOffice 4.5
+ Microsoft Windows NT 4.0 Option Pack
+ Microsoft Windows NT 4.0 Option Pack

- 不受影响的程序版本

Microsoft IIS 6.0
+ Microsoft Windows Server 2003 Datacenter Edition
+ Microsoft Windows Server 2003 Datacenter Edition
+ Microsoft Windows Server 2003 Datacenter Edition Itanium 0
+ Microsoft Windows Server 2003 Datacenter Edition Itanium 0
+ Microsoft Windows Server 2003 Enterprise Edition
+ Microsoft Windows Server 2003 Enterprise Edition
+ Microsoft Windows Server 2003 Enterprise Edition Itanium 0
+ Microsoft Windows Server 2003 Enterprise Edition Itanium 0
+ Microsoft Windows Server 2003 Standard Edition
+ Microsoft Windows Server 2003 Standard Edition
+ Microsoft Windows Server 2003 Web Edition
+ Microsoft Windows Server 2003 Web Edition
Microsoft IIS 5.1
- Microsoft Windows 2000 Advanced Server SP2
- Microsoft Windows 2000 Advanced Server SP1
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows 2000 Datacenter Server SP2
- Microsoft Windows 2000 Datacenter Server SP1
- Microsoft Windows 2000 Datacenter Server
- Microsoft Windows 2000 Professional SP2
- Microsoft Windows 2000 Professional SP1
- Microsoft Windows 2000 Professional
- Microsoft Windows 2000 Server SP2
- Microsoft Windows 2000 Server SP1
- Microsoft Windows 2000 Server
+ Microsoft Windows XP 64-bit Edition SP1
+ Microsoft Windows XP 64-bit Edition
+ Microsoft Windows XP 64-bit Edition
- Microsoft Windows XP Home SP1
- Microsoft Windows XP Home SP1
- Microsoft Windows XP Home
- Microsoft Windows XP Home
+ Microsoft Windows XP Professional SP1
+ Microsoft Windows XP Professional SP1
+ Microsoft Windows XP Professional
+ Microsoft Windows XP Professional
Microsoft IIS 4.0
+ Cisco Building Broadband Service Manager (BBSM) 5.0
+ Cisco Building Broadband Service Manager (BBSM) 5.0
+ Cisco Call Manager 3.0
+ Cisco Call Manager 3.0
+ Cisco Call Manager 2.0
+ Cisco Call Manager 2.0
+ Cisco Call Manager 1.0
+ Cisco Call Manager 1.0
+ Cisco ICS 7750
+ Cisco ICS 7750
+ Cisco IP/VC 3540 Video Rate Matching Module
+ Cisco IP/VC 3540 Video Rate Matching Module
+ Cisco Unity Server 2.4
+ Cisco Unity Server 2.4
+ Cisco Unity Server 2.3
+ Cisco Unity Server 2.3
+ Cisco Unity Server 2.2
+ Cisco Unity Server 2.2
+ Cisco Unity Server 2.0
+ Cisco Unity Server 2.0
+ Cisco uOne 4.0
+ Cisco uOne 4.0
+ Cisco uOne 3.0
+ Cisco uOne 3.0
+ Cisco uOne 2.0
+ Cisco uOne 2.0
+ Cisco uOne 1.0
+ Cisco uOne 1.0
+ Hancom Hancom Office 2007 0
+ Hancom Hancom Office 2007 0
+ Microsoft BackOffice 4.5
+ Microsoft BackOffice 4.5
+ Microsoft Windows NT 4.0 Option Pack
+ Microsoft Windows NT 4.0 Option Pack

- 漏洞讨论

Microsoft IIS ssinc.dll has been reported prone to a buffer overflow vulnerability.

The issue presents itself, due to insufficient bounds checking performed on requests for server side includes. If a malformed server side include page was uploaded to an IIS server then requested, under some circumstances, a buffer would be overrun allowing arbitrary code execution with user level permissions.

This vulnerability was initially described in BID 7728 and is now being assigned its own BID.

- 漏洞利用

Currently we are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: vuldb@securityfocus.com <mailto:vuldb@securityfocus.com>.

- 解决方案

The following patches are available:

There is a dependency associated with this patch. It requires the patch from Microsoft Security Bulletin MS02-050 to be installed. If this patch is installed and MS02-050 is not present, client side certificates will be rejected. This functionality can be restored by installing the MS02-050 patch.


Microsoft IIS 5.0

- 相关参考

 

 

关于SCAP中文社区

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

版权声明

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