首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Kaspersky Updater GUI 2.2.0.72 Commandline Vulnerability
来源:vfocus.net 作者:STRELiTZIA 发布时间:2010-10-28  

Exploit Title  : [Commandline vulnerability]
Date           : [27 Oct 2010]
Author         : [STRELiTZIA]
Software       : [Kaspersky Updater GUI 2.2.0.72]
Tested on      : [Windows Xp SP3]

============================
=       Description        =
============================

[Microsoft security remarks (MSDN Library)]
The executable name is treated as the first white space-delimited string in lpCmdLine.
If the executable or path name has a space in it, there is a risk that a different executable could be run
because of the way the function parses spaces.

The following example is dangerous because the function will attempt to run "Program.exe", if it exists, instead of "MyApp.exe".
WinExec("C:\\Program Files\\MyApp", ...)

If a malicious user were to create an application called "Program.exe" on a system, any program that incorrectly calls WinExec
using the Program Files directory will run this application instead of the intended application.

To avoid this problem, use CreateProcess rather than WinExec.
However, if you must use WinExec for legacy reasons, make sure the application name is enclosed
in quotation marks as shown in the example below.
WinExec("\"C:\\Program Files\\MyApp.exe\" -L -S", ...)
[Microsoft security remarks (MSDN Library)]


Microsoft has already warned there are flaws in the "BAD" use of CommandLine option
function affecting the paths that have spaces.

Vulnerability that can allow attackers to execute malicious code locally, without user consent.


============================
=       Instructions       =
============================
1- Unzip "gui_for_win_updater_v2.2.0.72.zip" into "C" drive.
2- Rename "gui_for_win_updater_v2.2.0.72" folder to "Test gui_for_win_updater"
2- Copy "Test.exe" into "C" drive.

You can also rename "Test.exe" to:
C:\Test (Without extension)

============================
=          Tests           =
============================
- Launch "KasperskyUpdater.exe".
- Check Kaspersky lab products.
- Click "Apply".
- Click "Start".

============================
=        Test Source       =
============================
program Test;
uses
  Windows;

begin
    MessageBox
      (
      0,
      'Warning, vulnerability detected ;)',
      'Exploit test',
      MB_ICONERROR
      )
end.


 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·DATAC RealWin SCADA 1.06 Buffe
·Safe Returner 1.27.5 Commandli
·MinaliC Webserver v1.0 Denial
·Firefox Interleaving document.
·Bigace_2.7.3 CSRF Change Admin
·Firefox Memory Corruption Proo
·Apache 2.2 (Windows) Local Den
·Linux Kernel VIDIOCSMICROCODE
·NitroSecurity ESM v8.4.0a Remo
·Platinum SDK Library post upnp
·Linux Kernel 2.6.32 Local Root
·XBMC 9.04.1r20672 soap_action_
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved