1. Archivio CVE
  2. 2020
  3. CVE-2020-9484

CVE-2020-9484

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

Descrizione

When using Apache Tomcat versions 10.0.0-M1 to 10.0.0-M4, 9.0.0.M1 to 9.0.34, 8.5.0 to 8.5.54 and 7.0.0 to 7.0.103 if a) an attacker is able to control the contents and name of a file on the server; and b) the server is configured to use the PersistenceManager with a FileStore; and c) the PersistenceManager is configured with sessionAttributeValueClassNameFilter="null" (the default unless a SecurityManager is used) or a sufficiently lax filter to allow the attacker provided object to be deserialized; and d) the attacker knows the relative file path from the storage location used by FileStore to the file the attacker has control over; then, using a specifically crafted request, the attacker will be able to trigger remote code execution via deserialization of the file under their control. Note that all of conditions a) to d) must be true for the attack to succeed.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
apache tomcat >= 7.0.0 < 7.0.108 –
apache tomcat >= 8.5.0 < 8.5.63 –
apache tomcat >= 9.0.1 < 9.0.43 –
apache tomcat 9.0.0 milestone1 –
apache tomcat 9.0.0 milestone10 –
apache tomcat 9.0.0 milestone11 –
apache tomcat 9.0.0 milestone12 –
apache tomcat 9.0.0 milestone13 –
apache tomcat 9.0.0 milestone14 –
apache tomcat 9.0.0 milestone15 –
apache tomcat 9.0.0 milestone16 –
apache tomcat 9.0.0 milestone17 –
apache tomcat 9.0.0 milestone18 –
apache tomcat 9.0.0 milestone19 –
apache tomcat 9.0.0 milestone2 –
apache tomcat 9.0.0 milestone20 –
apache tomcat 9.0.0 milestone21 –
apache tomcat 9.0.0 milestone22 –
apache tomcat 9.0.0 milestone23 –
apache tomcat 9.0.0 milestone24 –
apache tomcat 9.0.0 milestone25 –
apache tomcat 9.0.0 milestone26 –
apache tomcat 9.0.0 milestone27 –
apache tomcat 9.0.0 milestone3 –
apache tomcat 9.0.0 milestone4 –
apache tomcat 9.0.0 milestone5 –
apache tomcat 9.0.0 milestone6 –
apache tomcat 9.0.0 milestone7 –
apache tomcat 9.0.0 milestone8 –
apache tomcat 9.0.0 milestone9 –
apache tomcat 10.0.0 milestone1 –
apache tomcat 10.0.0 milestone2 –
apache tomcat 10.0.0 milestone3 –
apache tomcat 10.0.0 milestone4 –
canonical ubuntu linux 16.04 –
canonical ubuntu linux 20.04 –
debian debian linux 8.0 –
debian debian linux 9.0 –
debian debian linux 10.0 –
fedoraproject fedora 31 –
fedoraproject fedora 32 –
mcafee epolicy orchestrator 5.9.0 –
mcafee epolicy orchestrator 5.9.1 –
mcafee epolicy orchestrator 5.10.0 –
mcafee epolicy orchestrator 5.10.0 update_1 –
mcafee epolicy orchestrator 5.10.0 update_2 –
mcafee epolicy orchestrator 5.10.0 update_3 –
opensuse leap 15.1 –
oracle agile engineering data management 6.2.1.0 –
oracle agile product lifecycle management 9.3.3 –
oracle agile product lifecycle management 9.3.5 –
oracle agile product lifecycle management 9.3.6 –
oracle communications cloud native core binding support function 1.10.0 –
oracle communications cloud native core policy 1.14.0 –
oracle communications diameter signaling router >= 8.0.0.0 <= 8.4.0.5 –
oracle communications element manager >= 8.2.0 <= 8.2.2 –
oracle communications instant messaging server 10.0.1.4.0 –
oracle communications session report manager >= 8.2.0 <= 8.2.2 –
oracle communications session route manager >= 8.2.0 <= 8.2.2 –
oracle database 21c –
oracle database 12.2.0.1 –
oracle database 19c –
oracle fmw platform 12.2.1.3.0 –
oracle fmw platform 12.2.1.4.0 –
oracle hospitality guest access 4.2.0 –
oracle hospitality guest access 4.2.1 –
oracle instantis enterprisetrack >= 17.1 <= 17.3 –
oracle managed file transfer 12.2.1.3.0 –
oracle managed file transfer 12.2.1.4.0 –
oracle mysql enterprise monitor <= 8.0.21 –
oracle retail order broker 15.0 –
oracle siebel apps - marketing <= 21.9 –
oracle siebel ui framework <= 20.12 –
oracle transportation management 6.3.7 –
oracle workload manager 12.2.0.1 –
oracle workload manager 18c –
oracle workload manager 19c –
Tutte le 274 vulnerabilità di Apache Tomcat

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.519 CVE di tipo CWE-502, con andamento e prevenzione

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