PT-2021-19201 · Yith · Yith Woocommerce Gift Cards Premium

Published

2021-02-22

·

Updated

2023-02-01

·

CVE-2021-3120

CVSS v2.0

10

Critical

VectorAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions YITH WooCommerce Gift Cards Premium plugin versions prior to 3.3.1
Description The issue allows remote attackers to achieve remote code execution on the operating system in the security context of the web server. To exploit this, an attacker must 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, although the intention was to only allow uploads of Gift Card images.
Recommendations For versions prior to 3.3.1, update to version 3.3.1 or later to resolve the issue. As a temporary workaround, consider restricting the ywgc-upload-picture parameter to prevent .php file uploads until a patch is applied.

Exploit

Fix

RCE

Unrestricted File Upload

Weakness Enumeration

Related Identifiers

CVE-2021-3120

Affected Products

Yith Woocommerce Gift Cards Premium