CVE-2021-3120 File upload in n/a
Remote attackers can upload malicious PHP files via the gift card image upload feature to execute arbitrary code on the web server.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-3120?
CVE-2021-3120 is a critical vulnerability in n/a, published on 22 Feb 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-434
Which versions are affected by CVE-2021-3120?
It affects 1 product.
Products include Yithemes Yith Woocommerce Gift Cards.
How do I fix CVE-2021-3120?
No fix has been published for CVE-2021-3120 yet. Limit exposure of the affected software until one is available.
Is CVE-2021-3120 being exploited?
There is no known exploitation of CVE-2021-3120 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-f82v-92jj-g395.