Executive brief
The Printcart Web to Print Product Designer plugin for WooCommerce is vulnerable to a security flaw that allows anyone on the internet to delete files from the website's server. This plugin is typically used by e-commerce sites to allow customers to customize product designs. An attacker could use this vulnerability to disable the website, delete critical data, or potentially gain full control over the server.
Technical details
The vulnerability is an arbitrary file deletion flaw caused by improper path validation in the 'store_design_data()' function. The function uses the 'nbd_item_key' POST parameter to construct a filesystem path, sanitizing it only with 'sanitize_text_field()', which fails to strip path traversal sequences. This path is then passed to 'Nbdesigner_IO::delete_folder()' and PHP's 'rename()' function. Although the action is protected by a nonce, unauthenticated users can obtain a valid nonce via the 'nbd_check_use_logged_in' endpoint. An attacker can leverage this to delete critical system or application files, potentially leading to a denial of service or remote code execution if configuration files (like wp-config.php) are targeted. The issue is fixed in version 2.5.3.
Affected products
- Printcart Printcart Web to Print Product Designer for WooCommerce up to, and including, 2.5.2
Timeline
- 2026-07-03: advisory: NVD publication date
- 2026-07-03: disclosed: Wordfence vulnerability report published
References
- https://plugins.trac.wordpress.org/browser/printcart-integration/tags/2.4.8/includes/class.nbdesigner.php
- https://plugins.trac.wordpress.org/browser/printcart-integration/tags/2.4.8/includes/class.nbdesigner.php
- https://plugins.trac.wordpress.org/browser/printcart-integration/tags/2.4.8/includes/class.nbdesigner.php
- https://plugins.trac.wordpress.org/changeset/3593521/printcart-integration/trunk/includes/class.nbdesigner.php
- https://plugins.trac.wordpress.org/changeset?old_path=%2Fprintcart-integration/tags/2.5.2&new_path=%2Fprintcart-integration/tags/2.5.3
- https://www.wordfence.com/threat-intel/vulnerabilities/id/5bb962bd-9b23-4820-885e-d8095250c3c7?source=cve