CVE-2021-3120

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…

Critical · published February 22, 2021

CVSS v3.1
9.8
EPSS
37%
Percentile
98.5
In the wild
Unconfirmed
What it is

🚨 An arbitrary file upload vulnerability in YITH WooCommerce Gift Cards Premium plugin before 3.3.1 exposes your server to remote code execution—like leaving the front door open for any sneaky raccoon looking to rummage through your stuff! 🔥 This vulnerability is like allowing anyone to flip the sign on your store's door to 'Open' without your permission. The ywgc-upload-picture parameter is accepting files that should be off-limits, letting attackers upload a malicious file disguised as an innocent image. If exploited, attackers could execute arbitrary code on your web server, giving them complete control to read, modify, or even delete critical data. Imagine a burglar not only picking your lock but also rearranging your entire house while you're away! This is absolutely devastating for any affected WooCommerce store.

Put simply

This vulnerability is like allowing anyone to flip the sign on your store's door to 'Open' without your permission. The ywgc-upload-picture parameter is accepting files that should be off-limits, letting attackers upload a malicious file disguised as an innocent image. The flaw arises when the plugin allows file uploads through the ywgc-upload-picture parameter, accepting .php extensions that should only permit image files. This oversight enables attackers to upload malicious PHP code, leading to remote code execution in the server's context.

What to do

If exploited, attackers could execute arbitrary code on your web server, giving them complete control to read, modify, or even delete critical data. Imagine a burglar not only picking your lock but also rearranging your entire house while you're away! This is absolutely devastating for any affected WooCommerce store. Update the YITH WooCommerce Gift Cards Premium plugin to version 3.3.1 or later immediately. Additionally, implement file validation checks to ensure only legitimate image formats are accepted during uploads. Don't forget to review your security measures and audit other user-upload functionalities to prevent similar vulnerabilities! You've got this! Secure your site by following these steps and lock down your server like a pro! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:N/S:U/UI:N
CVSS v4.0
Not supplied
EPSS
0.36781 · 98.5th percentile
Published
2021-02-22T14:24Z
EPSS history
Timeline
  • 22 FEB 14:24Z
    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…
    cvelistv5