Rapid7 Vulnerability & Exploit Database

WordPress File Manager Unauthenticated Remote Code Execution

Back to Search

WordPress File Manager Unauthenticated Remote Code Execution

Disclosed
09/09/2020
Created
11/10/2020

Description

The File Manager (wp-file-manager) plugin from 6.0 to 6.8 for WordPress allows remote attackers to upload and execute arbitrary PHP code because it renames an unsafe example elFinder connector file to have the .php extension. This, for example, allows attackers to run the elFinder upload (or mkfile and put) command to write PHP code into the wp-content/plugins/wp-file-manager/lib/files/ directory.

Author(s)

  • Alex Souza (w4fz5uck5)
  • Imran E. Dawoodjee <imran@threathounds.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/multi/http/wp_file_manager_rce
msf exploit(wp_file_manager_rce) > show targets
    ...targets...
msf exploit(wp_file_manager_rce) > set TARGET < target-id >
msf exploit(wp_file_manager_rce) > show options
    ...show and set options...
msf exploit(wp_file_manager_rce) > 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

;