Плагин Divi Plus для WordPress уязвим для произвольного чтения файлов в версиях до, включая, 2.4.0 через параметр 'svg_image' конечной точки /wp-json/elicus/v1/dipl-modules/svg-animator REST. Это связано с тем, что обратный вызов конечной точки (SVGAnimatorController::index_permission), возвращающий true, безусловно, в сочетании с недостаточной проверкой ввода 'svg_image' - sanitize_text_field() и esc_html() не ограничивают пути файловой системы, обёртка потока файла:// или произвольный URLs - перед передачей в file_get_contents() (с запасным вариантом wp_remote_get()) и возвращает тело необработанного ответа в поле JSON 'html'. Это позволяет неаутентифицированным злоумышленникам читать произвольные файлы на сервере затронутого сайта, что может сделать возможным удаленное выполнение кода.
Показать оригинальное описание (EN)
The Divi Plus plugin for WordPress is vulnerable to Arbitrary File Read in versions up to, and including, 2.4.0 via the 'svg_image' parameter of the /wp-json/elicus/v1/dipl-modules/svg-animator REST endpoint. This is due to the endpoint's permission callback (SVGAnimatorController::index_permission) returning true unconditionally combined with insufficient validation of the 'svg_image' input — sanitize_text_field() and esc_html() do not restrict filesystem paths, the file:// stream wrapper, or arbitrary URLs — before it is passed to file_get_contents() (with a wp_remote_get() fallback) and the raw response body is returned in the JSON 'html' field. This makes it possible for unauthenticated attackers to read arbitrary files on the affected site's server which may make remote code execution possible.
Характеристики атаки
Последствия
Строка CVSS v3.1