Vulnerabilities > CVE-2008-4250 - Code Injection vulnerability in Microsoft products
Attack vector
NETWORK Attack complexity
LOW Privileges required
NONE Confidentiality impact
COMPLETE Integrity impact
COMPLETE Availability impact
COMPLETE 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."
Vulnerable Configurations
Part | Description | Count |
---|---|---|
OS | 18 |
Common Weakness Enumeration (CWE)
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
description MS Windows Server Service Code Execution PoC (MS08-067). CVE-2008-4250. Dos exploit for windows platform file exploits/windows/dos/6824.txt id EDB-ID:6824 last seen 2016-02-01 modified 2008-10-23 platform windows port published 2008-10-23 reporter stephen lawler source https://www.exploit-db.com/download/6824/ title Microsoft Windows Server - Code Execution PoC MS08-067 type dos description MS Windows Server Service Code Execution Exploit (MS08-067) (Univ). CVE-2008-4250. Remote exploit for windows platform file exploits/windows/remote/6841.txt id EDB-ID:6841 last seen 2016-02-01 modified 2008-10-26 platform windows port 135 published 2008-10-26 reporter EMM source https://www.exploit-db.com/download/6841/ title Microsoft Windows Server - Code Execution Exploit MS08-067 Univ type remote description MS Windows Server Service Code Execution Exploit (MS08-067) (2k/2k3). CVE-2008-4250. Remote exploit for windows platform file exploits/windows/remote/7132.py id EDB-ID:7132 last seen 2016-02-01 modified 2008-11-16 platform windows port 445 published 2008-11-16 reporter Debasis Mohanty source https://www.exploit-db.com/download/7132/ title Microsoft Windows Server 2000/2003 - Code Execution Exploit MS08-067 type remote description Microsoft Server Service Relative Path Stack Corruption. CVE-2008-4250. Remote exploit for windows platform id EDB-ID:16362 last seen 2016-02-01 modified 2011-01-21 published 2011-01-21 reporter metasploit source https://www.exploit-db.com/download/16362/ title Microsoft Server Service Relative Path Stack Corruption id EDB-ID:40279 last seen 2018-11-30 modified 2016-02-26 published 2016-02-26 reporter Exploit-DB source https://www.exploit-db.com/download/40279 title Microsoft Windows - 'NetAPI32.dll' Code Execution (Python) (MS08-067) description MS Windows Server Service Code Execution Exploit (MS08-067). CVE-2008-4250. Remote exploit for windows platform file exploits/windows/remote/7104.c id EDB-ID:7104 last seen 2016-02-01 modified 2008-11-12 platform windows port 135 published 2008-11-12 reporter Polymorphours source https://www.exploit-db.com/download/7104/ title Microsoft Windows Server - Code Execution Exploit MS08-067 type remote
Metasploit
description | This 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. |
id | MSF:EXPLOIT/WINDOWS/SMB/MS08_067_NETAPI |
last seen | 2020-01-18 |
modified | 2017-07-24 |
published | 2012-06-19 |
references | |
reporter | Rapid7 |
source | https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/smb/ms08_067_netapi.rb |
title | MS08-067 Microsoft Server Service Relative Path Stack Corruption |
Nessus
NASL family Windows NASL id WIN_SERVER_2008_NTLM_PCI.NASL description According 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 seen 2020-06-01 modified 2020-06-02 plugin id 108811 published 2018-04-03 reporter This script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/108811 title Windows Server 2008 Critical RCE Vulnerabilities (uncredentialed) (PCI/DSS) NASL family Windows : Microsoft Bulletins NASL id SMB_NT_MS08-067.NASL description The remote Windows host is affected by a remote code execution vulnerability in the last seen 2020-06-01 modified 2020-06-02 plugin id 34476 published 2008-10-23 reporter This script is Copyright (C) 2008-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/34476 title MS08-067: Microsoft Windows Server Service Crafted RPC Request Handling Unspecified Remote Code Execution (958644) (ECLIPSEDWING) NASL family Windows NASL id SMB_KB958644.NASL description The remote Windows host is affected by a remote code execution vulnerability in the last seen 2020-06-01 modified 2020-06-02 plugin id 34477 published 2008-10-23 reporter This script is Copyright (C) 2008-2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/34477 title MS08-067: Microsoft Windows Server Service Crafted RPC Request Handling Remote Code Execution (958644) (ECLIPSEDWING) (uncredentialed check)
Oval
accepted | 2011-11-07T04:01:04.821-05:00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
class | vulnerability | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
contributors |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
definition_extensions |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
description | 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." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
family | windows | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
id | oval:org.mitre.oval:def:6093 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
status | accepted | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
submitted | 2008-10-23T15:59:00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
title | Server Service Vulnerability | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
version | 73 |
Saint
bid | 31874 |
description | Windows Server Service buffer overflow MS08-067 |
id | win_patch_servserv08067 |
osvdb | 49243 |
title | windows_server_service_ms08067 |
type | remote |
Seebug
bulletinFamily exploit description BUGTRAQ 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>rpc netsh rpc>filter netsh rpc filter>add rule layer=um actiontype=block netsh rpc filter>add condition field=if_uuid matchtype=equal data=4b324fc8-1670-01d3-1278-5a47bf6ee188 netsh rpc filter>add filter netsh rpc filter>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> id SSV:4288 last seen 2017-11-19 modified 2008-10-24 published 2008-10-24 reporter Root title Windows Server服务RPC请求缓冲区溢出漏洞(MS08-067) bulletinFamily exploit description No description provided by source. id SSV:88222 last seen 2017-11-19 modified 2012-10-15 published 2012-10-15 reporter Root source https://www.seebug.org/vuldb/ssvid-88222 title Windows ms08-067 缓冲区溢出漏洞
References
- http://www.kb.cert.org/vuls/id/827267
- http://secunia.com/advisories/32326
- http://blogs.securiteam.com/index.php/archives/1150
- http://www.securitytracker.com/id?1021091
- http://www.securityfocus.com/bid/31874
- http://www.us-cert.gov/cas/techalerts/TA08-297A.html
- http://www.us-cert.gov/cas/techalerts/TA09-088A.html
- http://www.vupen.com/english/advisories/2008/2902
- http://marc.info/?l=bugtraq&m=122703006921213&w=2
- https://exchange.xforce.ibmcloud.com/vulnerabilities/46040
- https://www.exploit-db.com/exploits/7132
- https://www.exploit-db.com/exploits/7104
- https://www.exploit-db.com/exploits/6841
- https://www.exploit-db.com/exploits/6824
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A6093
- http://www.securityfocus.com/archive/1/497816/100/0/threaded
- http://www.securityfocus.com/archive/1/497808/100/0/threaded
- https://docs.microsoft.com/en-us/security-updates/securitybulletins/2008/ms08-067