Descrizione
Sonatype Nexus Repository 3 builds some absolute URLs in REST API and repository browse responses from HTTP host headers supplied by the client.
When a shared caching proxy in front of Nexus Repository stores such a response, other users can receive URLs that point to a host chosen by an attacker.
No account is needed to send the request.
Version 3.99.0 marks these responses as not cacheable.
To stop host headers from being used in generated URLs, an administrator must also set a Base URL and turn on its Force setting.
Tipo di vulnerabilità
CWE-644
Improper Neutralization of HTTP Headers for Scripting Syntax
The product does not neutralize or incorrectly neutralizes web scripting syntax in HTTP headers that can be used by web browser components that can process raw headers, such as Flash.
Impatto sui sistemi
| Ambito | Impatto |
| Integrità, Riservatezza, Disponibilità |
Eseguire codice o comandi non autorizzati |
| Riservatezza |
Leggere i dati dell’applicazione |
Come si previene
Architettura e progettazione
Carefully control data that is being placed both in HTTP response headers and in the HTTP response body to ensure that no scripting syntax is present, taking various encodings into account. Perform output validation in order to filter/escape/encode unsafe data that is being passed from the server in an HTTP response header.
Architettura e progettazione
Disable script execution functionality in the clients' browser.
Tutte le 46 CVE di tipo CWE-644, con andamento e prevenzione