Vulnerabilities > CVE-2008-4250 - Code Injection vulnerability in Microsoft products

047910
CVSS 10.0 - CRITICAL
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
low complexity
microsoft
CWE-94
critical
nessus
exploit available
metasploit

Summary

The Server service in Microsoft Windows 2000 SP4, XP SP2 and SP3, Server 2003 SP1 and SP2, Vista Gold and SP1, Server 2008, and 7 Pre-Beta allows remote attackers to execute arbitrary code via a crafted RPC request that triggers the overflow during path canonicalization, as exploited in the wild by Gimmiv.A in October 2008, aka "Server Service Vulnerability."

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
  • Manipulating User-Controlled Variables
    This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An attacker can override environment variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the attacker can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.

Exploit-Db

  • descriptionMS Windows Server Service Code Execution PoC (MS08-067). CVE-2008-4250. Dos exploit for windows platform
    fileexploits/windows/dos/6824.txt
    idEDB-ID:6824
    last seen2016-02-01
    modified2008-10-23
    platformwindows
    port
    published2008-10-23
    reporterstephen lawler
    sourcehttps://www.exploit-db.com/download/6824/
    titleMicrosoft Windows Server - Code Execution PoC MS08-067
    typedos
  • descriptionMS Windows Server Service Code Execution Exploit (MS08-067) (Univ). CVE-2008-4250. Remote exploit for windows platform
    fileexploits/windows/remote/6841.txt
    idEDB-ID:6841
    last seen2016-02-01
    modified2008-10-26
    platformwindows
    port135
    published2008-10-26
    reporterEMM
    sourcehttps://www.exploit-db.com/download/6841/
    titleMicrosoft Windows Server - Code Execution Exploit MS08-067 Univ
    typeremote
  • descriptionMS Windows Server Service Code Execution Exploit (MS08-067) (2k/2k3). CVE-2008-4250. Remote exploit for windows platform
    fileexploits/windows/remote/7132.py
    idEDB-ID:7132
    last seen2016-02-01
    modified2008-11-16
    platformwindows
    port445
    published2008-11-16
    reporterDebasis Mohanty
    sourcehttps://www.exploit-db.com/download/7132/
    titleMicrosoft Windows Server 2000/2003 - Code Execution Exploit MS08-067
    typeremote
  • descriptionMicrosoft Server Service Relative Path Stack Corruption. CVE-2008-4250. Remote exploit for windows platform
    idEDB-ID:16362
    last seen2016-02-01
    modified2011-01-21
    published2011-01-21
    reportermetasploit
    sourcehttps://www.exploit-db.com/download/16362/
    titleMicrosoft Server Service Relative Path Stack Corruption
  • idEDB-ID:40279
    last seen2018-11-30
    modified2016-02-26
    published2016-02-26
    reporterExploit-DB
    sourcehttps://www.exploit-db.com/download/40279
    titleMicrosoft Windows - 'NetAPI32.dll' Code Execution (Python) (MS08-067)
  • descriptionMS Windows Server Service Code Execution Exploit (MS08-067). CVE-2008-4250. Remote exploit for windows platform
    fileexploits/windows/remote/7104.c
    idEDB-ID:7104
    last seen2016-02-01
    modified2008-11-12
    platformwindows
    port135
    published2008-11-12
    reporterPolymorphours
    sourcehttps://www.exploit-db.com/download/7104/
    titleMicrosoft Windows Server - Code Execution Exploit MS08-067
    typeremote

Metasploit

descriptionThis module exploits a parsing flaw in the path canonicalization code of NetAPI32.dll through the Server Service. This module is capable of bypassing NX on some operating systems and service packs. The correct target must be used to prevent the Server Service (along with a dozen others in the same process) from crashing. Windows XP targets seem to handle multiple successful exploitation events, but 2003 targets will often crash or hang on subsequent attempts. This is just the first version of this module, full support for NX bypass on 2003, along with other platforms, is still in development.
idMSF:EXPLOIT/WINDOWS/SMB/MS08_067_NETAPI
last seen2020-01-18
modified2017-07-24
published2012-06-19
references
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/smb/ms08_067_netapi.rb
titleMS08-067 Microsoft Server Service Relative Path Stack Corruption

Nessus

  • NASL familyWindows
    NASL idWIN_SERVER_2008_NTLM_PCI.NASL
    descriptionAccording to the version number obtained by NTLM the remote host has Windows Server 2008 installed. The host may be vulnerable to a number of vulnerabilities including remote unauthenticated code execution.
    last seen2020-06-01
    modified2020-06-02
    plugin id108811
    published2018-04-03
    reporterThis script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/108811
    titleWindows Server 2008 Critical RCE Vulnerabilities (uncredentialed) (PCI/DSS)
  • NASL familyWindows : Microsoft Bulletins
    NASL idSMB_NT_MS08-067.NASL
    descriptionThe remote Windows host is affected by a remote code execution vulnerability in the
    last seen2020-06-01
    modified2020-06-02
    plugin id34476
    published2008-10-23
    reporterThis script is Copyright (C) 2008-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/34476
    titleMS08-067: Microsoft Windows Server Service Crafted RPC Request Handling Unspecified Remote Code Execution (958644) (ECLIPSEDWING)
  • NASL familyWindows
    NASL idSMB_KB958644.NASL
    descriptionThe remote Windows host is affected by a remote code execution vulnerability in the
    last seen2020-06-01
    modified2020-06-02
    plugin id34477
    published2008-10-23
    reporterThis script is Copyright (C) 2008-2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/34477
    titleMS08-067: Microsoft Windows Server Service Crafted RPC Request Handling Remote Code Execution (958644) (ECLIPSEDWING) (uncredentialed check)

Oval

accepted2011-11-07T04:01:04.821-05:00
classvulnerability
contributors
  • nameSudhir Gandhe
    organizationSecure Elements, Inc.
  • nameSudhir Gandhe
    organizationSecure Elements, Inc.
  • namePrashanth A.
    organizationSecPod Technologies
definition_extensions
  • commentMicrosoft Windows 2000 SP4 or later is installed
    ovaloval:org.mitre.oval:def:229
  • commentMicrosoft Windows XP (x86) SP2 is installed
    ovaloval:org.mitre.oval:def:754
  • commentMicrosoft Windows XP (x86) SP3 is installed
    ovaloval:org.mitre.oval:def:5631
  • commentMicrosoft Windows Server 2003 SP1 (x86) is installed
    ovaloval:org.mitre.oval:def:565
  • commentMicrosoft Windows Server 2003 SP1 (x64) is installed
    ovaloval:org.mitre.oval:def:4386
  • commentMicrosoft Windows XP Professional x64 Edition SP1 is installed
    ovaloval:org.mitre.oval:def:720
  • commentMicrosoft Windows Server 2003 SP1 for Itanium is installed
    ovaloval:org.mitre.oval:def:1205
  • commentMicrosoft Windows Server 2003 SP2 (x86) is installed
    ovaloval:org.mitre.oval:def:1935
  • commentMicrosoft Windows Server 2003 SP2 (x64) is installed
    ovaloval:org.mitre.oval:def:2161
  • commentMicrosoft Windows XP x64 Edition SP2 is installed
    ovaloval:org.mitre.oval:def:4193
  • commentMicrosoft Windows Server 2003 (ia64) SP2 is installed
    ovaloval:org.mitre.oval:def:1442
  • commentMicrosoft Windows Vista x64 Edition is installed
    ovaloval:org.mitre.oval:def:2041
  • commentMicrosoft Windows Vista (32-bit) is installed
    ovaloval:org.mitre.oval:def:1282
  • commentMicrosoft Windows Vista (32-bit) Service Pack 1 is installed
    ovaloval:org.mitre.oval:def:4873
  • commentMicrosoft Windows Server 2008 (32-bit) is installed
    ovaloval:org.mitre.oval:def:4870
  • commentMicrosoft Windows Vista x64 Edition Service Pack 1 is installed
    ovaloval:org.mitre.oval:def:5254
  • commentMicrosoft Windows Server 2008 (64-bit) is installed
    ovaloval:org.mitre.oval:def:5356
  • commentMicrosoft Windows Server 2008 (ia-64) is installed
    ovaloval:org.mitre.oval:def:5667
descriptionThe Server service in Microsoft Windows 2000 SP4, XP SP2 and SP3, Server 2003 SP1 and SP2, Vista Gold and SP1, Server 2008, and 7 Pre-Beta allows remote attackers to execute arbitrary code via a crafted RPC request that triggers the overflow during path canonicalization, as exploited in the wild by Gimmiv.A in October 2008, aka "Server Service Vulnerability."
familywindows
idoval:org.mitre.oval:def:6093
statusaccepted
submitted2008-10-23T15:59:00
titleServer Service Vulnerability
version73

Saint

bid31874
descriptionWindows Server Service buffer overflow MS08-067
idwin_patch_servserv08067
osvdb49243
titlewindows_server_service_ms08067
typeremote

Seebug

  • bulletinFamilyexploit
    descriptionBUGTRAQ ID: 31874 CVE(CAN) ID: CVE-2008-4250 Microsoft Windows是微软发布的非常流行的操作系统。 Windows的Server服务在处理特制RPC请求时存在缓冲区溢出漏洞,远程攻击者可以通过发送恶意的RPC请求触发这个溢出,导致完全入侵用户系统,以SYSTEM权限执行任意指令。 对于Windows 2000、XP和Server 2003,无需认证便可以利用这个漏洞;对于Windows Vista和Server 2008,可能需要进行认证。 目前这个漏洞正在被名为TrojanSpy:Win32/Gimmiv.A和TrojanSpy:Win32/Gimmiv.A.dll的木马积极的利用。 Microsoft Windows XP SP3 Microsoft Windows XP SP2 Microsoft Windows Vista SP1 Microsoft Windows Vista Microsoft Windows Server 2008 Microsoft Windows Server 2003 SP2 Microsoft Windows Server 2003 SP1 Microsoft Windows 2000SP4 临时解决方法: * 禁用Server和Computer Browser服务。 * 在Windows Vista和Windows Server 2008上,阻断受影响的RPC标识符。在命令提示符中运行以下命令: netsh 然后在netsh环境中输入以下命令: netsh&gt;rpc netsh rpc&gt;filter netsh rpc filter&gt;add rule layer=um actiontype=block netsh rpc filter&gt;add condition field=if_uuid matchtype=equal data=4b324fc8-1670-01d3-1278-5a47bf6ee188 netsh rpc filter&gt;add filter netsh rpc filter&gt;quit * 在防火墙阻断TCP 139和445端口。 * 使用个人防火墙,如Internet连接防火墙。 厂商补丁: Microsoft --------- Microsoft已经为此发布了一个安全公告(MS08-067)以及相应补丁: MS08-067:Vulnerability in Server Service Could Allow Remote Code Execution (958644) 链接:<a href=http://www.microsoft.com/technet/security/bulletin/ms08-067.mspx?pf=true target=_blank>http://www.microsoft.com/technet/security/bulletin/ms08-067.mspx?pf=true</a>
    idSSV:4288
    last seen2017-11-19
    modified2008-10-24
    published2008-10-24
    reporterRoot
    titleWindows Server服务RPC请求缓冲区溢出漏洞(MS08-067)
  • bulletinFamilyexploit
    descriptionNo description provided by source.
    idSSV:88222
    last seen2017-11-19
    modified2012-10-15
    published2012-10-15
    reporterRoot
    sourcehttps://www.seebug.org/vuldb/ssvid-88222
    titleWindows ms08-067 缓冲区溢出漏洞