Descrizione
The Vert.x Web static handler component cache can be manipulated to deny the access to static files served by the handler using specifically crafted request URI.
The issue comes from an improper implementation of the C. rule of section 5.2.4 of RFC3986 and is fixed in Vert.x Core component (used by Vert.x Web): https://github.com/eclipse-vertx/vert.x/pull/5895
Steps to reproduce
Given a file served by the static handler, craft an URI that introduces a string like bar%2F..%2F after the last / char to deny the access to the URI with an HTTP 404 response. For example https://example.com/foo/index.html can be denied with https://example.com/foo/bar%2F..%2Findex.html
Mitgation
Disabling Static Handler cache fixes the issue.
StaticHandler staticHandler = StaticHandler.create().setCachingEnabled(false);
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