9.8
CRITICAL
CVE-2021-3120
YITH WooCommerce Gift Cards Premium Web Server Remote Code Execution
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.

INFO

Published Date :

Feb. 22, 2021, 3:15 p.m.

Last Modified :

Feb. 1, 2023, 2:23 a.m.

Remotely Exploitable :

Yes !

Impact Score :

5.9

Exploitability Score :

3.9
Public PoC/Exploit Available at Github

CVE-2021-3120 has a 1 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2021-3120 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Yithemes yith_woocommerce_gift_cards
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2021-3120.

URL Resource
https://github.com/guy-liu/yith-giftdrop Exploit Third Party Advisory
https://yithemes.com/themes/plugins/yith-woocommerce-gift-cards/ Vendor Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Exploit for the Arbitrary File Upload vulnerability in YITH WooCommerce Gift Cards Premium

Python

Updated: 1 year, 10 months ago
5 stars 2 fork 2 watcher
Born at : Jan. 21, 2021, 4:48 p.m. This repo has been linked 1 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-3120 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-3120 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Reanalysis by [email protected]

    Feb. 01, 2023

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:yithemes:yith_woocommerce_gift_cards:*:*:*:*:*:wordpress:*:* versions up to (excluding) 3.3.1 OR *cpe:2.3:a:yithemes:yith_woocommerce_gift_cards:*:*:*:*:premium:wordpress:*:* versions up to (excluding) 3.3.1
  • Reanalysis by [email protected]

    Mar. 03, 2021

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:yithemes:woocommerce_gift_cards:*:*:*:*:*:woocommerce:*:* versions up to (excluding) 3.3.1 OR *cpe:2.3:a:yithemes:yith_woocommerce_gift_cards:*:*:*:*:*:wordpress:*:* versions up to (excluding) 3.3.1
  • Initial Analysis by [email protected]

    Feb. 26, 2021

    Action Type Old Value New Value
    Added CVSS V2 NIST (AV:N/AC:L/Au:N/C:C/I:C/A:C)
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://github.com/guy-liu/yith-giftdrop No Types Assigned https://github.com/guy-liu/yith-giftdrop Exploit, Third Party Advisory
    Changed Reference Type https://yithemes.com/themes/plugins/yith-woocommerce-gift-cards/ No Types Assigned https://yithemes.com/themes/plugins/yith-woocommerce-gift-cards/ Vendor Advisory
    Added CWE NIST CWE-434
    Added CPE Configuration OR *cpe:2.3:a:yithemes:woocommerce_gift_cards:*:*:*:*:*:woocommerce:*:* versions up to (excluding) 3.3.1
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-3120 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2021-3120 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

18.79 }} 0.92%

score

0.96276

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability