Плагин MotoPress Appointment Booking Lite для WordPress уязвим для Stored Cross-Site Scripting в версиях до и включая 2.4.8 через общедоступную конечную точку /motopress/appointment/v1/customers/create' REST. Маршрут зарегистрирован в permission_callback '__return_true', и параметр обработчика 'name' не дезинфицируется перед записью в пользовательскую таблицу wp_mpa_customers через $wpdb->insert, а также не удаляется на выходе в списке бронирований администратора, когда пользователю не хватает возможности 'mpa_edit_customer' (например, роль Appointment Employee, определенная плагином). Это позволяет злоумышленникам, не прошедшим проверку подлинности, вводить произвольные веб-скрипты на страницах, которые будут выполняться всякий раз, когда пользователь получает доступ к введенной странице.
Показать оригинальное описание (EN)
The MotoPress Appointment Booking Lite plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 2.4.8 via the public '/motopress/appointment/v1/customers/create' REST endpoint. The route is registered with permission_callback => '__return_true' and the handler's 'name' parameter is not sanitized before being written to the custom wp_mpa_customers table via $wpdb->insert, nor is it escaped on output in the admin bookings list when the viewing user lacks the 'mpa_edit_customer' capability (such as the plugin-defined Appointment Employee role). This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Характеристики атаки
Последствия
Строка CVSS v3.1