Vvveb - это мощный и простой в использовании CMS с конструктором страниц для создания веб-сайтов, блогов или магазинов электронной коммерции. Начиная с 1.0.0 и заканчивая 1.0.8.5, saveGlobalElements() в admin/controller/editor/global-trait.php соединяет контролируемую злоумышленником файловую часть data-v-save-global с каталогом активной темы до того, как на ней будут работать loadHTMLFile() и file_put_contents(). Аутентифицированный пользователь с ролью Editor по умолчанию и разрешением редактора/* может отправить созданный HTML в moduleeditor/editor&actionsave и перейти к существующему записываемому файлу PHP вне каталога темы.
Если цель доступна в Интернете, контент PHP с редактором выполняется в контексте веб-сервера; отправленная точка входа public/vadmin/index.php может использоваться в качестве трамплина выполнения, а не требовать только тестовый файл. Это может обеспечить постоянное размещение веб-оболочки и поставить под угрозу конфиденциальность, целостность и доступность приложений. Эта проблема исправлена в версии 1.0.8.5.
Показать оригинальное описание (EN)
Vvveb is a powerful and easy to use CMS with page builder to build websites, blogs or ecommerce stores. From 1.0.0 until 1.0.8.5, saveGlobalElements() in admin/controller/editor/global-trait.php concatenates the attacker-controlled file portion of data-v-save-global to the active theme directory before loadHTMLFile() and file_put_contents() operate on it. An authenticated user with the default Editor role and editor/* permission can submit crafted HTML to module=editor/editor&action=save and traverse to an existing writable PHP file outside the theme directory. If the target is web-accessible, editor-controlled PHP content executes in the web server context; a shipped public/vadmin/index.php entrypoint can be used as an execution trampoline rather than requiring a test-only file. This can permit persistent webshell placement and compromise application confidentiality, integrity, and availability. This issue is fixed in version 1.0.8.5.
Характеристики атаки
Последствия
Строка CVSS v3.1