
Threat actors are actively exploiting a critical flaw in the YITH WooCommerce Gift Cards Premium WordPress plugin installed by over 50,000 websites.
Hackers are actively exploiting a critical vulnerability, tracked asĀ CVE-2022-45359Ā (CVSS v3: 9.8), affecting the WordPress plugin YITH WooCommerce Gift Cards Premium.
The YITH WooCommerce Gift Cards Premium plugin allows websites of online stores to sellĀ gift cards, a WordPress plugin used on over 50,000 websites.
TheĀ CVE-2022-45359 flaw is an Arbitrary File Upload issue that can allow an unauthenticated attacker to upload files to vulnerable sites, including web shells that provide full access to the site.
The issue was discovered on November 22, 2022, and was addressed with the release of version 3.20.0.
Due to the presence of a lot of websites that are still using vulnerable versions of the plugin, threat actors are exploring the flaw in attacks in the wild to upload backdoors on the e-stores.
āThe Wordfence Threat Intelligence team has been tracking exploits targeting aĀ Critical Severity Arbitrary File Upload vulnerabilityĀ in YITH WooCommerce Gift Cards Premium, a plugin with over 50,000 installations according to the vendor.ā reported Wordfence. āThis allows attackers to place a back door, obtain Remote Code Execution, and take over the site.ā
The researchers were able to reverse engineer the exploit and discovered that the issue lies in theĀ import_actions_from_settings_panelĀ function which runs on theĀ admin_initĀ hook.
The hook runs forĀ anyĀ page in theĀ /wp-admin/Ā directory and allows to trigger functions that run onĀ itĀ as an unauthenticated attacker by sending a request toĀ /wp-admin/admin-post.php.
The experts noticed that theĀ import_actions_from_settings_panelĀ function also lacks a capability check and a CSRF check. An unauthenticated attacker can send POST requests to ā/wp-admin/admin-post.phpā using the certain parameters to upload a malicious PHP executable on the site.
āSince the import_actions_from_settings_panel function also lacks a capability check and a CSRF check, it is trivial for an attacker to simply send a request containing a page parameter set to yith_woocommerce_gift_cards_panel, a ywgc_safe_submit_field parameter set to importing_gift_cards, and a payload in the file_import_csv file parameter.ā continues the report. āSince the function also does not perform any file type checks, any file type including executable PHP files can be uploaded.ā
The experts added that it is possible to discover the attacks by analyzing the logs and checking unexpected POST requests to wp-admin/admin-post.php from unknown IP addresses.
Below are some files uploaded by threat actors in attacks analyzed by Wordfence:
- kon.php/1tes.phpĀ ā this file loads a copy of the āmarijuana shellā file manager in memory from a remote location (shell[.]prinsh[.]com)
- b.phpĀ ā this file is a simple uploader
- admin.phpĀ ā this file is a password-protected backdoor
Most of the attacks observed by Wordfence originated from 103.138.108.15 (19604 attacks against 10936 different sites) and 188.66.0.135 IP addresses (1220 attacks against 928 sites).
āThe majority of attacks occurred the day after the vulnerability was disclosed, but have been ongoing, with another peak on December 14, 2022. As this vulnerability is trivial to exploit and provides full access to a vulnerable website we expect attacks to continue well into the future.ā concludes the report.ā
Follow me on Twitter: @securityaffairs and Facebook and Mastodon
|
|
(SecurityAffairsĀ ā hacking, WordPress plugin)
The post Experts warn of attacks exploiting WordPress gift card plugin appeared first on Security Affairs.
