Descrizione
A Host header injection vulnerability exists in CTFd 3.7.5, due to the application failing to properly validate or sanitize the Host header. An attacker can manipulate the Host header in HTTP requests, which may lead to phishing attacks, reset password, or cache poisoning. NOTE: the Supplier's position is that the end user is supposed to edit the NGINX configuration template to set server_name (with this setting, Host header injection cannot occur).
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