module

WordPress File Manager Unauthenticated Remote Code Execution

Disclosed
2020-09-09
Created
2020-11-10

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.

Authors

Alex Souza (w4fz5uck5)
Imran E. Dawoodjee imran@threathounds.com

Platform

PHP

Architectures

php

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

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.