1. Archivio CVE
  2. 2021
  3. CVE-2021-27254

CVE-2021-27254

8.8 Gravità alta CVSS v3.1 · fonte NVD CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 8.8 – Alta

Descrizione

This vulnerability allows network-adjacent attackers to bypass authentication on affected installations of NETGEAR R7800. Authentication is not required to exploit this vulnerability. The specific flaw exists within the apply_save.cgi endpoint. This issue results from the use of hard-coded encryption key. An attacker can leverage this vulnerability to execute arbitrary code in the context of root. Was ZDI-CAN-12287.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
netgear br200 firmware < 5.10.0.5 –
netgear br500 firmware < 5.10.0.5 –
netgear d7800 firmware < 1.0.1.60 –
netgear ex6100v2 firmware < 1.0.1.98 –
netgear ex6150v2 firmware < 1.0.1.98 –
netgear ex6250 firmware < 1.0.0.134 –
netgear ex6400 firmware < 1.0.2.158 –
netgear ex6400v2 firmware < 1.0.0.134 –
netgear ex6410 firmware < 1.0.0.134 –
netgear ex6420 firmware < 1.0.0.134 –
netgear ex7300 firmware < 1.0.2.158 –
netgear ex7300v2 firmware < 1.0.0.134 –
netgear ex7320 firmware < 1.0.0.134 –
netgear ex7700 firmware < 1.0.0.216 –
netgear ex8000 firmware < 1.0.1.232 –
netgear lbr20 firmware < 2.6.3.50 –
netgear r7800 firmware < 1.0.2.80 –
netgear r8900 firmware < 1.0.5.28 –
netgear r9000 firmware < 1.0.5.28 –
netgear rbk12 firmware < 2.7.2.104 –
netgear rbk13 firmware < 2.7.2.104 –
netgear rbk14 firmware < 2.7.2.104 –
netgear rbk15 firmware < 2.7.2.104 –
netgear rbk20 firmware < 2.6.2.104 –
netgear rbk23 firmware < 2.7.2.104 –
netgear rbk40 firmware < 2.6.2.104 –
netgear rbk43 firmware < 2.6.2.104 –
netgear rbk43s firmware < 2.6.2.104 –
netgear rbk44 firmware < 2.6.2.104 –
netgear rbk50 firmware < 2.7.2.104 –
netgear rbk53 firmware < 2.7.2.104 –
netgear rbr10 firmware < 2.6.2.104 –
netgear rbr20 firmware < 2.6.2.104 –
netgear rbr40 firmware < 2.6.2.104 –
netgear rbr50 firmware < 2.7.2.104 –
netgear rbs10 firmware < 2.6.2.104 –
netgear rbs20 firmware < 2.6.2.104 –
netgear rbs40 firmware < 2.6.2.104 –
netgear rbs50 firmware < 2.7.2.104 –
netgear rbs50y firmware < 2.6.2.104 –
netgear xr450 firmware < 2.3.2.114 –
netgear xr500 firmware < 2.3.2.114 –
netgear xr700 firmware < 1.0.1.38 –

Tipo di vulnerabilità

CWE-798 Credenziali scritte nel codice (hard-coded)

Il prodotto contiene credenziali fisse nel codice, come una password o una chiave crittografica.

Impatto sui sistemi

AmbitoImpatto
Controllo degli accessi Aggirare i meccanismi di protezione
Integrità, Riservatezza, Disponibilità, Controllo degli accessi, Altro Leggere i dati dell’applicazione, Ottenere privilegi o assumere un’altra identità, Eseguire codice o comandi non autorizzati, Altro

Come si previene

Architettura e progettazione For outbound authentication: store passwords, keys, and other credentials outside of the code in a strongly-protected, encrypted configuration file or database that is protected from access by all outsiders, including other local users on the same system. Properly protect the key (CWE-320). If you cannot use encryption to protect the file, then make sure that the permissions are as restrictive as possible. In Windows environments, the Encrypted File System (EFS) may provide some protection.
Architettura e progettazione For inbound authentication: Rather than hard-code a default username and password, key, or other authentication credentials for first time logins, utilize a first login mode that requires the user to enter a unique strong password or key.
Architettura e progettazione If the product must contain hard-coded credentials or they cannot be removed, perform access control checks and limit which entities can access the feature that requires the hard-coded credentials. For example, a feature might only be enabled through the system console instead of through a network connection.
Architettura e progettazione For inbound authentication using passwords: apply strong one-way hashes to passwords and store those hashes in a configuration file or database with appropriate access control. That way, theft of the file/database still requires the attacker to try to crack the password. When handling an incoming password during authentication, take the hash of the password and compare it to the saved hash. Use randomly assigned salts for each separate hash that is generated. This increases the amount of computation that an attacker needs to conduct a brute-force attack, possibly limiting the effectiveness of the rainbow table method.
Architettura e progettazione For front-end to back-end connections: Three solutions are possible, although none are complete. The first suggestion involves the use of generated passwords or keys that are changed automatically and must be entered at given time intervals by a system administrator. These passwords will be held in memory and only be valid for the time intervals. Next, the passwords or keys should be limited at the back end to only performing actions valid for the front end, as opposed to having full access. Finally, the messages sent should be tagged and checksummed with time sensitive values so as to prevent replay-style attacks.

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

Tutte le 1.803 CVE di tipo CWE-798, con andamento e prevenzione

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