Microsoft SQL Server漏洞

Microsoft SQL Server漏洞

漏洞ID 1106880 漏洞类型 未知
发布时间 2002-07-25 更新时间 2002-09-24
图片[1]-Microsoft SQL Server漏洞-安全小百科CVE编号 CVE-2002-0982
图片[2]-Microsoft SQL Server漏洞-安全小百科CNNVD-ID CNNVD-200209-045
漏洞平台 Windows CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/21651
https://www.securityfocus.com/bid/82899
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200209-045
|漏洞详情
MicrosoftSQLServer2000SP2版本在配置为分配器存在漏洞。攻击者借助sp_Mscopyscript预存程序的@scriptfile参数执行任意代码。
|漏洞EXP
source: http://www.securityfocus.com/bid/5309/info

The Microsoft SQL Server 2000 sp_MScopyscript stored procedure does not sufficiently validate input before passing it to the xp_cmdshell extended stored procedure. An attacker with the ability to execute a query or pass malicious input to a query may be able to execute operating system commands via xp_cmdshell with the privileges of the SQL Server. 

The sp_MScopyscript stored procedure may be executed by the 'public' role by default, so it is possible that a database user with privileges may potentially exploit this issue.

The Microsoft SQL Server must be configured to function as a distributor for this issue to be exploited. Certain other conditions must be satisfied for exploitation to succeed, such as the SQL Server running in the context of a domain user.

By supplying a malformed @scriptfile parameter an attacker can run arbitrary
commands:

use master
declare @cmd nvarchar(4000)
exec sp_MScopyscriptfile N'c:autoexec.bat" c:cp.txt&echo hello >
c:ccc.bbb & echo "hello',@cmd OUTPUT
print @cmd

The above query will copy the autoexec.bat file to cp.txt but also echo hello to a file called ccc.bbb.
|参考资料

来源:BUGTRAQ
名称:20020822ArbitraryCommandExecutiononDistributorSQLServer2000machines(#NISR22002002A)
链接:http://marc.theaimsgroup.com/?l=bugtraq&m;=103004505027360&w;=2

相关推荐: Livingston RADIUS Accounting Hostname Resolution Buffer Overflow Vulnerability

Livingston RADIUS Accounting Hostname Resolution Buffer Overflow Vulnerability 漏洞ID 1104959 漏洞类型 Boundary Condition Error 发布时间 199…

© 版权声明
THE END
喜欢就支持一下吧
点赞0
分享