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

CVE-2020-5247

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:H/A:N 7.5 – Alta

Descrizione

In Puma (RubyGem) before 4.3.2 and before 3.12.3, if an application using Puma allows untrusted input in a response header, an attacker can use newline characters (i.e. `CR`, `LF` or`/r`, `/n`) to end the header and inject malicious content, such as additional headers or an entirely new response body. This vulnerability is known as HTTP Response Splitting. While not an attack in itself, response splitting is a vector for several other attacks, such as cross-site scripting (XSS). This is related to CVE-2019-16254, which fixed this vulnerability for the WEBrick Ruby web server. This has been fixed in versions 4.3.2 and 3.12.3 by checking all headers for line endings and rejecting headers with those characters.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
debian debian linux 9.0 –
fedoraproject fedora 30 –
fedoraproject fedora 31 –
fedoraproject fedora 32 –
puma puma <= 3.12.3 ruby
puma puma >= 4.0.0 <= 4.3.2 ruby
ruby-lang ruby <= 2.3.0 –
ruby-lang ruby >= 2.4.0 <= 2.4.7 –
ruby-lang ruby >= 2.5.0 <= 2.5.6 –
ruby-lang ruby >= 2.6.0 <= 2.6.4 –
ruby-lang ruby 2.7.0 preview1 –
Tutte le 94 vulnerabilità di Ruby-lang Ruby
Tutte le 14 vulnerabilità di Puma

Tipo di vulnerabilità

CWE-74 Injection: elementi speciali non neutralizzati in un output destinato a un altro componente

Il prodotto costruisce in tutto o in parte un comando, una struttura dati o un record con dati provenienti dall’esterno, senza neutralizzare gli elementi speciali che possono cambiare il modo in cui il componente successivo lo interpreta.

Impatto sui sistemi

AmbitoImpatto
Riservatezza Leggere i dati dell’applicazione
Controllo degli accessi Aggirare i meccanismi di protezione
In alcuni casi il codice iniettabile controlla l’autenticazione, il che può tradursi in una vulnerabilità sfruttabile da remoto.
Altro Alterare la logica di esecuzione
Integrità, Altro Altro
Non ripudio Nascondere le proprie attività
Spesso le azioni compiute dal codice iniettato non lasciano traccia nei log.

Come si previene

Requisiti Programming languages and supporting technologies might be chosen which are not subject to these issues.
Sviluppo Utilize an appropriate mix of allowlist and denylist parsing to filter control-plane syntax from all input.

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

Tutte le 4.105 CVE di tipo CWE-74, con andamento e prevenzione

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