Vulnerabilities > CVE-2007-3034 - Numeric Errors vulnerability in Microsoft products
Attack vector
NETWORK Attack complexity
MEDIUM Privileges required
NONE Confidentiality impact
COMPLETE Integrity impact
COMPLETE Availability impact
COMPLETE Summary
Integer overflow in the AttemptWrite function in Graphics Rendering Engine (GDI) on Microsoft Windows 2000 SP4, XP SP2, and Server 2003 SP1 allows remote attackers to execute arbitrary code via a crafted metafile (image) with a large record length value, which triggers a heap-based buffer overflow.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
OS | 6 |
Common Weakness Enumeration (CWE)
Exploit-Db
description | MS Windows (GDI32.DLL) Denial of Service Exploit (MS07-046). CVE-2007-3034. Dos exploit for windows platform |
id | EDB-ID:4337 |
last seen | 2016-01-31 |
modified | 2007-08-29 |
published | 2007-08-29 |
reporter | Gil-Dong / Woo-Chi |
source | https://www.exploit-db.com/download/4337/ |
title | Microsoft Windows - GDI32.DLL Denial of Service Exploit MS07-046 |
Nessus
NASL family | Windows : Microsoft Bulletins |
NASL id | SMB_NT_MS07-046.NASL |
description | The remote host contains a version of Microsoft Windows that has 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 | 25884 |
published | 2007-08-14 |
reporter | This script is Copyright (C) 2007-2018 Tenable Network Security, Inc. |
source | https://www.tenable.com/plugins/nessus/25884 |
title | MS07-046: Vulnerability in GDI Could Allow Remote Code Execution (938829) |
code |
|
Oval
accepted | 2011-05-09T04:01:26.447-04:00 | ||||||||||||||||||||||||
class | vulnerability | ||||||||||||||||||||||||
contributors |
| ||||||||||||||||||||||||
definition_extensions |
| ||||||||||||||||||||||||
description | Integer overflow in the AttemptWrite function in Graphics Rendering Engine (GDI) on Microsoft Windows 2000 SP4, XP SP2, and Server 2003 SP1 allows remote attackers to execute arbitrary code via a crafted metafile (image) with a large record length value, which triggers a heap-based buffer overflow. | ||||||||||||||||||||||||
family | windows | ||||||||||||||||||||||||
id | oval:org.mitre.oval:def:2088 | ||||||||||||||||||||||||
status | accepted | ||||||||||||||||||||||||
submitted | 2007-08-15T09:28:35 | ||||||||||||||||||||||||
title | Remote Code Execution Vulnerability in GDI | ||||||||||||||||||||||||
version | 73 |
Seebug
bulletinFamily | exploit |
description | BUGTRAQ ID: 25302 CVE(CAN) ID: CVE-2007-3034 Microsoft Windows是微软发布的非常流行的操作系统。 Windows的图形设备接口(GDI)的GDI32函数AttemptWrite处理Windows元文件时可能会出现整数溢出,远程攻击者可能利用此漏洞提升自己的权限。 如下反汇编所示,很多GDI32 API函数都会调用AttemptWrite,如CreateMetaFileW。 77F4B519 mov esi, [ebp+0Ch] ; reported size of record in bytes ... ; (user-controlled) 77F4B548 mov eax, [ebx+0Ch] ; amount of buffer used in bytes ; (user-controlled) 77F4B548 lea ecx, [eax+esi] ; *** integer overflow *** 77F4B54E cmp ecx, [ebx+08h] ; buffer capacity 77F4B551 ja _no_memcpy ... 77F4B56D mov edi, [ebx] ; pointer to start of buffer 77F4B56F mov ecx, esi 77F4B574 add edi, eax ; now EDI points to unused buffer space ... 77F4B5BA mov eax, ecx 77F4B5BC shr ecx, 2 77F4B5BF rep movsd ; *** complete heap overwrite *** 如果创建了包含有超大记录长度的元文件就会触发堆溢出,因为memcpy试图将大约4GB的任意数据拷贝到堆块。这个拷贝大小会导致访问破坏,但在可以处理这种异常的程序中会导致执行任意指令。 Microsoft Windows XP SP2 Microsoft Windows Server 2003 x64 Edition Microsoft Windows Server 2003 SP1 Microsoft Windows 2000SP4 Microsoft --------- Microsoft已经为此发布了一个安全公告(MS07-046)以及相应补丁: MS07-046:Vulnerability in GDI Could Allow Remote Code Execution (938829) 链接:<a href="http://www.microsoft.com/technet/security/Bulletin/MS07-046.mspx?pf=true" target="_blank">http://www.microsoft.com/technet/security/Bulletin/MS07-046.mspx?pf=true</a> |
id | SSV:2122 |
last seen | 2017-11-19 |
modified | 2007-08-17 |
published | 2007-08-17 |
reporter | Root |
title | Microsoft Windows GDI AttemptWrite函数远程堆溢出漏洞(MS07-046) |
References
- http://secunia.com/advisories/26423
- http://www.kb.cert.org/vuls/id/640136
- http://www.securityfocus.com/archive/1/476505/100/0/threaded
- http://www.securityfocus.com/bid/25302
- http://www.securitytracker.com/id?1018563
- http://www.us-cert.gov/cas/techalerts/TA07-226A.html
- http://www.vupen.com/english/advisories/2007/2870
- https://docs.microsoft.com/en-us/security-updates/securitybulletins/2007/ms07-046
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A2088