Descrizione
Tensei through 0.11.5 contains an authentication bypass vulnerability in @tensei/auth that falls back to the hard-coded JWT signing key 'auth-secret-key' when JWT_SECRET is unset. Unauthenticated attackers can sign tokens with arbitrary user ids accepted by populateContextFromToken to impersonate any user, including administrators.
Tipo di vulnerabilità
CWE-1394
Use of Default Cryptographic Key
The product uses a default cryptographic key for potentially critical functionality.
Impatto sui sistemi
| Ambito | Impatto |
| Autenticazione |
Ottenere privilegi o assumere un’altra identità |
Come si previene
Requisiti
Prohibit use of default, hard-coded, or other values that do not vary for each installation of the product - especially for separate organizations.
Architettura e progettazione
Force the administrator to change the credential upon installation.
Installazione · Esercizio
The product administrator could change the defaults upon installation or during operation.
Tutte le 29 CVE di tipo CWE-1394, con andamento e prevenzione