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

CVE-2023-32735

6.5 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H 6.5 – Media

Descrizione

A vulnerability has been identified in SIMATIC STEP 7 Safety V16 (All versions < V16 Update 7), SIMATIC STEP 7 Safety V17 (All versions < V17 Update 7), SIMATIC STEP 7 Safety V18 (All versions < V18 Update 2), SIMATIC STEP 7 V16 (All versions < V16 Update 7), SIMATIC STEP 7 V17 (All versions < V17 Update 7), SIMATIC STEP 7 V18 (All versions < V18 Update 2), SIMATIC WinCC Unified V16 (All versions < V16 Update 7), SIMATIC WinCC Unified V17 (All versions < V17 Update 7), SIMATIC WinCC Unified V18 (All versions < V18 Update 2), SIMATIC WinCC V16 (All versions < V16.7), SIMATIC WinCC V17 (All versions < V17.7), SIMATIC WinCC V18 (All versions < V18 Update 2), SIMOCODE ES V16 (All versions < V16 Update 7), SIMOCODE ES V17 (All versions < V17 Update 7), SIMOCODE ES V18 (All versions < V18 Update 2), SIMOTION SCOUT TIA V5.4 SP1 (All versions), SIMOTION SCOUT TIA V5.4 SP3 (All versions), SIMOTION SCOUT TIA V5.5 SP1 (All versions), SINAMICS Startdrive V16 (All versions), SINAMICS Startdrive V17 (All versions), SINAMICS Startdrive V18 (All versions), SIRIUS Safety ES V17 (All versions < V17 Update 7), SIRIUS Safety ES V18 (All versions < V18 Update 2), SIRIUS Soft Starter ES V17 (All versions < V17 Update 7), SIRIUS Soft Starter ES V18 (All versions < V18 Update 2), Soft Starter ES V16 (All versions < V16 Update 7), TIA Portal Cloud V3.0 (All versions < V18 Update 2). Affected applications do not properly restrict the .NET BinaryFormatter when deserializing hardware configuration profiles. This could allow an attacker to cause a type confusion and execute arbitrary code within the affected application. This is the same issue that exists for .NET BinaryFormatter https://docs.microsoft.com/en-us/visualstudio/code-quality/ca2300.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
siemens simatic step 7 safety v16 < V16 Update 7 –
siemens simatic step 7 safety v17 < V17 Update 7 –
siemens simatic step 7 safety v18 < V18 Update 2 –
siemens simatic step 7 v16 < V16 Update 7 –
siemens simatic step 7 v17 < V17 Update 7 –
siemens simatic step 7 v18 < V18 Update 2 –
siemens simatic wincc unified v16 < V16 Update 7 –
siemens simatic wincc unified v17 < V17 Update 7 –
siemens simatic wincc unified v18 < V18 Update 2 –
siemens simatic wincc v16 < V16.7 –
siemens simatic wincc v17 < V17.7 –
siemens simatic wincc v18 < V18 Update 2 –
siemens simocode es v16 < V16 Update 7 –
siemens simocode es v17 < V17 Update 7 –
siemens simocode es v18 < V18 Update 2 –
siemens simotion scout tia v5.4 sp1 < * –
siemens simotion scout tia v5.4 sp3 < * –
siemens simotion scout tia v5.5 sp1 < * –
siemens sinamics startdrive v16 < * –
siemens sinamics startdrive v17 < * –
siemens sinamics startdrive v18 < * –
siemens sirius safety es v17 < V17 Update 7 –
siemens sirius safety es v18 < V18 Update 2 –
siemens sirius soft starter es v17 < V17 Update 7 –
siemens sirius soft starter es v18 < V18 Update 2 –
siemens soft starter es v16 < V16 Update 7 –
siemens tia portal cloud v3.0 < V18 Update 2 –

Tipo di vulnerabilità

CWE-502 Deserializzazione di dati non attendibili

Il prodotto deserializza dati di provenienza non attendibile senza verificare a sufficienza che il risultato sia valido; spesso questo permette di eseguire codice.

Impatto sui sistemi

AmbitoImpatto
Integrità Modificare i dati dell’applicazione, Stato imprevisto
Disponibilità Interruzione del servizio: esaurimento della CPU
Altro Dipende dal contesto

Come si previene

Architettura e progettazione · Sviluppo If available, use the signing/sealing features of the programming language to assure that deserialized data has not been tainted. For example, a hash-based message authentication code (HMAC) could be used to ensure that data has not been modified.
Sviluppo When deserializing data, populate a new object rather than just deserializing. The result is that the data flows through safe input validation and that the functions are safe.
Sviluppo Explicitly define a final object() to prevent deserialization.
Architettura e progettazione · Sviluppo Make fields transient to protect them from deserialization. An attempt to serialize and then deserialize a class containing transient fields will result in NULLs where the transient data should be. This is an excellent way to prevent time, environment-based, or sensitive variables from being carried over and used improperly.
Sviluppo Avoid having unnecessary types or gadgets (a sequence of instances and method invocations that can self-execute during the deserialization process, often found in libraries) available that can be leveraged for malicious ends. This limits the potential for unintended or unauthorized types and gadgets to be leveraged by the attacker. Add only acceptable classes to an allowlist. Note: new gadgets are constantly being discovered, so this alone is not a sufficient mitigation.
Architettura e progettazione · Sviluppo Employ cryptography of the data or code for protection. However, it's important to note that it would still be client-side security. This is risky because if the client is compromised then the security implemented on the client (the cryptography) can be bypassed.
Esercizio · Firewall Usa un firewall applicativo (WAF) in grado di rilevare attacchi contro questo tipo di vulnerabilità. È utile quando il codice non può essere corretto (perché controllato da terzi), come misura d’emergenza in attesa di interventi più completi, o come difesa aggiuntiva.

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

Tutte le 3.541 CVE di tipo CWE-502, con andamento e prevenzione

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