Ad

CVE-2026-82704

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

Missing authorization in Apache Wicket. org.apache.wicket.core.request.handler.ListenerRequestHandler invokes an IRequestListener only when org.apache.wicket.Component#canCallListener() allows it, and that method is isEnabledInHierarchy() && isVisibleInHierarchy(). Половина видимости читает флаг, который несет результат IAuthorizationStrategyisActionAuthorized() для действия Component.RENDER, и этот флаг пишется только в одном месте, Componentconfigure(), во время фазы рендеринга. Слушатель URL, построенный подклассом org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper, несет идентификатор страницы и путь к компоненту в одном параметре, и идентификатор страницы может быть пустым.

Когда создается новый экземпляр страницы, PageProviderwasExpired() является ложным, потому что идентификатор не был предоставлен, а PageAndComponentProvidergetComponent() находит компонент непосредственно на новом экземпляре, поэтому ни пропуск рендера, ни Componentconfigure() не запускаются до вызова слушателя. Таким образом, флаг по-прежнему сохраняет свой конструктор по умолчанию, компонент считается видимым, и слушатель компонента, для которого стратегия авторизации отказала RENDER, выполняется. Тот же запрос также пропускает ComponentonConfigure(), поэтому видимость и включение набора приложений там также не применяются.

Есть два способа достичь этого, и ни один из них не требует ничего, кроме просьбы. На странице, которая является статусной, вызывающее лицо опускает идентификатор страницы от слушателя URL, который в противном случае перенес бы его. На странице, которую Wicket считает безгосударственной, ничего не должно быть изменено вообще: Wicket сам пишет слушателя URLs без идентификатора страницы для таких страниц, а компонент, который стратегия отрицает RENDER, рассматривается как безгосударственный и, следовательно, не сохраняет страницу в состоянии, поэтому отрицание RENDER может само производить форму page-id-less.

Второй путь никогда не был отвергнут. Решение ENABLE IAuthorizationStrategy рассматривается при каждом вызове и по-прежнему отказывается, как и запрос, который предоставляет реальный идентификатор экземпляра страницы, который уже был отрендерен; компонент, который приложение отключило в ComponentonConfigure(), не защищен ни тем, ни другим, потому что этот обратный вызов не запущен. Приложение влияет, когда оно удерживает отдельный компонент от вызывающего абонента, либо отрицая действие RENDER через IAuthorizationStrategy, в том числе через средства MetaDataRoleAuthorizationStrategy и AuthorizeAction wicket-auth-roles, либо устанавливая видимость компонента или включенный флаг в ComponentonConfigure(), собственная документация Wicket's направляет приложения для использования для обоих.

Страница, содержащая такой компонент, должна быть построена из закладочного или смонтированного URL, что требует, чтобы публичный конструктор не принимал никаких аргументов или аргумента PageParameters. Behaviours проходит через один и тот же затвор, поэтому поведение AJAX, прикрепленное к такому компоненту, одинаково подвержено. Отдельно, независимо от того, заблокирован ли какой-либо компонент на странице, которую Wicket считает выполненной, слушатель вызывается в экземпляре, построенном самим запросом, поэтому он действует на моделях, построенных из параметров страницы, предоставленных вызывающему абоненту, а не на состоянии последнего отображаемого приложения.

Авторизация Instantiation не затрагивается: при создании экземпляра новой страницы по-прежнему консультируется IAuthorizationStrategyisInstantiationAuthorized(), поэтому охрана, размещенная на странице, а не на отдельном компоненте, продолжает удерживаться. Эта проблема затрагивает 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.core.request.handler.ListenerRequestHandler invokes an IRequestListener only when org.apache.wicket.Component#canCallListener() allows it, and that method is isEnabledInHierarchy() && isVisibleInHierarchy(). The visibility half reads a flag that carries the outcome of IAuthorizationStrategy#isActionAuthorized() for the Component.RENDER action, and that flag is written in one place only, Component#configure(), during the render phase. A listener URL built by a subclass of org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper carries the page identifier and the component path in a single parameter, and the page identifier may be empty. When it is, a new page instance is constructed, PageProvider#wasExpired() is false because no identifier was supplied, and PageAndComponentProvider#getComponent() finds the component directly on the new instance, so neither a render pass nor Component#configure() runs before the listener is invoked. The flag therefore still holds its constructor default, the component counts as visible, and the listener of a component the authorization strategy denied RENDER for is executed. The same request also skips Component#onConfigure(), so visibility and enablement an application sets there are not applied either. There are two ways to reach this, and neither requires anything but a request. On a page that is stateful, the caller omits the page identifier from a listener URL that would otherwise carry it. On a page that Wicket considers stateless, nothing has to be altered at all: Wicket itself writes listener URLs without a page identifier for such pages, and a component the strategy denies RENDER for is treated as stateless and therefore does not keep the page stateful, so denying RENDER can itself produce the page-id-less form. The second route has never been refused. The ENABLE decision of IAuthorizationStrategy is consulted on every invocation and still refuses, as does a request that supplies the real identifier of a page instance that has already been rendered; a component the application disabled in Component#onConfigure() is protected by neither, because that callback has not run. An application is affected where it withholds an individual component from the caller, either by denying the RENDER action through IAuthorizationStrategy, including through the MetaDataRoleAuthorizationStrategy and AuthorizeAction facilities of wicket-auth-roles, or by setting the component's visibility or enabled flag in Component#onConfigure(), the callback Wicket's own documentation directs applications to use for both. The page carrying such a component has to be constructible from a bookmarkable or mounted URL, which requires a public constructor taking either no arguments or a PageParameters argument. Behaviours pass through the same gate, so an AJAX behaviour attached to such a component is equally exposed. Separately, and whether or not any component is withheld, a listener on a page Wicket considers stateful is invoked on an instance the request itself constructed, so it acts on models built from page parameters the caller supplied rather than on the state the application last rendered. Instantiation authorization is unaffected: IAuthorizationStrategy#isInstantiationAuthorized() is still consulted when the new page instance is created, so a guard placed on the page rather than on the individual component continues to hold. 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