Плагин Newsletters Lite для WordPress уязвим к хранимым межсайтовым сценариям через атрибут «target» короткого кода [newsletters_post] в версиях до 4.15 включительно. Это происходит из-за недостаточной очистки ввода и экранирования вывода в функции Posts_single(), которая распространяет контролируемый злоумышленником атрибут target в глобальный $wpml_target, а также в обработчике shortcode_posts() 'post_thumbnail', который объединяет $wpml_target в HTML-атрибут target="..." без esc_attr(). Это позволяет злоумышленникам, прошедшим проверку подлинности, с доступом на уровне участника и выше, внедрять произвольные веб-скрипты на страницы, которые будут выполняться всякий раз, когда пользователь обращается к внедренной странице.
Показать оригинальное описание (EN)
The Newsletters Lite plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'target' attribute of the [newsletters_post] shortcode in versions up to and including 4.15. This is due to insufficient input sanitization and output escaping in the posts_single() function which propagates the attacker-controlled 'target' attribute into the global $wpml_target, and in the shortcode_posts() 'post_thumbnail' handler which concatenates $wpml_target into a target="..." HTML attribute without esc_attr(). This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Характеристики атаки
Последствия
Строка CVSS v3.1