Descrizione
A vulnerability in Google Cloud Platform's guest-oslogin versions between 20190304 and 20200507 allows a user that is only granted the role "roles/compute.osLogin" to escalate privileges to root. Using the membership to the "lxd" group, an attacker can attach host devices and filesystems. Within an lxc container, it is possible to attach the host OS filesystem and modify /etc/sudoers to then gain administrative privileges. All images created after 2020-May-07 (20200507) are fixed, and if you cannot update, we recommend you edit /etc/group/security.conf and remove the "lxd" user from the OS Login entry.
Tipo di vulnerabilità
CWE-276
Permessi predefiniti errati
Durante l’installazione i file vengono creati con permessi che consentono a chiunque di modificarli.
Impatto sui sistemi
| Ambito | Impatto |
| Riservatezza, Integrità |
Leggere i dati dell’applicazione, Modificare i dati dell’applicazione |
Come si previene
Architettura e progettazione · Esercizio
The architecture needs to access and modification attributes for files to only those users who actually require those actions.
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.
Tutte le 1.555 CVE di tipo CWE-276, con andamento e prevenzione