1. Archivio CVE
  2. 2019
  3. CVE-2019-18276

CVE-2019-18276

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

An issue was discovered in disable_priv_mode in shell.c in GNU Bash through 5.0 patch 11. By default, if Bash is run with its effective UID not equal to its real UID, it will drop privileges by setting its effective UID to its real UID. However, it does so incorrectly. On Linux and other systems that support "saved UID" functionality, the saved UID is not dropped. An attacker with command execution in the shell can use "enable -f" for runtime loading of a new builtin, which can be a shared object that calls setuid() and therefore regains privileges. However, binaries running with an effective UID of 0 are unaffected.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
gnu bash <= 5.0 –
gnu bash 5.0 beta1 –
gnu bash 5.0 beta2 –
gnu bash 5.0 patch1 –
gnu bash 5.0 patch10 –
gnu bash 5.0 patch11 –
gnu bash 5.0 patch2 –
gnu bash 5.0 patch3 –
gnu bash 5.0 patch4 –
gnu bash 5.0 patch5 –
gnu bash 5.0 patch6 –
gnu bash 5.0 patch7 –
gnu bash 5.0 patch8 –
gnu bash 5.0 patch9 –
gnu bash 5.0 rc1 –
netapp hci management node tutte –
netapp oncommand unified manager >= 9.5 vmware_vsphere
netapp solidfire tutte –
oracle communications cloud native core policy 1.14.0 –
Tutte le 18 vulnerabilità di Gnu Bash

Tipo di vulnerabilità

CWE-273 Improper Check for Dropped Privileges

The product attempts to drop privileges but does not check or incorrectly checks to see if the drop succeeded.

Impatto sui sistemi

AmbitoImpatto
Controllo degli accessi Ottenere privilegi o assumere un’altra identità
Controllo degli accessi, Non ripudio Ottenere privilegi o assumere un’altra identità, Nascondere le proprie attività

Come si previene

Architettura e progettazione · Separazione dei privilegi Suddividi il sistema in compartimenti, con aree sicure i cui confini di fiducia siano tracciati senza ambiguità. Non lasciare uscire i dati sensibili da questi confini e presta sempre attenzione quando interagisci con un compartimento esterno all’area sicura. La suddivisione va prevista già in fase di progettazione e deve favorire la separazione dei privilegi; per decidere quando usare i privilegi e quando rinunciarvi, segui il principio del privilegio minimo.
Sviluppo Check the results of all functions that return a value and verify that the value is expected.
Sviluppo In Windows, make sure that the process token has the SeImpersonatePrivilege(Microsoft Server 2003). Code that relies on impersonation for security must ensure that the impersonation succeeded, i.e., that a proper privilege demotion happened.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 48 CVE di tipo CWE-273, con andamento e prevenzione

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