Ad

CVE-2026-84177

MEDIUM CVSS 4.0: 6,3 EPSS 0.43%
Обновлено 6 ноября 2026
Apache
Параметр Значение
CVSS 6,3 (MEDIUM)
Уязвимые версии 8.0.0 — 8.19.0
Устранено в версии 8.20.0
Тип уязвимости CWE-179
Поставщик Apache
Публичный эксплойт Нет

Неправильный порядок поведения в Apache Wicket: путь к файлу проверяется до того, как фреймворк добавляет атрибуты, которые его завершают. org.apache.wicket.request.resource.PackageResource запрашивает настроенную защиту ресурсов пакета о пути, построенном из пакета класса области видимости и имени файла в запросе URL, а затем передает тот же путь в локатор потока ресурсов вместе со стилем, вариацией и локальной. Those three attributes are decoded from the name of the first query parameter and never appear in the string the guard was given. org.apache.wicket.core.util.resource.locator.ResourceNameIterator appends them to that path, each preceded by an underscore, in the order variation, style, locale, before the file extension, so the file that is opened is not the file the guard approved. org.apache.wicket.markup.html.PackageResourceGuard decides whether an HTML file is a component's markup template by looking for a class file of the same name beside it, stripping one underscore-delimited suffix at a time as it goes. HTML находится в списке разрешений по умолчанию, так что проверка - это единственное, что отделяет статический файл HTML, который может обслуживаться, от шаблона разметки, который может этого не делать. Отвечая на вопрос о названии шаблона, охранник отказывается от него правильно.

Отвечая на вопрос о более коротком имени, для которого не существует класса, он принимает, и стиль, поставляемый в URL, затем заполняет это имя в шаблон разметки класса компонентов, который записывается в ответ. Приложение затрагивается, если простое имя любого из его классов компонентов содержит подчеркивание, и не более короткая часть этого имени сама по себе является классом, таким как Report_v2 или Wizard_Step1; приложение без такого имени класса не затрагивается. Никакого необычного развертывания, упаковки или конфигурации не требуется, и запуск в режиме развертывания, а не в режиме разработки, не мешает этому.

Соглашения об именовании Java не рекомендуют подчеркивать в названиях классов, и ни один модуль Wicket не имеет его, поэтому не отображается разметка фреймворка; то, что приложение раскрывает таким образом, является его собственным. Компонент, имя класса которого не имеет подчеркивания, недоступен, как и его локализованная или стилизованная разметка, потому что охранник находит файл класса под базовым именем и отклоняет запрос. Атрибуты не могут изменить расширение файла и не могут покинуть пакет компонента, поэтому ничего, кроме файлов HTML в этом пакете, недоступно.

Доступ доступен только для чтения, и раскрывается содержимое шаблона, созданное разработчиком: структура компонентов, комментарии разработчика, разметка, которая отображается только при определенных условиях, встроенный скрипт, а конечные точки - имена шаблонов. Никакие пользовательские данные, учетные данные или сессионный материал не доступны таким образом. Злоумышленник должен назвать класс в целевом пакете и сам компонент, и Wicket записывает полностью квалифицированные имена классов в URL каждого отображаемого ресурса пакета.

Эта проблема затрагивает Apache Wicket: от 8.0.0 до 8.19.0, от 9.0.0 до 9.24.0, от 10.0.0 до 10.11.0. Пользователи Apache Wicket 7.x или старше, которые больше не поддерживаются, должны обновиться до поддерживаемой версии. Пользователям рекомендуется обновиться до версий 8.20.0, 9.25.0 или 10.12.0, которые исправляют проблему.

Показать оригинальное описание (EN)

Incorrect behavior order in Apache Wicket: a file path is validated before the framework appends the attributes that complete it. org.apache.wicket.request.resource.PackageResource asks the configured package resource guard about a path built from the scope class' package and the file name in the request URL, and then hands that same path to the resource stream locator together with a style, a variation and a locale. Those three attributes are decoded from the name of the first query parameter and never appear in the string the guard was given. org.apache.wicket.core.util.resource.locator.ResourceNameIterator appends them to that path, each preceded by an underscore, in the order variation, style, locale, before the file extension, so the file that is opened is not the file the guard approved. org.apache.wicket.markup.html.PackageResourceGuard decides whether an HTML file is a component's markup template by looking for a class file of the same name beside it, stripping one underscore-delimited suffix at a time as it goes. HTML is on the default allow list, so that check is the only thing separating a static HTML file, which may be served, from a markup template, which may not. Asked about the name of a template, the guard refuses it correctly. Asked about a shorter name for which no class exists, it accepts, and a style supplied in the URL then completes that name into the markup template of a component class, which is written to the response. An application is affected if the simple name of any of its component classes contains an underscore and no shorter part of that name is itself a class, such as Report_v2 or Wizard_Step1; an application with no such class name is not affected. No unusual deployment, packaging or configuration is required, and running in deployment rather than development mode does not prevent it. Java naming conventions discourage underscores in class names and no module Wicket ships has one, so no framework markup is exposed; what an application exposes this way is its own. A component whose class name has no underscore is not reachable, and neither is its localized or styled markup, because the guard finds the class file under the base name and refuses the request. The attributes cannot change the file extension and cannot leave the component's package, so nothing beyond HTML files in that package is reachable. Access is read-only, and what is disclosed is developer-authored template content: component structure, developer comments, markup that is rendered only under some conditions, inline script, and the endpoints a template names. No user data, credential or session material is reachable this way. An attacker has to name a class in the target package and the component itself, and Wicket writes fully qualified class names into the URL of every package resource it renders. This issue affects Apache Wicket: from 8.0.0 through 8.19.0, from 9.0.0 through 9.24.0, from 10.0.0 through 10.11.0. Users of Apache Wicket 7.x or older, which are no longer supported, should upgrade to a supported version. Users are recommended to upgrade to version 8.20.0, 9.25.0 or 10.12.0, which fix the issue.

Характеристики атаки

Способ атаки
По сети
Атака возможна удалённо
Сложность
Низкая
Легко эксплуатировать
Условия для атаки
Требуются
Нужны дополнительные условия
Нужны права
Не требуются
Права не нужны
Участие пользователя
Не требуется
Не нужно действие пользователя

Последствия

Конфиденциальность
Низкое
Частичная утечка данных
Целостность
Нет
Нет модификации данных
Доступность
Нет
Нет нарушения работы

Строка CVSS v4.0

Тип уязвимости (CWE)