Vulnerabilities > CVE-2014-4113 - Permissions, Privileges, and Access Controls vulnerability in Microsoft products
Attack vector
LOCAL Attack complexity
LOW Privileges required
NONE Confidentiality impact
COMPLETE Integrity impact
COMPLETE Availability impact
COMPLETE Summary
win32k.sys in the kernel-mode drivers in Microsoft Windows Server 2003 SP2, Windows Vista SP2, Windows Server 2008 SP2 and R2 SP1, Windows 7 SP1, Windows 8, Windows 8.1, Windows Server 2012 Gold and R2, and Windows RT Gold and 8.1 allows local users to gain privileges via a crafted application, as exploited in the wild in October 2014, aka "Win32k.sys Elevation of Privilege 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 TrackPopupMenu Win32k NULL Pointer Dereference. CVE-2014-4113. Local exploit for windows platform file exploits/windows/local/35101.rb id EDB-ID:35101 last seen 2016-02-04 modified 2014-10-28 platform windows port published 2014-10-28 reporter metasploit source https://www.exploit-db.com/download/35101/ title Windows TrackPopupMenu Win32k NULL Pointer Dereference type local description Windows 8.0 - 8.1 x64 TrackPopupMenu Privilege Escalation (MS14-058). CVE-2014-4113. Local exploit for win64 platform file exploits/windows_x86-64/local/37064.py id EDB-ID:37064 last seen 2016-02-04 modified 2015-05-19 platform windows_x86-64 port published 2015-05-19 reporter ryujin source https://www.exploit-db.com/download/37064/ title Windows 8.0 - 8.1 x64 - TrackPopupMenu Privilege Escalation MS14-058 type local description Abusing Token Privileges For LPE. Papers exploit for Windows platform id EDB-ID:42556 last seen 2017-08-28 modified 2017-08-28 published 2017-08-28 reporter Exploit-DB source https://www.exploit-db.com/download/42556/ title Abusing Token Privileges For LPE description Windows Kernel Win32k.sys Privilege Escalation Exploit (MS14-058). CVE-2014-4113. Local exploit for windows platform file exploits/windows/local/39666.txt id EDB-ID:39666 last seen 2016-04-06 modified 2016-04-05 platform windows port published 2016-04-05 reporter MWR InfoSecurity source https://www.exploit-db.com/download/39666/ title Windows Kernel Win32k.sys Privilege Escalation Exploit MS14-058 type local description Microsoft Windows - Net-NTLMv2 Reflection DCOM/RPC (Metasploit). CVE-2016-3225. Local exploit for Windows platform. Tags: Metasploit Framework (MSF), Local file exploits/windows/local/45562.rb id EDB-ID:45562 last seen 2018-10-08 modified 2018-10-08 platform windows port published 2018-10-08 reporter Exploit-DB source https://www.exploit-db.com/download/45562/ title Microsoft Windows - Net-NTLMv2 Reflection DCOM/RPC (Metasploit) type local id EDB-ID:46945 last seen 2019-05-30 modified 2014-11-24 published 2014-11-24 reporter Exploit-DB source https://www.exploit-db.com/download/46945 title Microsoft Windows 8.1/ Server 2012 - 'Win32k.sys' Local Privilege Escalation (MS14-058)
Metasploit
description Module utilizes the Net-NTLMv2 reflection between DCOM/RPC to achieve a SYSTEM handle for elevation of privilege. Currently the module does not spawn as SYSTEM, however once achieving a shell, one can easily use incognito to impersonate the token. id MSF:EXPLOIT/WINDOWS/LOCAL/MS16_075_REFLECTION last seen 2020-06-09 modified 2018-10-04 published 2018-08-03 references - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-3225
- http://blog.trendmicro.com/trendlabs-security-intelligence/an-analysis-of-a-windows-kernel-mode-vulnerability-cve-2014-4113/
- https://foxglovesecurity.com/2016/09/26/rotten-potato-privilege-escalation-from-service-accounts-to-system/
- https://github.com/breenmachine/RottenPotatoNG
reporter Rapid7 source https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/local/ms16_075_reflection.rb title Windows Net-NTLMv2 Reflection DCOM/RPC description This module exploits a NULL Pointer Dereference in win32k.sys, the vulnerability can be triggered through the use of TrackPopupMenu. Under special conditions, the NULL pointer dereference can be abused on xxxSendMessageTimeout to achieve arbitrary code execution. This module has been tested successfully on Windows XP SP3, Windows 2003 SP2, Windows 7 SP1 and Windows 2008 32bits. Also on Windows 7 SP1 and Windows 2008 R2 SP1 64 bits. id MSF:EXPLOIT/WINDOWS/LOCAL/MS14_058_TRACK_POPUP_MENU last seen 2020-06-10 modified 2018-10-28 published 2014-10-23 references reporter Rapid7 source https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/local/ms14_058_track_popup_menu.rb title Windows TrackPopupMenu Win32k NULL Pointer Dereference
Msbulletin
bulletin_id | MS14-058 |
bulletin_url | |
date | 2014-10-14T00:00:00 |
impact | Remote Code Execution |
knowledgebase_id | 3000061 |
knowledgebase_url | |
severity | Critical |
title | Vulnerabilities in Kernel-Mode Driver Could Allow Remote Code Execution |
Nessus
NASL family | Windows : Microsoft Bulletins |
NASL id | SMB_NT_MS14-058.NASL |
description | The remote Windows host is affected by multiple vulnerabilities : - A privilege escalation vulnerability allows an attacker to run arbitrary code in kernel mode due to the kernel-mode driver improperly handling objects in memory. (CVE-2014-4113) - A remote code execution vulnerability allows a remote attacker to run arbitrary code in kernel mode due to the kernel-mode driver improperly handling TrueType fonts. An attacker can exploit this vulnerability by convincing a user to open a file or visit a website containing a specially crafted TrueType font file. (CVE-2014-4148) |
last seen | 2020-06-01 |
modified | 2020-06-02 |
plugin id | 78433 |
published | 2014-10-15 |
reporter | This script is Copyright (C) 2014-2018 Tenable Network Security, Inc. |
source | https://www.tenable.com/plugins/nessus/78433 |
title | MS14-058: Vulnerabilities in Kernel-Mode Driver Could Allow Remote Code Execution (3000061) |
code |
|
Packetstorm
data source https://packetstormsecurity.com/files/download/131964/trackpopupmenu-escalate.txt id PACKETSTORM:131964 last seen 2016-12-05 published 2015-05-21 reporter Matteo Memelli source https://packetstormsecurity.com/files/131964/Windows-8.0-8.1-x64-TrackPopupMenu-Privilege-Escalation.html title Windows 8.0 / 8.1 x64 TrackPopupMenu Privilege Escalation data source https://packetstormsecurity.com/files/download/149689/ms16_075_reflection.rb.txt id PACKETSTORM:149689 last seen 2018-10-06 published 2018-10-05 reporter Mumbai source https://packetstormsecurity.com/files/149689/Windows-Net-NTLMv2-Reflection-DCOM-RPC.html title Windows Net-NTLMv2 Reflection DCOM/RPC data source https://packetstormsecurity.com/files/download/128861/ms14_058_track_popup_menu.rb.txt id PACKETSTORM:128861 last seen 2016-12-05 published 2014-10-28 reporter Spencer McIntyre source https://packetstormsecurity.com/files/128861/Windows-TrackPopupMenu-Win32k-NULL-Pointer-Dereference.html title Windows TrackPopupMenu Win32k NULL Pointer Dereference data source https://packetstormsecurity.com/files/download/151182/ms16_075_reflection_juicy.rb.txt id PACKETSTORM:151182 last seen 2019-01-16 published 2019-01-16 reporter breenmachine source https://packetstormsecurity.com/files/151182/Microsoft-Windows-Net-NTLMv2-Reflection-DCOM-RPC-Privilege-Escalation.html title Microsoft Windows Net-NTLMv2 Reflection DCOM/RPC Privilege Escalation
Seebug
bulletinFamily exploit description No description provided by source. id SSV:87348 last seen 2017-11-19 modified 2014-11-13 published 2014-11-13 reporter Root source https://www.seebug.org/vuldb/ssvid-87348 title Windows TrackPopupMenu Win32k NULL Pointer Dereference bulletinFamily exploit description No description provided by source. id SSV:90702 last seen 2017-11-19 modified 2016-01-29 published 2016-01-29 reporter Snowflakes title MS14-058 Windows内核提权漏洞 (CVE-2014-4113)
The Hacker News
id THN:2A7DE929E5909B366E6F490ABBF0A6C1 last seen 2019-05-29 modified 2019-05-29 published 2019-05-29 reporter The Hacker News source https://thehackernews.com/2019/05/hacking-mysql-phpmyadmin.html title Hackers Infect 50,000 MS-SQL and PHPMyAdmin Servers with Rootkit Malware id THN:675EE08758C0AD2D11F9BC33AB15EA32 last seen 2018-01-27 modified 2016-07-13 published 2016-07-13 reporter Swati Khandelwal source https://thehackernews.com/2016/07/scada-malware-energy.html title State-Sponsored SCADA Malware targeting European Energy Companies id THN:083E49FCE8774369B5F2FAEDBE3F18A3 last seen 2018-01-27 modified 2014-10-15 published 2014-10-15 reporter Swati Khandelwal source https://thehackernews.com/2014/10/microsoft-patches-3-zero-day_15.html title Microsoft Patches 3 Zero-day Vulnerabilities actively being Exploited in the Wild
References
- http://blog.trendmicro.com/trendlabs-security-intelligence/an-analysis-of-a-windows-kernel-mode-vulnerability-cve-2014-4113/
- http://blogs.technet.com/b/srd/archive/2014/10/14/accessing-risk-for-the-october-2014-security-updates.aspx
- http://osvdb.org/show/osvdb/113167
- http://packetstormsecurity.com/files/131964/Windows-8.0-8.1-x64-TrackPopupMenu-Privilege-Escalation.html
- http://secunia.com/advisories/60970
- http://www.exploit-db.com/exploits/35101
- http://www.securityfocus.com/bid/70364
- https://docs.microsoft.com/en-us/security-updates/securitybulletins/2014/ms14-058
- https://github.com/sam-b/CVE-2014-4113
- https://www.exploit-db.com/exploits/37064/
- https://www.exploit-db.com/exploits/39666/