1. Archivio CVE
  2. 2023
  3. CVE-2023-28831

CVE-2023-28831

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

Descrizione

The OPC UA implementations (ANSI C and C++) in affected products contain an integer overflow vulnerability that could cause the application to run into an infinite loop during certificate validation. This could allow an unauthenticated remote attacker to create a denial of service condition by sending a specially crafted certificate.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
siemens simatic cloud connect 7 cc712 firmware < 2.2 –
siemens simatic cloud connect 7 cc716 firmware < 2.2 –
siemens simatic drive controller cpu 1504d tf firmware < 2.2 –
siemens simatic drive controller cpu 1507d tf firmware < 2.9.7 –
siemens simatic et 200sp open controller cpu firmware < 2.9.7 –
siemens simatic s7-1200 cpu firmware < 3.0.3 –
siemens simatic s7-1500 cpu 1510sp f-1 pn firmware < 3.0.3 –
siemens simatic s7-1500 cpu 1510sp-1 pn firmware < 2.9.7 –
siemens simatic s7-1500 cpu 1511-1 pn firmware < 21.9.7 –
siemens simatic s7-1500 cpu 1511c-1 pn firmware < 30.0.0 –
siemens simatic s7-1500 cpu 1511f-1 pn firmware < 2.9.7 –
siemens simatic s7-1500 cpu 1511t-1 pn firmware < 2.9.7 –
siemens simatic s7-1500 cpu 1511tf-1 pn firmware < 3.0.3 –
siemens simatic s7-1500 cpu 1512c-1 pn firmware < 3.0.3 –
siemens simatic s7-1500 cpu 1512sp f-1 pn firmware < 3.0.3 –
siemens simatic s7-1500 cpu 1512sp-1 pn firmware < 2.9.7 –
siemens simatic s7-1500 cpu 1513-1 pn firmware < 2.9.7 –
siemens simatic s7-1500 cpu 1513f-1 pn firmware < 2.9.7 –
siemens simatic s7-1500 cpu 1513r-1 pn firmware < 2.9.7 –
siemens simatic s7-1500 cpu 1514sp f-2 pn firmware < 2.9.7 –
siemens simatic s7-1500 cpu 1514sp-2 pn firmware < 3.0.3 –
siemens simatic s7-1500 cpu 1514spt f-2 pn firmware < 2.9.7 –
siemens simatic s7-1500 cpu 1514spt-2 pn firmware < 2.9.7 –
siemens simatic s7-1500 cpu 1515-2 pn firmware < 2.9.7 –
siemens simatic s7-1500 cpu 1515f-2 pn firmware < 3.0.3 –
siemens simatic s7-1500 cpu 1515r-2 pn firmware < 2.9.7 –
siemens simatic s7-1500 cpu 1515t-2 pn firmware < 3.0.3 –
siemens simatic s7-1500 cpu 1515tf-2 pn firmware < 3.0.3 –
siemens simatic s7-1500 cpu 1516-3 pn/dp firmware < 3.0.3 –
siemens simatic s7-1500 cpu 1516f-3 pn/dp firmware < 3.0.3 –
siemens simatic s7-1500 cpu 1516t-3 pn/dp firmware < 3.0.3 –
siemens simatic s7-1500 cpu 1516tf-3 pn/dp firmware < 3.0.3 –
siemens simatic s7-1500 cpu 1517-3 pn/dp firmware < 3.0.3 –
siemens simatic s7-1500 cpu 1517f-3 pn/dp firmware < 2.9.7 –
siemens simatic s7-1500 cpu 1517h-3 pn firmware < 2.9.7 –
siemens simatic s7-1500 cpu 1517t-3 pn/dp firmware < 2.9.7 –
siemens simatic s7-1500 cpu 1517tf-3 pn/dp firmware < 2.9.7 –
siemens simatic s7-1500 cpu 1518-4 pn/dp firmware < 21.9.7 –
siemens simatic s7-1500 cpu 1518-4 pn/dp mfp firmware < 2.9.7 –
siemens simatic s7-1500 cpu 1518f-4 pn/dp firmware < 2.9.7 –
siemens simatic s7-1500 cpu 1518f-4 pn/dp mfp firmware < 2.9.7 –
siemens simatic s7-1500 cpu 1518hf-4 pn firmware < 2.9.7 –
siemens simatic s7-1500 cpu 1518t-4 pn/dp firmware < 2.9.7 –
siemens simatic s7-1500 cpu 1518tf-4 pn/dp firmware < 2.9.7 –
siemens simatic s7-1500 cpu s7-1518-4 pn/dp odk firmware < 2.9.7 –
siemens simatic s7-1500 cpu s7-1518f-4 pn/dp odk firmware < 2.9.7 –
siemens simatic s7-1500 et 200pro firmware < 2.9.7 –
siemens simatic s7-1500 software controller firmware < 2.9.7 –
siemens simatic s7-plcsim advanced firmware < 2.9.7 –
siemens siplus et 200sp cpu 1510sp f-1 pn firmware < 2.9.7 –
siemens siplus et 200sp cpu 1510sp f-1 pn rail firmware < 2.9.7 –
siemens siplus et 200sp cpu 1510sp-1 pn firmware < 2.9.7 –
siemens siplus et 200sp cpu 1510sp-1 pn rail firmware < 2.9.7 –
siemens siplus et 200sp cpu 1512sp f-1 pn firmware < 2.9.7 –
siemens siplus et 200sp cpu 1512sp f-1 pn rail firmware < 2.9.7 –
siemens siplus et 200sp cpu 1512sp-1 pn firmware < 2.9.7 –
siemens siplus et 200sp cpu 1512sp-1 pn rail firmware < 2.9.7 –
siemens siplus s7-1500 cpu 1511-1 pn firmware < 2.9.7 –
siemens siplus s7-1500 cpu 1511-1 pn t1 rail firmware < 2.9.7 –
siemens siplus s7-1500 cpu 1511-1 pn tx rail firmware < 2.9.7 –
siemens siplus s7-1500 cpu 1511f-1 pn firmware < 2.9.7 –
siemens siplus s7-1500 cpu 1513-1 pn firmware < 2.9.7 –
siemens siplus s7-1500 cpu 1513f-1 pn firmware < 2.9.7 –
siemens siplus s7-1500 cpu 1515f-2 pn firmware < 2.9.7 –
siemens siplus s7-1500 cpu 1515f-2 pn rail firmware < 2.9.7 –
siemens siplus s7-1500 cpu 1515f-2 pn t2 rail firmware < 2.9.7 –
siemens siplus s7-1500 cpu 1515r-2 pn firmware < 2.9.7 –
siemens siplus s7-1500 cpu 1515r-2 pn tx rail firmware < 2.9.7 –
siemens siplus s7-1500 cpu 1516-3 pn/dp firmware < 2.9.7 –
siemens siplus s7-1500 cpu 1516-3 pn/dp rail firmware < 2.9.7 –
siemens siplus s7-1500 cpu 1516-3 pn/dp tx rail firmware < 2.9.7 –
siemens siplus s7-1500 cpu 1516f-3 pn/dp firmware < 2.9.7 –
siemens siplus s7-1500 cpu 1516f-3 pn/dp rail firmware < 2.9.7 –
siemens siplus s7-1500 cpu 1517h-3 pn firmware < 3.0.3 –
siemens siplus s7-1500 cpu 1518-4 pn/dp firmware < 3.0.3 –
siemens siplus s7-1500 cpu 1518-4 pn/dp mfp firmware < 3.0.3 –
siemens siplus s7-1500 cpu 1518f-4 pn/dp firmware < 3.0.3 –
siemens siplus s7-1500 cpu 1518hf-4 pn firmware < 3.0.3 –

Tipo di vulnerabilità

CWE-190 Integer overflow o wraparound

Il prodotto esegue un calcolo che può superare il valore massimo rappresentabile da un intero, mentre la logica presume che il risultato sia sempre più grande del valore iniziale. In quel caso il valore può diventare molto piccolo o negativo.

Impatto sui sistemi

AmbitoImpatto
Disponibilità Interruzione del servizio: arresto o riavvio, Interruzione del servizio: esaurimento della memoria, Interruzione del servizio: instabilità
Integrità Modificare la memoria
Riservatezza, Disponibilità, Controllo degli accessi Eseguire codice o comandi non autorizzati, Aggirare i meccanismi di protezione
Disponibilità, Altro Alterare la logica di esecuzione, Interruzione del servizio: arresto o riavvio, Interruzione del servizio: esaurimento della CPU
Controllo degli accessi Aggirare i meccanismi di protezione
Controllo degli accessi Aggirare i meccanismi di protezione, Interruzione del servizio: arresto o riavvio

Come si previene

Requisiti Ensure that all protocols are strictly defined, such that all out-of-bounds behavior can be identified simply, and require strict conformance to the protocol.
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. If possible, choose a language or compiler that performs automatic bounds checking.
Architettura e progettazione · Librerie o framework Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. Use libraries or frameworks that make it easier to handle numbers without unexpected consequences. Examples include safe integer handling packages such as SafeInt (C++) or IntegerLib (C or C++).
Sviluppo · Validazione dell’input Perform input validation on any numeric input by ensuring that it is within the expected range. Enforce that the input meets both the minimum and maximum requirements for the expected range. Use unsigned integers where possible. This makes it easier to perform validation for integer overflows. When signed integers are required, ensure that the range check includes minimum values as well as maximum values.
Sviluppo Understand the programming language's underlying representation and how it interacts with numeric calculation (CWE-681). Pay close attention to byte size discrepancies, precision, signed/unsigned distinctions, truncation, conversion and casting between types, not-a-number calculations, and how the language handles numbers that are too large or too small for its underlying representation. Also be careful to account for 32-bit, 64-bit, and other potential differences that may affect the numeric representation.
Architettura e progettazione Per ogni controllo di sicurezza eseguito lato client, ripeti lo stesso controllo lato server, per evitare CWE-602: un attaccante può aggirare i controlli del client modificando i valori dopo il controllo o eliminando del tutto i controlli dal client, e inviare poi al server i valori modificati.
Sviluppo · Hardening della compilazione Examine compiler warnings closely and eliminate problems with potential security implications, such as signed / unsigned mismatch in memory operations, or use of uninitialized variables. Even if the weakness is rarely exploitable, a single failure may lead to the compromise of the entire system.

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

Tutte le 3.553 CVE di tipo CWE-190, con andamento e prevenzione

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