Photo Reviews for WooCommerce <= 1.2.31 - Unauthenticated File Deletion via 'wcpr_image_upload_id' Parameter
Strategic Overview
- Status
- Patched in 1.2.32
- Affected Plugin
- Revopic – Photo Reviews for WooCommerce
- Affected Version
<= 1.2.31- CVSS
- 5.4Medium
- Weakness type
- CWE-22 · Improper Limitation of a Pathname to a Restricted Directory
- CVE
CVE-2026-110251
At a glance
CVE-2026-110251 is a medium-severity Improper Limitation of a Pathname to a Restricted Directory vulnerability in the Revopic WordPress plugin, affecting versions <= 1.2.31. It carries a CVSS score of 5.4 (reachable over the network; low attack complexity). Exploitation requires no authentication. The issue is fixed in version 1.2.32; sites on affected versions should update now. Disclosed October 2026, reported by Kuba.
Vulnerability Overview
The Photo Reviews for WooCommerce plugin for WordPress is vulnerable to unauthorized Media Library File Deletion in all versions up to, and including, 1.2.31. This is due to the `delete_reviews_image()` function's `delete_comment` hook trusting attachment IDs supplied via the `wcpr_image_upload_id` POST parameter that were stored in comment meta without any ownership or capability check — `viwcpr_filter_review_image_ids()` verifies only that each submitted ID refers to an attachment post type, not that the submitter uploaded or owns it. This makes it possible for unauthenticated attackers to permanently delete any WordPress media library attachment — including its files on disk as recorded by `wp_delete_attachment()` — by embedding attacker-chosen attachment IDs into a review comment, then waiting for a moderator to remove the review or for WordPress core's `wp_scheduled_delete` cron to purge it after `EMPTY_TRASH_DAYS`. The nonce required to submit the parameter (`wcpr_image_upload`) is a shared public value printed on every product page for guest commenters and does not function as an authentication barrier, making this trivially exploitable without any account.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no privileges on the target site.
CWE-22: Improper Limitation of a Pathname to a Restricted Directory
Revopic <= 1.2.31 carries this weakness at delete_reviews_image(), and reaching it takes no account at all. Path traversal happens when user-controlled text is used to build a filesystem path without being constrained to an intended directory, so sequences like ../ walk the resolved path somewhere else.
Depending on the operation, it means reading files outside the intended folder — wp-config.php being the usual target — or writing to and deleting paths the web server can touch. For Revopic the fix is 1.2.32: builds <= 1.2.31 are affected, anything from 1.2.32 onward is not.
Remediation
Update to version 1.2.32, or a newer patched version
How does WordSec protect against this?
Requests carrying this pattern arrive without a session, so nothing upstream of the firewall gets a chance to reject them: WordSec's web application firewall inspects request payloads before WordPress loads them. None of that substitutes for the fix: Revopic 1.2.32 closes this, and updating the plugin is the step that ends it.
- Firewall
- Login Security
- Alerts
External References
Related records
Other vulnerabilities in Revopic – Photo Reviews for WooCommerce
- 8.1CVE-2026-101923: Photo Reviews… Unauthenticated Arbitrary Post
CVE-2026-101923 - 7.2CVE-2026-100161: Photo Reviews for WooCommerce Stored DOM-Based XSS
CVE-2026-100161 - 6.1CVE-2026-100515: Photo Reviews for WooCommerce <= 1.2.30 Reflected XSS
CVE-2026-100515 - 5.3CVE-2026-100517: Photo Reviews for WooCommerce <= 1.2.30 IDOR
CVE-2026-100517
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C