1. Archivio CVE
  2. 2022
  3. CVE-2022-43393

CVE-2022-43393

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

Descrizione

An improper check for unusual or exceptional conditions in the HTTP request processing function of Zyxel GS1920-24v2 firmware prior to V4.70(ABMH.8)C0, which could allow an unauthenticated attacker to corrupt the contents of the memory and result in a denial-of-service (DoS) condition on a vulnerable device.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
zyxel gs1350-12hp firmware < 4.70\(abpj.5\)c0 –
zyxel gs1350-18hp firmware < 4.70\(abpk.5\)c0 –
zyxel gs1350-26hp firmware < 4.70\(abpl.5\)c0 –
zyxel gs1350-6hp firmware < 4.70\(abpi.5\)c0 –
zyxel gs1915-24e firmware < 4.70\(acdr.3\)c0 –
zyxel gs1915-24ep firmware < 4.70\(acds.3\)c0 –
zyxel gs1915-8 firmware < 4.70\(acap.3\)c0 –
zyxel gs1915-8ep firmware < 4.70\(acaq.3\)c0 –
zyxel gs1920-24hpv2 firmware < 4.70\(abmi.8\)c0 –
zyxel gs1920-24v2 firmware < 4.70\(abmh.8\)c0 –
zyxel gs1920-48hpv2 firmware < 4.70\(abmk.8\)c0 –
zyxel gs1920-48v2 firmware < 4.70\(abmj.8\)c0 –
zyxel gs2220-10 firmware < 4.70\(abro.6\)c0 –
zyxel gs2220-10hp firmware < 4.70\(abrp.6\)c0 –
zyxel gs2220-28 firmware < 4.70\(abrq.6\)c0 –
zyxel gs2220-28hp firmware < 4.70\(abrr.6\)c0 –
zyxel gs2220-50 firmware < 4.70\(abrs.6\)c0 –
zyxel gs2220-50hp firmware < 4.70\(abrt.6\)c0 –
zyxel mgs3500-24s firmware < 4.10\(abbr.2\)c0 –
zyxel mgs3520-28 firmware < 4.10\(aatn.5\)c0 –
zyxel mgs3520-28 firmware 4.10(abqm.1)c0 –
zyxel mgs3520-28f firmware < 4.10\(aatm.4\)c0 –
zyxel mgs3530-28 firmware < 4.10\(acem.2\)c0 –
zyxel mgs3530-28 firmware 4.10(acfj.0)c0 –
zyxel xgs1930-28 firmware < 4.70\(abht.5\)c0 –
zyxel xgs1930-28hp firmware < 4.70\(abhs.5\)c0 –
zyxel xgs1930-52 firmware < 4.70\(abhu.5\)c0 –
zyxel xgs1930-52hp firmware < 4.70\(abhv.5\)c0 –
zyxel xgs2210-28 firmware < 4.70\(aazj.2\)c0 –
zyxel xgs2210-28hp firmware < 4.70\(aazl.2\)c0 –
zyxel xgs2210-52 firmware < 4.70\(aazk.2\)c0 –
zyxel xgs2210-52hp firmware < 4.70\(aazm.2\)c0 –
zyxel xgs2220-30 firmware < 4.80\(abxn.1\)c0 –
zyxel xgs2220-30f firmware < 4.80\(abye.1\)c0 –
zyxel xgs2220-30hp firmware < 4.80\(abxo.1\)c0 –
zyxel xgs2220-54 firmware < 4.80\(abxp.1\)c0 –
zyxel xgs2220-54fp firmware < 4.80\(acce.1\)c0 –
zyxel xgs2220-54hp firmware < 4.80\(abxq.1\)c0 –
zyxel xgs4600-32 firmware < 4.70\(abbh.4\)c0 –
zyxel xgs4600-32f firmware < 4.70\(abbi.4\)c0 –
zyxel xgs4600-52f firmware < 4.70\(abik.4\)c0 –
zyxel xmg1930-30 firmware < 4.80\(acar.0\) –
zyxel xmg1930-30hp firmware < 4.80\(acas.0\) –
zyxel xs1930-10 firmware < 4.80\(abqe.0\)c0 –
zyxel xs1930-12f firmware < 4.80\(abzv.0\)c0 –
zyxel xs1930-12hp firmware < 4.80\(abqf.0\)c0 –
zyxel xs3800-28 firmware <= 4.80\(abml.1\)c0 –

Tipo di vulnerabilità

CWE-754 Controllo improprio di condizioni anomale o eccezionali

Il prodotto non controlla, o controlla in modo errato, condizioni anomale che non dovrebbero presentarsi spesso durante il normale funzionamento.

Impatto sui sistemi

AmbitoImpatto
Integrità, Disponibilità Interruzione del servizio: arresto o riavvio, Stato imprevisto

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. Choose languages with features such as exception handling that force the programmer to anticipate unusual conditions that may generate exceptions. Custom exceptions may need to be developed to handle unusual business-logic conditions. Be careful not to pass sensitive exceptions back to the user (CWE-209, CWE-248).
Sviluppo Check the results of all functions that return a value and verify that the value is expected.
Sviluppo If using exception handling, catch and throw specific exceptions instead of overly-general exceptions (CWE-396, CWE-397). Catch and handle exceptions as locally as possible so that exceptions do not propagate too far up the call stack (CWE-705). Avoid unchecked or uncaught exceptions where feasible (CWE-248).
Sviluppo Ensure that error messages only contain minimal details that are useful to the intended audience and no one else. The messages need to strike the balance between being too cryptic (which can confuse users) or being too detailed (which may reveal more than intended). The messages should not reveal the methods that were used to determine the error. Attackers can use detailed information to refine or optimize their original attack, thereby increasing their chances of success. If errors must be captured in some detail, record them in log messages, but consider what could occur if the log messages can be viewed by attackers. Highly sensitive information such as passwords should never be saved to log files. Avoid inconsistent messaging that might accidentally tip off an attacker about internal state, such as whether a user account exists or not. Exposing additional information to a potential attacker in the context of an exceptional condition can help the attacker determine what attack vectors are most likely to succeed beyond DoS.
Sviluppo · Validazione dell’input Considera ogni input come potenzialmente malevolo. Adotta una validazione per «elenco di valori ammessi»: accetta solo gli input che rispettano rigorosamente le specifiche e rifiuta, o trasforma in qualcosa di conforme, tutto il resto. Nel validare considera tutte le proprietà rilevanti: lunghezza, tipo, intervallo dei valori ammessi, input mancanti o in più, sintassi, coerenza tra campi collegati e rispetto delle regole di business (per esempio «barca» è sintatticamente valido perché contiene solo lettere, ma non lo è se il campo deve contenere solo colori come rosso o blu). Non limitarti a cercare input malevoli o malformati: quasi certamente ne sfuggirà qualcuno, soprattutto se l’ambiente del codice cambia, lasciando all’attaccante lo spazio per aggirare la validazione. Le liste di valori vietati restano utili per rilevare possibili attacchi o scartare subito gli input più malformati.
Architettura e progettazione · Sviluppo If the program must fail, ensure that it fails gracefully (fails closed). There may be a temptation to simply let the program fail poorly in cases such as low memory conditions, but an attacker may be able to assert control before the software has fully exited. Alternately, an uncontrolled failure could cause cascading problems with other downstream components; for example, the program could send a signal to a downstream process so the process immediately knows that a problem has occurred and has a better chance of recovery.
Architettura e progettazione Use system limits, which should help to prevent resource exhaustion. However, the product should still handle low resource conditions since they may still occur.

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

Tutte le 647 CVE di tipo CWE-754, con andamento e prevenzione

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