YITH WooCommerce Gift Cards Premium <= 3.3.0 - Arbitrary File Upload

9.8
Unrestricted Upload of File with Dangerous Type
CVE CVE-2021-3120
CVSS 9.8 (Critical)
Publicly Published January 27, 2021
Last Updated January 22, 2024

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.

References

Share

Vulnerability Details for YITH WooCommerce Gift Cards Premium

Software Type Plugin
Software Slug yith-woocommerce-gift-cards-premium (view on wordpress.org)
Patched? Yes
Remediation Update to version 3.3.1, or a newer patched version
Affected Version
  • < 3.3.1
Patched Version
  • 3.3.1

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation