Плагин Bootstrap Shortcodes для WordPress перед 3.4.6 уязвим для сохраненного XSS через атрибут id короткого кода [bs_tcontent]. Обработчик короткого кода bs_tcontent() в inc/bs_tabs.php излучает значение атрибута id в нецитируемый атрибут HTML. esc_attr() применяется, но не кодирует пробелы, поэтому пробел в заданном значении завершает атрибут, и любой следующий текст анализируется как дополнительные атрибуты HTML, включая обработчики событий JavaScript. Это позволяет аутентифицированным злоумышленникам с доступом Contributor-level и выше вводить произвольный веб-скрипт, который выполняется в браузере любого пользователя, который просматривает страницу и взаимодействует с вводимым элементом.
Показать оригинальное описание (EN)
The Bootstrap Shortcodes plugin for WordPress before 3.4.6 is vulnerable to stored XSS via the id attribute of the [bs_tcontent] shortcode. The bs_tcontent() shortcode handler in inc/bs_tabs.php emits the id attribute value into an unquoted HTML attribute. esc_attr() is applied, but it does not encode space characters, so a space in the supplied value terminates the attribute and any following text is parsed as additional HTML attributes, including JavaScript event handlers. This allows authenticated attackers with Contributor-level access and above to inject arbitrary web script that executes in the browser of any user who views the page and interacts with the injected element.
Характеристики атаки
Последствия
Строка CVSS v4.0
Тип уязвимости (CWE)
Уязвимые продукты 1
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Bootstrap_Shortcodes_Project Bootstrap_Shortcodes
cpe:2.3:a:bootstrap_shortcodes_project:bootstrap_shortcodes:*:*:*:*:*:*:*:*
|
— |
3.4.6
|