Summary
The Product Input Fields for WooCommerce plugin for WordPress, in all versions up to and including 2.1.0, contains an unrestricted file upload flaw (CWE-434) in the process_file_input_field function. It performs no real file type validation, relying solely on the client-supplied multipart Content-Type header, and writes the file to the unprotected pif_temp directory using the client-supplied filename verbatim.
Per the CVSS vector (9.8, critical), the attack is network-based, low complexity, and requires no authentication or user interaction. The precondition is that an administrator has configured at least one product with a File-type input field with "Show thumbnail" enabled, a standard use of the feature. The pif_temp directory lacks .htaccess or index.php restrictions, so uploaded files are directly web-accessible and executable on default Apache/mod_php setups.
An attacker can upload an executable file and achieve remote code execution, fully compromising confidentiality, integrity and availability. The issue is not in CISA KEV; EPSS is about 1.3% (71st percentile).
Who is affected
WordPress/WooCommerce stores running Product Input Fields for WooCommerce version 2.1.0 or earlier, especially with file upload fields on products.
What to do
- Check the installed plugin version; no fixed version is listed in the record, so consult the vendor's (tychesoftwares) official release and the Wordfence advisory and update as soon as a fix is available.
- Until patched, disable File-type product input fields with "Show thumbnail" or temporarily deactivate the plugin.
- Block script (e.g. PHP) execution in the pif_temp directory at the web server level.
- Review pif_temp and web logs for suspicious files (e.g. .php) and unusual requests; if found, treat the server as compromised.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
- CWE-434 Unrestricted Upload of File with Dangerous Type
References
- www.wordfence.com/threat-intel/vulnerabilities/id/2b729c88-9a7e-4729-bec1-6e5f9bef4f2d?sou
- plugins.trac.wordpress.org/browser/product-input-fields-for-woocommerce/tags/2.1.0/include
- plugins.trac.wordpress.org/browser/product-input-fields-for-woocommerce/tags/2.1.0/include
- plugins.trac.wordpress.org/browser/product-input-fields-for-woocommerce/tags/2.1.0/include
- plugins.trac.wordpress.org/changeset?reponame=&old=3819954%40product-input-fields-for-wooc
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.