Descrizione
When the proxy option isn't set, HttpClient takes the proxy from environment variables like http_proxy or HTTP_PROXY. On web servers, it ignores HTTP_PROXY, because PHP puts the Proxy request header there (the httpoxy issue). On the CLI SAPI, it read HTTP_PROXY from $_SERVER, where PHP also puts the environment. HTTP workers that run under the CLI SAPI put the headers of each request in $_SERVER too. This is the case of spiral/roadrunner-http, which the RoadRunner runner of php-runtime uses, and of baldinof/roadrunner-bundle and php-pm. A client could then send a Proxy header to choose the proxy of the requests that the application sent while handling its request. That proxy received the full requests to http:// URLs, with their credentials, and could forge the responses. For https:// URLs, it learned the host and port through CONNECT. NativeHttpClient is affected since Symfony 4.3.0, AmpHttpClient since 5.1.0, and CurlHttpClient since 4.4.40, 5.4.7 and 6.0.7. On the CLI SAPI, HTTP_PROXY is now read from the environment with $_ENV and getenv(), never from $_SERVER. Other SAPIs still ignore it.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.3, EPSS 0.6% (percentile 45).
Versioni da aggiornare
- Symfony symfony/http-client: vulnerabili le versioni dalla
4.3.0precedenti alla5.4.57→ aggiornare alla5.4.57o successiva. - Symfony symfony/http-client: vulnerabili le versioni dalla
6.0.0precedenti alla6.4.51→ aggiornare alla6.4.51o successiva. - Symfony symfony/http-client: vulnerabili le versioni dalla
7.0.0precedenti alla7.4.24→ aggiornare alla7.4.24o successiva. - Symfony symfony/http-client: vulnerabili le versioni dalla
8.0.0precedenti alla8.1.12→ aggiornare alla8.1.12o successiva. - Symfony symfony/symfony: vulnerabili le versioni dalla
4.3.0precedenti alla5.4.57→ aggiornare alla5.4.57o successiva. - Symfony symfony/symfony: vulnerabili le versioni dalla
6.0.0precedenti alla6.4.51→ aggiornare alla6.4.51o successiva. - Symfony symfony/symfony: vulnerabili le versioni dalla
7.0.0precedenti alla7.4.24→ aggiornare alla7.4.24o successiva. - Symfony symfony/symfony: vulnerabili le versioni dalla
8.0.0precedenti alla8.1.12→ aggiornare alla8.1.12o successiva.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre l'esposizione del componente vulnerabile (segmentazione, accesso solo da reti fidate) finché la patch non è applicata.
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 |
|---|---|---|---|
| Symfony | symfony/http-client | ≥ 4.3.0 < 5.4.57 | 5.4.57 |
| Symfony | symfony/http-client | ≥ 6.0.0 < 6.4.51 | 6.4.51 |
| Symfony | symfony/http-client | ≥ 7.0.0 < 7.4.24 | 7.4.24 |
| Symfony | symfony/http-client | ≥ 8.0.0 < 8.1.12 | 8.1.12 |
| Symfony | symfony/symfony | ≥ 4.3.0 < 5.4.57 | 5.4.57 |
| Symfony | symfony/symfony | ≥ 6.0.0 < 6.4.51 | 6.4.51 |
| Symfony | symfony/symfony | ≥ 7.0.0 < 7.4.24 | 7.4.24 |
| Symfony | symfony/symfony | ≥ 8.0.0 < 8.1.12 | 8.1.12 |