Rapid7 Vulnerability & Exploit Database

Tiki Wiki Unauthenticated File Upload Vulnerability

Back to Search

Tiki Wiki Unauthenticated File Upload Vulnerability

Disclosed
07/11/2016
Created
05/30/2018

Description

This module exploits a file upload vulnerability in Tiki Wiki <= 15.1 which could be abused to allow unauthenticated users to execute arbitrary code under the context of the web server user. The issue comes with one of the 3rd party components. Name of that component is ELFinder -version 2.0-. This component comes with default example page which demonstrates file operations such as upload, remove, rename, create directory etc. Default configuration does not force validations such as file extension, content-type etc. Thus, unauthenticated user can upload PHP file. The exploit has been tested on Debian 8.x 64-bit and Tiki Wiki 15.1.

Author(s)

  • Mehmet Ince <mehmet@mehmetince.net>

Platform

PHP

Architectures

php

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/unix/webapp/tikiwiki_upload_exec
msf exploit(tikiwiki_upload_exec) > show targets
    ...targets...
msf exploit(tikiwiki_upload_exec) > set TARGET < target-id >
msf exploit(tikiwiki_upload_exec) > show options
    ...show and set options...
msf exploit(tikiwiki_upload_exec) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;