
WooCommerce plugin: photo & video product reviews, closing CVE-2026-12684's unauthenticated-upload vulnerability class by construction
A WooCommerce plugin that lets customers attach photos and short videos to their product reviews, shown right in the review list on the product page.
A competing "Customer Reviews for WooCommerce" plugin shipped a standalone AJAX action for uploading review photos that performed no authentication, capability, or nonce check at all (CVE-2026-12684), letting any unauthenticated visitor upload arbitrary image/video files straight into the WordPress Media Library.
This plugin closes that entire vulnerability class by construction rather than patching around it:
wp-comments-post.php, WordPress's own comment pipeline (spam checks, Akismet if installed, moderation).product), never any other comment type.wp_handle_upload() — WordPress's own vetted upload handler — with an explicit image/video mime allow-list, never a hand-rolled file-move.Standard WordPress plugin structure:
hdwebmobile-photo-video-reviews.php Bootstrap
includes/class-hdpvr-activator.php Activation
includes/class-hdpvr-core.php Orchestrator
includes/class-hdpvr-upload-handler.php Secure upload processing (the security-critical piece)
includes/class-hdpvr-frontend.php Review-form field injection + media display
includes/class-hdpvr-admin.php Settings + hub-tab registration
includes/class-hdpvr-hub.php Shared WooCommerce > HDWebmobile admin page (per-plugin-namespaced copy)
Part of the HDWebmobile suite of focused, single-purpose WooCommerce plugins.
GPLv2 or later. See LICENSE.