Descrizione
http4k (Maven package org.http4k:http4k-core) before 6.49.0.0, 5.42.0.0 and 4.51.0.0 uses substring (Contains) matching on the Host header by default in reverseProxy() and reverseProxyRouting() when dispatching to configured virtual hosts. If these functions are deployed as a public-facing inbound HTTP handler with two or more configured virtual hosts, a remote attacker can supply a Host header that merely contains a configured vhost name (for example Host: admin.evil.com for a vhost configured as "admin") and be routed to that vhost, bypassing routing-based authorization. The intended outbound-dispatch and test-time uses, where the Host value is set by the calling application, are not affected.
Tipo di vulnerabilità
CWE-444
HTTP request smuggling: interpretazione incoerente delle richieste HTTP
Il prodotto fa da intermediario HTTP (proxy, firewall) tra client e server, ma interpreta le richieste o risposte malformate in modo diverso da come le interpreterà la destinazione finale: un attaccante può così far passare richieste nascoste.
Impatto sui sistemi
| Ambito | Impatto |
| Integrità, Non ripudio, Controllo degli accessi |
Stato imprevisto, Nascondere le proprie attività, Aggirare i meccanismi di protezione |
Come si previene
Sviluppo
Use a web server that employs a strict HTTP parsing procedure, such as Apache.
Sviluppo
Use only SSL communication.
Sviluppo
Terminate the client session after each request.
Configurazione del sistema
Turn all pages to non-cacheable.
Tutte le 452 CVE di tipo CWE-444, con andamento e prevenzione