Descrizione
CGI versions before 5.00 for Perl trust the client X-Forwarded-Host header in url, self_url, virtual_host and virtual_port. These take the host name and port from the X-Forwarded-Host request header when present, and otherwise from Host, without validating either. The URLs from url and self_url are the default redirect location and the start_html(-base=>1) base href, and the default start_form action when REQUEST_URI is not set. A client can poison shared caches, and URLs the application stores or sends, with redirects, links and scripts that point at a host it controls.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 6.1, EPSS 0.1% (percentile 3).
Versioni da aggiornare
- CGI: vulnerabili le versioni precedenti alla
5.00→ aggiornare alla5.00o successiva.
Indicazioni del vendor
Soluzione (testo originale del vendor):
Upgrade to CGI 5.00 or later.
Workaround (testo originale del vendor):
For deployments that cannot upgrade, strip X-Forwarded-Host at the web server or proxy unless it sets the header itself, and validate Host.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Sensibilizzare gli utenti sul phishing e bloccare via WAF i redirect verso domini esterni non attesi.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| — | CGI | < 5.00 | 5.00 |