WordPress security changelog
CRITICAL CVE-2021-3120 Modified

Yith Woocommerce Gift Cards: Dangerous file upload

Yith Woocommerce Gift Cards is affected by dangerous file upload. Exposure depends on how the affected operation is made reachable by the site. Successful exploitation can place attacker-controlled executable content on the server and may lead to full site compromise.

CVE / CNA score 9.8 CVSS 3.1 · cve@mitre.org
NVD score 9.8 CVSS 3.1 · nvd@nist.gov
Component
Yith Woocommerce Gift Cards
Plugin slug
yith-woocommerce-gift-cards
Affected
See vendor advisory
Safe version
See mitigation notes
Published
Feb 22, 2021
Weakness
CWE-434 — Unrestricted Upload of File with Dangerous Type

This CVE was published Feb 22, 2021 and is one of 2 known issues for this plugin.

Update, patch or deactivate.

Update Yith Woocommerce Gift Cards to a release outside the affected range, or disable and remove it until a fixed version is available.

No confirmed safe version is listed. Consider a vendor-supported patch or temporarily restricting the affected functionality while you assess the risk.

Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.

Technical description

An arbitrary file upload vulnerability in the YITH WooCommerce Gift Cards Premium plugin before 3.3.1 for WordPress allows remote attackers to achieve remote code execution on the operating system in the security context of the web server. In order to exploit this vulnerability, an attacker must be able to place a valid Gift Card product into the shopping cart. An uploaded file is placed at a predetermined path on the web server with a user-specified filename and extension. This occurs because the ywgc-upload-picture parameter can have a .php value even though the intention was to only allow uploads of Gift Card images.

CVE / CNA vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

NVD vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary and upstream sources