1. Archivio CVE
  2. 2026
  3. CVE-2026-82704

CVE-2026-82704

6.9 Gravità media CVSS v4.0 · fonte NVD CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X 6.9 – Media

Descrizione

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.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
apache software foundation apache wicket >= 8.0.0 <= 8.19.0 –
apache software foundation apache wicket >= 9.0.0 <= 9.24.0 –
apache software foundation apache wicket >= 10.0.0 <= 10.11.0 –
Tutte le 19 vulnerabilità di Apache Software Foundation Apache Wicket

Tipo di vulnerabilità

CWE-862 Autorizzazione mancante

Il prodotto non verifica l’autorizzazione quando un soggetto tenta di accedere a una risorsa o di compiere un’azione.

Impatto sui sistemi

AmbitoImpatto
Riservatezza Leggere i dati dell’applicazione, Leggere file o cartelle
Un attaccante può leggere dati sensibili, direttamente da un archivio di dati non protetto oppure tramite funzioni privilegiate protette in modo insufficiente.
Integrità Modificare i dati dell’applicazione, Modificare file o cartelle
Un attaccante può modificare dati sensibili, scrivendoli direttamente in un archivio di dati non protetto oppure tramite funzioni privilegiate protette in modo insufficiente.
Controllo degli accessi Ottenere privilegi o assumere un’altra identità, Aggirare i meccanismi di protezione
Un attaccante può ottenere privilegi modificando o leggendo direttamente dati critici, oppure accedendo a funzioni privilegiate.
Disponibilità Interruzione del servizio: arresto o riavvio, Interruzione del servizio: esaurimento della CPU, Interruzione del servizio: esaurimento della memoria, Interruzione del servizio: esaurimento di risorse
Un attaccante può accedere senza autorizzazione a risorse del sistema e consumarle in modo eccessivo, fino a interrompere il servizio.

Come si previene

Architettura e progettazione Dividi il prodotto in aree anonime, normali, privilegiate e amministrative. Riduci la superficie di attacco associando con cura ruoli, dati e funzioni, e usa un controllo degli accessi basato sui ruoli (RBAC) per far rispettare i ruoli nei punti giusti. Questo approccio non protegge dall’accesso «orizzontale»: non impedisce a un utente di attaccare altri utenti con lo stesso ruolo.
Architettura e progettazione Esegui controlli degli accessi legati alla logica di business, che possono essere diversi da quelli applicati a risorse più generiche come file, connessioni, processi, memoria e record del database. Per esempio, un database può limitare l’accesso alle cartelle cliniche a uno specifico utente del database, ma ogni cartella dovrebbe essere accessibile solo al paziente e al suo medico.
Architettura e progettazione · Librerie o framework Usa una libreria o un framework collaudato che non permetta questo tipo di errore o che renda più facile evitarlo. Per esempio, valuta framework di autorizzazione come JAAS Authorization Framework e la funzione Access Control di OWASP ESAPI.
Architettura e progettazione Nelle applicazioni web, verifica che il controllo degli accessi sia applicato correttamente lato server su ogni pagina: gli utenti non devono poter raggiungere funzioni o informazioni non autorizzate semplicemente richiedendo la pagina direttamente. Un modo per farlo è non mettere in cache le pagine con informazioni sensibili e consentirne l’accesso solo alle richieste accompagnate da un token di sessione attivo e autenticato, associato a un utente con i permessi necessari.
Configurazione del sistema · Installazione Usa le funzioni di controllo degli accessi del sistema operativo e del server e definisci di conseguenza le liste di controllo degli accessi (ACL), partendo da una politica di negazione predefinita.

Tutte le 11.931 CVE di tipo CWE-862, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org