Rapid7 Vulnerability & Exploit Database

WordPress WPTouch Authenticated File Upload

Back to Search

WordPress WPTouch Authenticated File Upload

Disclosed
07/14/2014
Created
05/30/2018

Description

The WordPress WPTouch plugin contains an authenticated file upload vulnerability. A wp-nonce (CSRF token) is created on the backend index page and the same token is used on handling ajax file uploads through the plugin. By sending the captured nonce with the upload, we can upload arbitrary files to the upload folder. Because the plugin also uses its own file upload mechanism instead of the WordPress api it's possible to upload any file type. The user provided does not need special rights, and users with "Contributor" role can be abused.

Author(s)

  • Marc-Alexandre Montpas
  • Christian Mehlmauer <FireFart@gmail.com>

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/wp_wptouch_file_upload
msf exploit(wp_wptouch_file_upload) > show targets
    ...targets...
msf exploit(wp_wptouch_file_upload) > set TARGET < target-id >
msf exploit(wp_wptouch_file_upload) > show options
    ...show and set options...
msf exploit(wp_wptouch_file_upload) > 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

;