Vulnerabilities > CVE-2008-1087 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in Microsoft products
Attack vector
NETWORK Attack complexity
MEDIUM Privileges required
NONE Confidentiality impact
COMPLETE Integrity impact
COMPLETE Availability impact
COMPLETE Summary
Stack-based buffer overflow in GDI in Microsoft Windows 2000 SP4, XP SP2, Server 2003 SP1 and SP2, Vista, and Server 2008 allows remote attackers to execute arbitrary code via an EMF image file with crafted filename parameters, aka "GDI Stack Overflow Vulnerability."
Vulnerable Configurations
Part | Description | Count |
---|---|---|
OS | 14 |
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Buffer Overflow via Environment Variables This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
- Overflow Buffers Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
- Client-side Injection-induced Buffer Overflow This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
- Filter Failure through Buffer Overflow In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
- MIME Conversion An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
Exploit-Db
description MS Windows GDI (EMR_COLORMATCHTOTARGETW) Exploit MS08-021. CVE-2008-1083,CVE-2008-1087. Remote exploit for windows platform file exploits/windows/remote/6656.txt id EDB-ID:6656 last seen 2016-02-01 modified 2008-10-02 platform windows port published 2008-10-02 reporter Ac!dDrop source https://www.exploit-db.com/download/6656/ title Microsoft Windows GDI - EMR_COLORMATCHTOTARGETW Exploit MS08-021 type remote description MS Windows GDI Image Parsing Stack Overflow Exploit (MS08-021). CVE-2008-1083,CVE-2008-1087. Local exploit for windows platform file exploits/windows/local/5442.cpp id EDB-ID:5442 last seen 2016-01-31 modified 2008-04-14 platform windows port published 2008-04-14 reporter Lamhtz source https://www.exploit-db.com/download/5442/ title Microsoft Windows GDI - Image Parsing Stack Overflow Exploit MS08-021 type local
Nessus
NASL family | Windows : Microsoft Bulletins |
NASL id | SMB_NT_MS08-021.NASL |
description | The remote host contains a version of Microsoft Windows that is missing a critical security update that fixes several vulnerabilities in the Graphic Rendering Engine, and in the way Windows handles Metafiles. An attacker may exploit these flaws to execute arbitrary code on the remote host. To exploit this flaw, an attacker would need to send a specially crafted image to a user on the remote host, or lure him into visiting a rogue website containing such a file. |
last seen | 2020-06-01 |
modified | 2020-06-02 |
plugin id | 31794 |
published | 2008-04-08 |
reporter | This script is Copyright (C) 2008-2018 Tenable Network Security, Inc. |
source | https://www.tenable.com/plugins/nessus/31794 |
title | MS08-021: Vulnerabilities in GDI Could Allow Remote Code Execution (948590) |
code |
|
Oval
accepted | 2011-11-14T04:00:39.363-05:00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
class | vulnerability | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
contributors |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
definition_extensions |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
description | Stack-based buffer overflow in GDI in Microsoft Windows 2000 SP4, XP SP2, Server 2003 SP1 and SP2, Vista, and Server 2008 allows remote attackers to execute arbitrary code via an EMF image file with crafted filename parameters, aka "GDI Stack Overflow Vulnerability." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
family | windows | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
id | oval:org.mitre.oval:def:5580 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
status | accepted | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
submitted | 2008-04-08T16:04:00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
title | GDI stack Overflow Vulnerability | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
version | 74 |
Saint
bid | 28570 |
description | Windows GDI EMF filename buffer overflow |
id | win_patch_gdi_2k,win_patch_gdi_xp,win_patch_gdi_03,win_patch_gdi_vista |
osvdb | 44215 |
title | windows_gdi_emf_filename |
type | client |
Seebug
bulletinFamily | exploit |
description | BUGTRAQ ID: 28570 CVE(CAN) ID: CVE-2008-1087 Microsoft Windows是微软发布的非常流行的操作系统。 Windows的GDI函数在处理特制EMF图形文件中的文件名参数时存在栈溢出。如果用户受骗打开了特制的图形文件的话,就可能触发这个溢出,导致执行任意指令。 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 临时解决方法: * 通过修改注册表禁用元文件处理 1. 单击“开始”,单击“运行”,在“打开”框中键入Regedit,然后单击“确定”。 2. 找到并随后单击下列注册表子项: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\GRE_Initialize 3. 在“编辑”菜单上,指向“新建”,然后单击“DWORD”。 4. 键入DisableMetaFiles,然后按 Enter。 5. 在“编辑”菜单上,单击“修改”以修改DisableMetaFiles注册表项。 6. 在“数值数据”框中键入 1,然后单击“确定”。 7. 退出注册表编辑器。 8. 重新启动计算机。 厂商补丁: Microsoft --------- Microsoft已经为此发布了一个安全公告(MS08-021)以及相应补丁: MS08-021:Vulnerabilities in GDI Could Allow Remote Code Execution (948590) 链接:<a href=http://www.microsoft.com/technet/security/Bulletin/MS08-021.mspx target=_blank>http://www.microsoft.com/technet/security/Bulletin/MS08-021.mspx</a> |
id | SSV:3138 |
last seen | 2017-11-19 |
modified | 2008-04-10 |
published | 2008-04-10 |
reporter | Root |
title | Microsoft Windows GDI文件名解析栈溢出漏洞(MS08-021) |
References
- http://marc.info/?l=bugtraq&m=120845064910729&w=2
- http://secunia.com/advisories/29704
- http://www.osvdb.org/44215
- http://www.securityfocus.com/bid/28570
- http://www.securitytracker.com/id?1019798
- http://www.us-cert.gov/cas/techalerts/TA08-099A.html
- http://www.vupen.com/english/advisories/2008/1145/references
- https://docs.microsoft.com/en-us/security-updates/securitybulletins/2008/ms08-021
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A5580
- https://www.exploit-db.com/exploits/5442
- https://www.exploit-db.com/exploits/6656