1. Archivio CVE
  2. 2023
  3. CVE-2023-3899

CVE-2023-3899

7.8 Gravità alta CVSS v3.1 · fonte NVD CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H 7.8 – Alta

Descrizione

A vulnerability was found in subscription-manager that allows local privilege escalation due to inadequate authorization. The D-Bus interface com.redhat.RHSM1 exposes a significant number of methods to all users that could change the state of the registration. By using the com.redhat.RHSM1.Config.SetAll() method, a low-privileged local user could tamper with the state of the registration, by unregistering the system or by changing the current entitlements. This flaw allows an attacker to set arbitrary configuration directives for /etc/rhsm/rhsm.conf, which can be abused to cause a local privilege escalation to an unconfined root.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
fedoraproject fedora 37 –
fedoraproject fedora 38 –
redhat enterprise linux 8.0 –
redhat enterprise linux 9.0 –
redhat enterprise linux desktop 7.0 –
redhat enterprise linux eus 8.6 –
redhat enterprise linux eus 8.8 –
redhat enterprise linux eus 9.0 –
redhat enterprise linux eus 9.2 –
redhat enterprise linux for arm 64 8.0 –
redhat enterprise linux for arm 64 9.0 –
redhat enterprise linux for arm 64 9.2 –
redhat enterprise linux for arm 64 eus 8.6 –
redhat enterprise linux for arm 64 eus 8.8 –
redhat enterprise linux for arm 64 eus 9.0 –
redhat enterprise linux for arm 64 eus 9.2 –
redhat enterprise linux for ibm z systems 7.0 –
redhat enterprise linux for ibm z systems 8.0 –
redhat enterprise linux for ibm z systems 9.0 –
redhat enterprise linux for ibm z systems 9.2 –
redhat enterprise linux for ibm z systems eus 8.6 –
redhat enterprise linux for ibm z systems eus 8.8 –
redhat enterprise linux for ibm z systems eus 9.0 –
redhat enterprise linux for ibm z systems eus 9.2 –
redhat enterprise linux for power big endian 7.0 –
redhat enterprise linux for power little endian 7.0 –
redhat enterprise linux for power little endian 8.0 –
redhat enterprise linux for power little endian 9.0 –
redhat enterprise linux for power little endian eus 8.8 –
redhat enterprise linux for power little endian eus 9.0 –
redhat enterprise linux for power little endian eus 9.2 –
redhat enterprise linux for scientific computing 7.0 –
redhat enterprise linux server 7.0 –
redhat enterprise linux server aus 8.2 –
redhat enterprise linux server aus 8.4 –
redhat enterprise linux server aus 8.6 –
redhat enterprise linux server aus 9.2 –
redhat enterprise linux server for power little endian update services for sap solutions 8.1 –
redhat enterprise linux server for power little endian update services for sap solutions 8.2 –
redhat enterprise linux server for power little endian update services for sap solutions 8.4 –
redhat enterprise linux server for power little endian update services for sap solutions 8.6 –
redhat enterprise linux server for power little endian update services for sap solutions 8.8 –
redhat enterprise linux server for power little endian update services for sap solutions 9.0 –
redhat enterprise linux server for power little endian update services for sap solutions 9.2 –
redhat enterprise linux server tus 8.2 –
redhat enterprise linux server tus 8.4 –
redhat enterprise linux server tus 8.6 –
redhat enterprise linux server tus 8.8 –
redhat enterprise linux server update services for sap solutions 9.0 –
redhat enterprise linux server update services for sap solutions 9.2 –
redhat enterprise linux update services for sap solutions 8.1 –
redhat enterprise linux update services for sap solutions 8.2 –
redhat enterprise linux update services for sap solutions 8.4 –
redhat enterprise linux update services for sap solutions 8.6 –
redhat enterprise linux update services for sap solutions 8.8 –
redhat enterprise linux workstation 7.0 –
redhat subscription-manager < 1.28.39 –
redhat subscription-manager >= 1.29.0 < 1.29.37 –

Tipo di vulnerabilità

CWE-863 Autorizzazione errata

Il prodotto verifica l’autorizzazione quando un soggetto tenta di accedere a una risorsa o di compiere un’azione, ma esegue il controllo in modo errato.

Impatto sui sistemi

AmbitoImpatto
Riservatezza Leggere i dati dell’applicazione, Leggere file o cartelle
Un attaccante può aggirare le restrizioni di accesso e leggere dati sensibili, direttamente da un archivio di dati non protetto correttamente oppure tramite funzioni privilegiate protette in modo insufficiente.
Integrità Modificare i dati dell’applicazione, Modificare file o cartelle
Un attaccante può aggirare le restrizioni di accesso e modificare dati sensibili, scrivendoli direttamente in un archivio di dati non protetto correttamente 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ò aggirare le restrizioni di accesso e ottenere privilegi, modificando o leggendo direttamente dati critici oppure accedendo a funzioni privilegiate.
Riservatezza, Integrità, Disponibilità Eseguire codice o comandi non autorizzati
Un attaccante può usare i privilegi ottenuti per eseguire comandi o codice non autorizzati.
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 4.893 CVE di tipo CWE-863, con andamento e prevenzione

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