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.

Testo originale del record CVE (in inglese).

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 alla 5.00 o 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

  1. Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
  2. Confrontare la versione installata con quelle indicate sopra.
  3. Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
  4. Ripetere la scansione per confermare la correzione.

Configurazioni interessate

VendorProdottoVersioni vulnerabiliCorretta in
— CGI < 5.00 5.00

Riferimenti