Technical impact
The Photo Reviews for WooCommerce plugin contains a flaw that allows an attacker to permanently delete any media library attachment by submitting a crafted attachment ID through the wcpr_image_upload_id POST parameter. The function handling this request performs only a light type check and does not verify ownership or permissions, enabling deletion of files on disk via the standard WordPress deletion routine. This vulnerability is a classic example of CWE‑22: Path Traversal — the plugin trusts user input that determines which file to delete, without enforcing proper access controls.
Affected Systems
The flaw exists in the Revopic – Photo Reviews for WooCommerce WordPress plugin versions up to and including 1.2.31. Any site that has installed these versions of the plugin is susceptible.
Risk and Exploitability
The CVSS v3 score of 5.4 indicates moderate severity, but the vendor nonce used to protect the parameter is merely a shared public value and does not authenticate the caller, making the attack trivial for unauthenticated users. An attacker can embed malicious attachment IDs in a review comment and merely wait for the comment to be moderated or for WordPress’s scheduled deletion process to trigger. Because the vulnerability can delete files and never requires elevated privileges, the risk to confidentiality, integrity, and availability of media is significant. EPSS is not available and the issue is not listed in the CISA KEV catalog, but the low barrier to exploitation warrants immediate attention.