VidShop for WooCommerce data exposure in products REST API
wpcreatix VidShop – Shoppable Videos for WooCommerce
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| wpcreatix VidShop – Shoppable Videos for WooCommerce |
| No fix yet |
Original description
The VidShop for WooCommerce plugin for WordPress is vulnerable to Sensitive Information Exposure in versions up to, and including, 1.10.0 via the /vsfw/v1/products/{id} REST API endpoint. This is due to the endpoint's permission_callback (check_public_permission) returning true unconditionally and the get_item() handler only checking that the product and video exist — it does not check the product's post_status or catalog visibility, nor does it verify that the product is actually linked to the supplied video_id. This makes it possible for unauthenticated attackers to enumerate product IDs and read private, draft, and catalog-hidden WooCommerce products' names, short descriptions, prices, variations, attributes, and stock information that would otherwise be hidden from public view.
From the CVE record · Wordfence
References
- wordfence.com/threat-intel/vulnerabilities/id/ea984c60-ec59-4cc5-ba96-f58bb683529b?source=cve
- plugins.trac.wordpress.org/browser/vidshop-for-woocommerce/tags/1.10.0/includes/rest-api/v1/class-products-controller.php#L185
- plugins.trac.wordpress.org/browser/vidshop-for-woocommerce/tags/1.10.0/includes/rest-api/v1/class-products-controller.php#L61
- plugins.trac.wordpress.org/browser/vidshop-for-woocommerce/tags/1.10.0/includes/rest-api/v1/class-rest-controller.php#L36
- plugins.trac.wordpress.org/browser/vidshop-for-woocommerce/tags/1.10.0/includes/rest-api/v1/class-products-controller.php#L289
- plugins.trac.wordpress.org/browser/vidshop-for-woocommerce/tags/1.10.0/includes/services/class-woocommerce.php#L284
- plugins.trac.wordpress.org/changeset/3807447/vidshop-for-woocommerce
- plugins.trac.wordpress.org/changeset/3807447/vidshop-for-woocommerce/trunk/includes/rest-api/v1/class-products-controller.php