Descrizione
It was found that the issue for security flaw CVE-2019-3805 appeared again in a further version of JBoss Enterprise Application Platform - Continuous Delivery (EAP-CD) introducing regression. An attacker could exploit this by modifying the PID file in /var/run/jboss-eap/ allowing the init.d script to terminate any process as root.
Tipo di vulnerabilità
CWE-364
Signal Handler Race Condition
The product uses a signal handler that introduces a race condition.
Impatto sui sistemi
| Ambito | Impatto |
| Integrità, Riservatezza, Disponibilità |
Modificare i dati dell’applicazione, Modificare la memoria, Interruzione del servizio: arresto o riavvio, Eseguire codice o comandi non autorizzati |
| Controllo degli accessi |
Ottenere privilegi o assumere un’altra identità |
Come si previene
Requisiti · Scelta del linguaggio
Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
Architettura e progettazione
Design signal handlers to only set flags, rather than perform complex functionality. These flags can then be checked and acted upon within the main program loop.
Sviluppo
Only use reentrant functions within signal handlers. Also, use validation to ensure that state is consistent while performing asynchronous actions that affect the state of execution.
Tutte le 9 CVE di tipo CWE-364, con andamento e prevenzione