The Shortcodes Ultimate plugin for WordPress is vulnerable to Local File Inclusion in versions up to, and including, 7.9.1 This is due to su_get_current_url() interpolating the raw Host request header into the authority portion of a URL that is then passed to esc_url() — which by design preserves '[' and ']' inside the authority so IPv6 literal hosts remain valid — and the [su_qrcode] shortcode substituting that value into its data attribute (the documented %CURRENT_URL% token) before feeding it to do_shortcode(). Это позволяет злоумышленникам, не прошедшим проверку подлинности, включать произвольные файлы PHP, которые находятся в корневом каталоге активной темы (ограничены, потому что «/» внутри значения атрибута завершает parse_url()'s хост, а затем кодируется и удаляется), и - когда опция по умолчанию «Unsafe» остается включенной - читать произвольные мета-посты любого сообщения на любой фронтальной странице, которая отображает [su_qrcode data="%CURRENT_URL%".
Показать оригинальное описание (EN)
The Shortcodes Ultimate plugin for WordPress is vulnerable to Local File Inclusion in versions up to, and including, 7.9.1 This is due to su_get_current_url() interpolating the raw Host request header into the authority portion of a URL that is then passed to esc_url() — which by design preserves '[' and ']' inside the authority so IPv6 literal hosts remain valid — and the [su_qrcode] shortcode substituting that value into its data attribute (the documented %CURRENT_URL% token) before feeding it to do_shortcode(). This makes it possible for unauthenticated attackers to include arbitrary PHP files that reside within the active theme's root directory (bounded because '/' inside an attribute value terminates parse_url()'s host and is then percent-encoded and stripped), and — when the shipped-default 'Unsafe features' option remains on — to read arbitrary post meta of any post, on any front-end page that renders [su_qrcode data="%CURRENT_URL%"].
Характеристики атаки
Последствия
Строка CVSS v3.1