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

CVE-2022-34820

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

Descrizione

A vulnerability has been identified in SIMATIC CP 1242-7 V2 (All versions < V3.3.46), SIMATIC CP 1243-1 (All versions < V3.3.46), SIMATIC CP 1243-7 LTE EU (All versions < V3.3.46), SIMATIC CP 1243-7 LTE US (All versions < V3.3.46), SIMATIC CP 1243-8 IRC (All versions < V3.3.46), SIMATIC CP 1542SP-1 IRC (All versions >= V2.0 < V2.2.28), SIMATIC CP 1543-1 (All versions < V3.0.22), SIMATIC CP 1543SP-1 (All versions >= V2.0 < V2.2.28), SIPLUS ET 200SP CP 1542SP-1 IRC TX RAIL (All versions >= V2.0 < V2.2.28), SIPLUS ET 200SP CP 1543SP-1 ISEC (All versions >= V2.0 < V2.2.28), SIPLUS ET 200SP CP 1543SP-1 ISEC TX RAIL (All versions >= V2.0 < V2.2.28), SIPLUS NET CP 1242-7 V2 (All versions < V3.3.46), SIPLUS NET CP 1543-1 (All versions < V3.0.22), SIPLUS S7-1200 CP 1243-1 (All versions < V3.3.46), SIPLUS S7-1200 CP 1243-1 RAIL (All versions < V3.3.46). The application does not correctly escape some user provided fields during the authentication process. This could allow an attacker to inject custom commands and execute arbitrary code with elevated privileges.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
siemens simatic cp 1242-7 v2 firmware < 3.3.46 –
siemens simatic cp 1243-1 firmware < 3.3.46 –
siemens simatic cp 1243-7 lte eu firmware < 3.3.46 –
siemens simatic cp 1243-7 lte us firmware < 3.3.46 –
siemens simatic cp 1243-8 irc firmware < 3.3.46 –
siemens simatic cp 1542sp-1 irc firmware >= 2.0 < 2.2.28 –
siemens simatic cp 1543-1 firmware < 3.0.22 –
siemens simatic cp 1543sp-1 firmware >= 2.0 < 2.2.28 –
siemens siplus et 200sp cp 1542sp-1 irc tx rail firmware >= 2.0 < 2.2.28 –
siemens siplus et 200sp cp 1543sp-1 isec firmware >= 2.0 < 2.2.28 –
siemens siplus et 200sp cp 1543sp-1 isec tx rail firmware >= 2.0 < 2.2.28 –
siemens siplus net cp 1242-7 v2 firmware < 3.3.46 –
siemens siplus net cp 1543-1 firmware < 3.0.22 –
siemens siplus s7-1200 cp 1243-1 firmware < 3.3.46 –
siemens siplus s7-1200 cp 1243-1 rail firmware < 3.3.46 –
Tutte le 10 vulnerabilità di Siemens Simatic Cp 1243-1 Firmware

Tipo di vulnerabilità

CWE-116 Codifica o escaping dell’output impropri

Il prodotto prepara un messaggio strutturato per un altro componente, ma la codifica o l’escaping dei dati manca o è errato, e la struttura del messaggio non viene preservata.

Impatto sui sistemi

AmbitoImpatto
Integrità, Riservatezza, Disponibilità, Controllo degli accessi Modificare i dati dell’applicazione, Eseguire codice o comandi non autorizzati, Aggirare i meccanismi di protezione

Come si previene

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. For example, consider using the ESAPI Encoding control or a similar tool, library, or framework. These will help the programmer encode outputs in a manner less prone to error. Alternately, use built-in functions, but consider using wrappers in case those functions are discovered to have a vulnerability.
Architettura e progettazione · Parametrizzazione If available, use structured mechanisms that automatically enforce the separation between data and code. These mechanisms may be able to provide the relevant quoting, encoding, and validation automatically, instead of relying on the developer to provide this capability at every point where output is generated. For example, stored procedures can enforce database query structure and reduce the likelihood of SQL injection.
Architettura e progettazione · Sviluppo Understand the context in which your data will be used and the encoding that will be expected. This is especially important when transmitting data between different components, or when generating outputs that can contain multiple encodings at the same time, such as web pages or multi-part mail messages. Study all expected communication protocols and data representations to determine the required encoding strategies.
Architettura e progettazione In some cases, input validation may be an important strategy when output encoding is not a complete solution. For example, you may be providing the same output that will be processed by multiple consumers that use different encodings or representations. In other cases, you may be required to allow user-supplied input to contain control information, such as limited HTML tags that support formatting in a wiki or bulletin board. When this type of requirement must be met, use an extremely strict allowlist to limit which control sequences can be used. Verify that the resulting syntactic structure is what you expect. Use your normal encoding methods for the remainder of the input.
Architettura e progettazione Use input validation as a defense-in-depth measure to reduce the likelihood of output encoding errors (see CWE-20).
Requisiti Fully specify which encodings are required by components that will be communicating with each other.
Sviluppo When exchanging data between components, ensure that both components are using the same character encoding. Ensure that the proper encoding is applied at each interface. Explicitly set the encoding you are using whenever the protocol allows you to do so.

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

Tutte le 425 CVE di tipo CWE-116, con andamento e prevenzione

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