1. Archivio CVE
  2. 2021
  3. CVE-2021-28131

CVE-2021-28131

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

Descrizione

Impala sessions use a 16 byte secret to verify that the session is not being hijacked by another user. However, these secrets appear in the Impala logs, therefore Impala users with access to the logs can use another authenticated user's sessions with specially constructed requests. This means the attacker is able to execute statements for which they don't have the necessary privileges otherwise. Impala deployments with Apache Sentry or Apache Ranger authorization enabled may be vulnerable to privilege escalation if an authenticated attacker is able to hijack a session or query from another authenticated user with privileges not assigned to the attacker. Impala deployments with audit logging enabled may be vulnerable to incorrect audit logging as a user could undertake actions that were logged under the name of a different authenticated user. Constructing an attack requires a high degree of technical sophistication and access to the Impala system as an authenticated user. Mitigation: If an Impala deployment uses Apache Sentry, Apache Ranger or audit logging, then users should upgrade to a version of Impala with the fix for IMPALA-10600. The Impala 4.0 release includes this fix. This hides session secrets from the logs to eliminate the risk of any attack using this mechanism. In lieu of an upgrade, restricting access to logs that expose secrets will reduce the risk of an attack. Restricting access to the Impala deployment to trusted users will also reduce the risk of an attack. Log redaction techniques can be used to redact secrets from the logs.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
apache impala < 4.0.0 –
Tutte le 12 vulnerabilità di Apache Impala

Tipo di vulnerabilità

CWE-532 Informazioni sensibili scritte nei file di log

Il prodotto scrive informazioni sensibili in un file di log.

Impatto sui sistemi

AmbitoImpatto
Riservatezza Leggere i dati dell’applicazione
Registrare nei log dati sensibili degli utenti, percorsi completi o informazioni di sistema offre spesso all’attaccante una via in più, e meno protetta, per ottenerli.

Come si previene

Architettura e progettazione · Sviluppo Valuta con attenzione la sensibilità delle informazioni scritte nei file di log. Non scrivere mai segreti nei log.
Distribuzione Elimina i file di log di debug prima di mettere l’applicazione in produzione.
Esercizio Proteggi i file di log da letture e scritture non autorizzate.
Sviluppo Adegua la configurazione quando il software passa dalla modalità di debug alla produzione.

Tutte le 1.315 CVE di tipo CWE-532, con andamento e prevenzione

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