Vulnerabilities > CVE-2009-0084 - Code Injection vulnerability in Microsoft Directx
Attack vector
NETWORK Attack complexity
MEDIUM Privileges required
NONE Confidentiality impact
COMPLETE Integrity impact
COMPLETE Availability impact
COMPLETE Summary
Use-after-free vulnerability in DirectShow in Microsoft DirectX 8.1 and 9.0 allows remote attackers to execute arbitrary code via an MJPEG file or video stream with a malformed Huffman table, which triggers an exception that frees heap memory that is later accessed, aka "MJPEG Decompression Vulnerability."
Vulnerable Configurations
Part | Description | Count |
---|---|---|
OS | 9 | |
Application | 5 |
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.
Msbulletin
bulletin_id | MS09-011 |
bulletin_url | |
date | 2009-04-14T00:00:00 |
impact | Remote Code Execution |
knowledgebase_id | 961373 |
knowledgebase_url | |
severity | Critical |
title | Vulnerability in Microsoft DirectShow Could Allow Remote Code Execution |
Nessus
NASL family | Windows : Microsoft Bulletins |
NASL id | SMB_NT_MS09-011.NASL |
description | The DirectShow component included with the version of Microsoft DirectX installed on the remote host is affected by a vulnerability that may allow execution of arbitrary code when decompressing a specially crafted MJPEG file. |
last seen | 2020-06-01 |
modified | 2020-06-02 |
plugin id | 36149 |
published | 2009-04-15 |
reporter | This script is Copyright (C) 2009-2018 Tenable Network Security, Inc. |
source | https://www.tenable.com/plugins/nessus/36149 |
title | MS09-011: Vulnerability in Microsoft DirectShow Could Allow Remote Code Execution (961373) |
code |
|
Oval
accepted | 2014-03-17T04:00:22.261-04:00 | ||||||||||||||||||||||||||||||||||||||||||||||||
class | vulnerability | ||||||||||||||||||||||||||||||||||||||||||||||||
contributors |
| ||||||||||||||||||||||||||||||||||||||||||||||||
definition_extensions |
| ||||||||||||||||||||||||||||||||||||||||||||||||
description | Use-after-free vulnerability in DirectShow in Microsoft DirectX 8.1 and 9.0 allows remote attackers to execute arbitrary code via an MJPEG file or video stream with a malformed Huffman table, which triggers an exception that frees heap memory that is later accessed, aka "MJPEG Decompression Vulnerability." | ||||||||||||||||||||||||||||||||||||||||||||||||
family | windows | ||||||||||||||||||||||||||||||||||||||||||||||||
id | oval:org.mitre.oval:def:5618 | ||||||||||||||||||||||||||||||||||||||||||||||||
status | accepted | ||||||||||||||||||||||||||||||||||||||||||||||||
submitted | 2009-04-14T16:00:00 | ||||||||||||||||||||||||||||||||||||||||||||||||
title | MJPEG Decompression Vulnerability | ||||||||||||||||||||||||||||||||||||||||||||||||
version | 74 |
Seebug
bulletinFamily | exploit |
description | BUGTRAQ ID: 34460 CVE(CAN) ID: CVE-2009-0084 Microsoft DirectX是Windows操作系统中的一项功能,流媒体在玩游戏或观看视频时通过这个功能支持图形和声音。 DirectX处理受支持格式文件的方式存在漏洞,如果用户受骗打开了特制的MJPEG文件就会导致执行任意代码。成功利用此漏洞的攻击者可以完全控制受影响的系统,攻击者可随后安装程序;查看、更改或删除数据;或者创建拥有完全用户权限的新帐户。 Microsoft DirectX 9.0 Microsoft DirectX 8.1 临时解决方法: * 在Quartz.dll中禁止解码MJPEG内容。 使用交互方式 1. 点击“开始”、“运行”,在“打开”框中键入Regedit,然后点击“确定”。 2. 找到并点击以下注册表子键:HKEY_CLASSES_ROOT\CLSID\{301056D0-6DFF-11D2-9EEB-006008039E37} 3. 点击“文件”菜单并选择“导出”。 4. 在“导出注册表文件”对话框中,输入MJPEG_Decoder_Backup.reg并点击“保存”。 这会在默认的“我的文档”文件夹中创建该注册表项的备份。 5. 按下“删除”键删除注册表项。如果“确认删除项”对话框提示是否要删除注册表 项,点击“是”。 使用管理的部署脚本 1. 使用包含有以下命令的管理部署脚本创建注册表项备份拷贝: Regedit.exe /e MJPEG_Decoder_Backup.reg HKEY_CLASSES_ROOT\CLSID\{301056D0-6DFF-11D2-9EEB-006008039E37} 2. 用.REG扩展名保存以下文件,如Disable_MJPEG_Decoder.reg: Windows Registry Editor Version 5.00 [-HKEY_CLASSES_ROOT\CLSID\{301056D0-6DFF-11D2-9EEB-006008039E37}] 3. 在目标机器上从提升的命令提示符通过以下命令运行上述注册表脚本: Regedit.exe /s Disable_MJPEG_Decoder.reg * 注销quartz.dll。 对于32位Windows系统: Regsvr32.exe –u %WINDIR%\system32\quartz.dll 对于64位Windows系统: Regsvr32.exe –u %WINDIR%\syswow64\quartz.dll 厂商补丁: Microsoft --------- Microsoft已经为此发布了一个安全公告(MS09-011)以及相应补丁: MS09-011:Vulnerability in Microsoft DirectShow Could Allow Remote Code Execution (961373) 链接:<a href=http://www.microsoft.com/technet/security/bulletin/MS09-011.mspx?pf=true target=_blank rel=external nofollow>http://www.microsoft.com/technet/security/bulletin/MS09-011.mspx?pf=true</a> |
id | SSV:5050 |
last seen | 2017-11-19 |
modified | 2009-04-16 |
published | 2009-04-16 |
reporter | Root |
title | Microsoft DirectX MJPEG视频解码远程代码执行漏洞(MS09-011) |
References
- http://osvdb.org/53632
- http://secunia.com/advisories/34665
- http://support.avaya.com/elmodocs2/security/ASA-2009-132.htm
- http://www.piotrbania.com/all/adv/ms-directx-mjpeg-adv.txt
- http://www.securityfocus.com/bid/34460
- http://www.securitytracker.com/id?1022040
- http://www.us-cert.gov/cas/techalerts/TA09-104A.html
- http://www.vupen.com/english/advisories/2009/1025
- https://docs.microsoft.com/en-us/security-updates/securitybulletins/2009/ms09-011
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A5618