Vulnerabilities > CVE-2010-0232 - Permissions, Privileges, and Access Controls vulnerability in Microsoft products
Summary
The kernel in Microsoft Windows NT 3.1 through Windows 7, including Windows 2000 SP4, Windows XP SP2 and SP3, Windows Server 2003 SP2, Windows Vista Gold, SP1, and SP2, and Windows Server 2008 Gold and SP2, when access to 16-bit applications is enabled on a 32-bit x86 platform, does not properly validate certain BIOS calls, which allows local users to gain privileges by crafting a VDM_TIB data structure in the Thread Environment Block (TEB), and then calling the NtVdmControl function to start the Windows Virtual DOS Machine (aka NTVDM) subsystem, leading to improperly handled exceptions involving the #GP trap handler (nt!KiTrap0D), aka "Windows Kernel Exception Handler Vulnerability."
Vulnerable Configurations
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Accessing, Modifying or Executing Executable Files An attack of this type exploits a system's configuration that allows an attacker to either directly access an executable file, for example through shell access; or in a possible worst case allows an attacker to upload a file and then execute it. Web servers, ftp servers, and message oriented middleware systems which have many integration points are particularly vulnerable, because both the programmers and the administrators must be in synch regarding the interfaces and the correct privileges for each interface.
- 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.
- Blue Boxing This type of attack against older telephone switches and trunks has been around for decades. A tone is sent by an adversary to impersonate a supervisor signal which has the effect of rerouting or usurping command of the line. While the US infrastructure proper may not contain widespread vulnerabilities to this type of attack, many companies are connected globally through call centers and business process outsourcing. These international systems may be operated in countries which have not upgraded Telco infrastructure and so are vulnerable to Blue boxing. Blue boxing is a result of failure on the part of the system to enforce strong authorization for administrative functions. While the infrastructure is different than standard current applications like web applications, there are historical lessons to be learned to upgrade the access control for administrative functions.
- Restful Privilege Elevation Rest uses standard HTTP (Get, Put, Delete) style permissions methods, but these are not necessarily correlated generally with back end programs. Strict interpretation of HTTP get methods means that these HTTP Get services should not be used to delete information on the server, but there is no access control mechanism to back up this logic. This means that unless the services are properly ACL'd and the application's service implementation are following these guidelines then an HTTP request can easily execute a delete or update on the server side. The attacker identifies a HTTP Get URL such as http://victimsite/updateOrder, which calls out to a program to update orders on a database or other resource. The URL is not idempotent so the request can be submitted multiple times by the attacker, additionally, the attacker may be able to exploit the URL published as a Get method that actually performs updates (instead of merely retrieving data). This may result in malicious or inadvertent altering of data on the server.
- Target Programs with Elevated Privileges This attack targets programs running with elevated privileges. The attacker would try to leverage a bug in the running program and get arbitrary code to execute with elevated privileges. For instance an attacker would look for programs that write to the system directories or registry keys (such as HKLM, which stores a number of critical Windows environment variables). These programs are typically running with elevated privileges and have usually not been designed with security in mind. Such programs are excellent exploit targets because they yield lots of power when they break. The malicious user try to execute its code at the same level as a privileged system call.
Exploit-Db
description | Windows NT User Mode to Ring 0 Escalation Vulnerability. CVE-2010-0232. Local exploit for windows platform |
id | EDB-ID:11199 |
last seen | 2016-02-01 |
modified | 2010-01-19 |
published | 2010-01-19 |
reporter | Tavis Ormandy |
source | https://www.exploit-db.com/download/11199/ |
title | Windows NT - User Mode to Ring - Escalation Vulnerability |
Metasploit
description | This module will create a new session with SYSTEM privileges via the KiTrap0D exploit by Tavis Ormandy. If the session in use is already elevated then the exploit will not run. The module relies on kitrap0d.x86.dll, and is not supported on x64 editions of Windows. |
id | MSF:EXPLOIT/WINDOWS/LOCAL/MS10_015_KITRAP0D |
last seen | 2020-02-26 |
modified | 2018-09-15 |
published | 2013-11-11 |
references | |
reporter | Rapid7 |
source | https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/local/ms10_015_kitrap0d.rb |
title | Windows SYSTEM Escalation via KiTrap0D |
Msbulletin
bulletin_id | MS10-015 |
bulletin_url | |
date | 2010-02-09T00:00:00 |
impact | Elevation of Privilege |
knowledgebase_id | 977165 |
knowledgebase_url | |
severity | Important |
title | Vulnerabilities in Windows Kernel Could Allow Elevation of Privilege |
Nessus
NASL family | Windows : Microsoft Bulletins |
NASL id | SMB_NT_MS10-015.NASL |
description | The remote Windows host is running a version of the Windows kernel that is affected by two vulnerabilities : - An elevation of privilege vulnerability exists in the kernel due to the way it handles certain exceptions. An attacker who successfully exploited this vulnerability could run arbitrary code in kernel mode. An attacker could then install programs, view / change / delete data, or create new accounts with full user rights. (CVE-2010-0232) - An elevation of privilege vulnerability exists in the Windows kernel due to a double free condition. An attacker who successfully exploited this vulnerability could run arbitrary code in kernel mode. An attacker could then install programs, view / change / delete data, or create new accounts with full user rights. (CVE-2010-0233) |
last seen | 2020-06-01 |
modified | 2020-06-02 |
plugin id | 44425 |
published | 2010-02-09 |
reporter | This script is Copyright (C) 2010-2018 Tenable Network Security, Inc. |
source | https://www.tenable.com/plugins/nessus/44425 |
title | MS10-015: Vulnerabilities in Windows Kernel Could Allow Elevation of Privilege (977165) |
code |
|
Oval
accepted | 2010-03-22T04:00:10.417-04:00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
class | vulnerability | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
contributors |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
definition_extensions |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
description | 2003 SP2, Windows Vista Gold, SP1, and SP2, and Windows Server 2008 Gold and SP2, when access to 16-bit applications is enabled on a 32-bit x86 platform, does not properly validate certain BIOS calls, which allows local users to gain privileges by crafting a VDM_TIB data structure in the Thread Environment Block (TEB), and then calling the NtVdmControl function to start the Windows Virtual DOS Machine (aka NTVDM) subsystem, leading to improperly handled exceptions involving the #GP trap handler (nt!KiTrap0D), aka "Windows Kernel Exception Handler Vulnerability." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
family | windows | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
id | oval:org.mitre.oval:def:8344 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
status | accepted | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
submitted | 2010-02-08T13:00:00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
title | Windows Kernel Exception Handler Vulnerability | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
version | 70 |
Packetstorm
data source https://packetstormsecurity.com/files/download/111404/vmwarehb-escalate.txt id PACKETSTORM:111404 last seen 2016-12-05 published 2012-03-30 reporter Derek Soeder source https://packetstormsecurity.com/files/111404/VMware-High-Bandwidth-Backdoor-ROM-Overwrite-Privilege-Elevation.html title VMware High-Bandwidth Backdoor ROM Overwrite Privilege Elevation data source https://packetstormsecurity.com/files/download/124025/ms10_015_kitrap0d.rb.txt id PACKETSTORM:124025 last seen 2016-12-05 published 2013-11-14 reporter H D Moore source https://packetstormsecurity.com/files/124025/Windows-SYSTEM-Escalation-Via-KiTrap0D.html title Windows SYSTEM Escalation Via KiTrap0D data source https://packetstormsecurity.com/files/download/85418/mswinnt-pwn.txt id PACKETSTORM:85418 last seen 2016-12-05 published 2010-01-20 reporter Tavis Ormandy source https://packetstormsecurity.com/files/85418/Microsoft-Windows-NT-User-Mode-To-Ring-0-Escalation.html title Microsoft Windows NT User Mode To Ring 0 Escalation
Seebug
bulletinFamily exploit description No description provided by source. id SSV:67537 last seen 2017-11-19 modified 2014-07-01 published 2014-07-01 reporter Root source https://www.seebug.org/vuldb/ssvid-67537 title Windows NT - User Mode to Ring 0 Escalation Vulnerability bulletinFamily exploit description BUGTRAQ ID: 38044 CVE(CAN) ID: CVE-2010-0233 Microsoft Windows是微软发布的非常流行的操作系统。 当释放内存时,Windows内核没有正确地重置指针,导致内核中出现双重释放的情况。成功利用此漏洞的攻击者可以运行任意内核态代码。攻击者可随后安装程序;查看、更改或删除数据;或者创建拥有完全用户权限的新帐户。 Microsoft Windows XP SP3 Microsoft Windows XP SP2 Microsoft Windows Vista SP2 Microsoft Windows Vista SP1 Microsoft Windows Vista Microsoft Windows Server 2008 SP2 Microsoft Windows Server 2008 R2 Microsoft Windows Server 2008 Microsoft Windows Server 2003 SP2 Microsoft Windows Server 2003 Microsoft Windows 2000SP4 厂商补丁: Microsoft --------- Microsoft已经为此发布了一个安全公告(MS10-015)以及相应补丁: MS10-015:Vulnerabilities in Windows Kernel Could Allow Elevation of Privilege (977165) 链接:http://www.microsoft.com/technet/security/bulletin/MS10-015.mspx?pf=true id SSV:19185 last seen 2017-11-19 modified 2010-02-25 published 2010-02-25 reporter Root source https://www.seebug.org/vuldb/ssvid-19185 title Microsoft Windows内核双重释放本地权限提升漏洞(MS10-015) bulletinFamily exploit description BUGTRAQ ID: 37864 CVE ID: CVE-2010-0232 Microsoft Windows是微软发布的非常流行的操作系统。 Windows的内核#GP陷井处理例程对执行的环境做了一些不正确的假设,本地普通用户权限的攻击者可以通过伪造执行环境中的数据使操作系统在ring0层执行指定的任意指令,从而取得对系统的完全控制。此漏洞影响几乎所有的x86 32位的Windows系统。 为了在老式的16位应用中支持BIOS服务例程,Windows NT内核支持Virtual-8086模式监控代码中的BIOS调用,分两个阶段实现。当#GP陷阱处理器(nt!KiTrap0D)检测到出错的 cs:eip匹配了特定的magic value,内核就会过渡到第二阶段。一旦确认了真实性,过渡到第二阶段就会涉及到从出错的陷阱帧恢复之前所保存的执行上下文和调用栈。 由于这个验证依赖于以下错误的假设: - 创建VDM上下文需要SeTcbPrivilege - ring3代码无法安装任意代码段选择器 - ring3代码无法伪造陷阱帧 本地攻击者可以创建伪造的VDM上下文,然后通过触发异常导致内核栈返回到受控的地址,导致执行任意内核态代码。 Microsoft Windows XP SP3 Microsoft Windows XP SP2 Microsoft Windows Vista SP2 Microsoft Windows Vista SP1 Microsoft Windows Vista Microsoft Windows Server 2008 SP2 Microsoft Windows Server 2008 Microsoft Windows 7 Microsoft Windows 2000SP4 临时解决方法: 如果您不能立刻安装补丁或者升级,NSFOCUS建议您采取以下措施以降低威胁: * 禁用NTVDM子系统。 1. 运行 gpedit.msc 程序 2. 展开“管理模板”,选择“Windows组件” 3. 点击“应用程序兼容性” 4. 在右边的条目显示框内双击“防止访问16位应用程序” 5. 设置标签页中选择“已启用” 6. 点击“确定” 厂商补丁: Microsoft --------- 目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本: http://www.microsoft.com/technet/security/advisory/979682.mspx id SSV:18977 last seen 2017-11-19 modified 2010-01-22 published 2010-01-22 reporter Root source https://www.seebug.org/vuldb/ssvid-18977 title Microsoft Windows #GP陷阱处理器本地权限提升漏洞
References
- http://blogs.technet.com/msrc/archive/2010/01/20/security-advisory-979682-released.aspx
- http://lists.immunitysec.com/pipermail/dailydave/2010-January/006000.html
- http://www.securityfocus.com/bid/37864
- http://seclists.org/fulldisclosure/2010/Jan/341
- http://lock.cmpxchg8b.com/c0af0967d904cef2ad4db766a00bc6af/KiTrap0D.zip
- http://www.vupen.com/english/advisories/2010/0179
- http://secunia.com/advisories/38265
- http://www.microsoft.com/technet/security/advisory/979682.mspx
- http://securitytracker.com/id?1023471
- http://www.us-cert.gov/cas/techalerts/TA10-040A.html
- https://exchange.xforce.ibmcloud.com/vulnerabilities/55742
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8344
- http://www.securityfocus.com/archive/1/509106/100/0/threaded
- https://docs.microsoft.com/en-us/security-updates/securitybulletins/2010/ms10-015