Descrizione
The skyring-setup command creates random password for mongodb skyring database but it writes password in plain text to /etc/skyring/skyring.conf file which is owned by root but read by local user. Any local user who has access to system running skyring service will be able to get password in plain text.
Tipo di vulnerabilità
CWE-522
Credenziali protette in modo insufficiente
Il prodotto trasmette o conserva credenziali di autenticazione con un metodo insicuro, che ne permette l’intercettazione o il recupero da parte di terzi.
Impatto sui sistemi
| Ambito | Impatto |
| Controllo degli accessi |
Ottenere privilegi o assumere un’altra identità |
Come si previene
Architettura e progettazione
Use an appropriate security mechanism to protect the credentials.
Architettura e progettazione
Make appropriate use of cryptography to protect the credentials.
Sviluppo
Use industry standards to protect the credentials (e.g. LDAP, keystore, etc.).
Tutte le 1.434 CVE di tipo CWE-522, con andamento e prevenzione