Плагин Hide My WP Lite для WordPress уязвим к чтению произвольных файлов в версиях до 1.3 включительно через параметры запроса he_wrapper_js и he_wrapper_css, обрабатываемые функцией elementor_assets_filter(). Это связано с тем, что функция объединяет вводимые пользователем данные непосредственно в ABSPATH и передает результат в file_get_contents() без какой-либо проверки прохождения пути, списка разрешений, ограничения реального пути или проверки расширения; результат затем отображается в ответе HTTP. Хотя выходные данные передаются через wp_kses_post(), эта функция фильтрует только теги HTML и не предотвращает раскрытие произвольного содержимого файла.
Это позволяет неаутентифицированным злоумышленникам читать содержимое произвольных файлов на сервере пораженного сайта (например, wp-config). Примечание. Для эксплойта требуется плагин Elementor и функция «Скрыть Elementor».
Показать оригинальное описание (EN)
The Hide My WP Lite plugin for WordPress is vulnerable to Arbitrary File Read in versions up to and including 1.3 via the he_wrapper_js and he_wrapper_css query parameters processed by the elementor_assets_filter() function. This is due to the function concatenating user-supplied input directly onto ABSPATH and passing the result to file_get_contents() without any path traversal validation, allow-list, realpath containment, or extension check; the result is then echoed in the HTTP response. Although the output is passed through wp_kses_post(), that function only filters HTML tags and does not prevent disclosure of arbitrary file contents. This makes it possible for unauthenticated attackers to read the contents of arbitrary files on the affected site's server (such as wp-config). Note: The exploit requires the Elementor plugin and the 'Hide Elementor' feature to be enabled.
Характеристики атаки
Последствия
Строка CVSS v3.1