Ad

CVE-2026-82705

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

Отсутствие авторизации в Apache Wicket. org.apache.awitorization.IAautorizationStrategy объявляет isResourceAuthorized(), и этот метод имеет одну точку принудительного исполнения в фреймворке: org.apache.wicket.request.handler.resource.ResourceRequestHandler, обработчик, который обслуживает ресурс, достигаемый через смонтированный или совместно используемый ResourceReference. Компоненты, которым передается org.apache.wicket.request.resource.IResource, вместо этого вызывают IResourcerespond() сами от своего слушателя запроса и никогда не конструируют этот обработчик. In wicket-core these are org.apache.wicket.markup.html.link.ResourceLink, org.apache.wicket.markup.html.image.Image and org.apache.wicket.markup.html.form.ImageButton; in wicket-extensions it is org.apache.wicket.extensions.ajax.AjaxDownloadBehavior.

Ресурс, ограниченный пользовательской реализацией isResourceAuthorized(), или аннотацией AuthorizeResource от wicket-auth-roles, поэтому принудительно выполняется, когда он запрашивается через его собственный ресурс URL, и не принудительно выполняется, когда тот же экземпляр подается через компонент, который его держит. Что из двух происходит, решается конструктором используемого приложения, а не тем, что приложение может видеть на отображаемой странице. ResourceLink(String, ResourceReference) отображает ресурс URL и запрос авторизован; ResourceLink(String, IResource) отображает компонентный слушатель URL, и это не так.

Изображение, ImageButton и AjaxDownloadBehavior предлагают одну и ту же пару конструкторов и ведут себя одинаково. Изображение и ImageButton пишут, что слушатель URL в атрибут src тега, который они отображают, поэтому браузер запрашивает его без каких-либо действий со стороны пользователя, и ресурс, который обслуживает Image, также может исходить из модели компонента. Приложение затрагивается, когда оно ограничивает ресурс через IAuthorizationStrategyisResourceAuthorized() или аннотацию AuthorizeResource, а затем передает тот же ресурс одному из этих компонентов как IResource.

Приложение, которое не ограничивает ресурсы вообще, не затрагивается, и не является ресурсом, который только монтируется или регистрируется в качестве общего ресурса. Шаблон не должен быть написан самим приложением: org.apache.wicket.extensions.markup.html.repeater.data.table.export.ExportToolbar строит каждую из своих экспортных ссылок из экземпляра IResource, поэтому экспортируемое содержимое таблицы данных подается без проверки ресурсов в любом приложении, которое добавляет эту панель инструментов. В качестве обходного пути зарегистрируйте ресурс в общих ресурсах приложения и передайте полученный ResourceReference компоненту вместо IResource, чтобы запрос направлялся через обработчик, который консультирует стратегию авторизации.

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

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

Missing authorization in Apache Wicket. org.apache.wicket.authorization.IAuthorizationStrategy declares isResourceAuthorized(), and that method has a single enforcement point in the framework: org.apache.wicket.request.handler.resource.ResourceRequestHandler, the handler that serves a resource reached through a mounted or shared ResourceReference. Components that are handed an org.apache.wicket.request.resource.IResource instance instead call IResource#respond() themselves from their own request listener and never construct that handler. In wicket-core these are org.apache.wicket.markup.html.link.ResourceLink, org.apache.wicket.markup.html.image.Image and org.apache.wicket.markup.html.form.ImageButton; in wicket-extensions it is org.apache.wicket.extensions.ajax.AjaxDownloadBehavior. A resource restricted by a custom isResourceAuthorized() implementation, or by an @AuthorizeResource annotation from wicket-auth-roles, is therefore enforced when it is requested through its own resource URL and is not enforced when the same instance is served through the component that holds it. Which of the two happens is decided by the constructor the application used, and not by anything the application can see in the rendered page. ResourceLink(String, ResourceReference) renders a resource URL and the request is authorized; ResourceLink(String, IResource) renders a component listener URL and it is not. Image, ImageButton and AjaxDownloadBehavior each offer the same pair of constructors and behave the same way. Image and ImageButton write that listener URL into the src attribute of the tag they render, so a browser requests it without any action by the user, and the resource an Image serves may also come from the component's model. An application is affected where it restricts a resource through IAuthorizationStrategy#isResourceAuthorized() or an @AuthorizeResource annotation and then hands that same resource to one of those components as an IResource. An application that does not restrict resources at all is not affected, and neither is a resource that is only mounted or registered as a shared resource. The pattern does not have to be written by the application itself: org.apache.wicket.extensions.markup.html.repeater.data.table.export.ExportToolbar builds each of its export links from an IResource instance, so the exported contents of a data table are served without the resource check in any application that adds that toolbar. As a workaround, register the resource in the application's shared resources and pass the resulting ResourceReference to the component instead of the IResource, so that the request is routed through the handler that consults the authorization strategy. 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 are recommended to upgrade to version 8.20.0, 9.25.0 or 10.12.0, which fix the issue.

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

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

Последствия

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

Строка CVSS v4.0