Descrizione
A **server-side request forgery** flaw has been found in the get_remote_artifact_url() function in pulp_python/app/models.py of the pull-through caching feature in the **pulp_python** package. The function uses the redirect query parameter from the client request as the URL to download. A network attacker or user who can reach the content app of a Python distribution that has a remote can choose that URL. The content app downloads it and returns the response. When the remote has a username and password, the download sends those credentials to the host in the URL. When the remote policy is immediate, the default, or on_demand, the file is saved into the distribution's repository and later clients are served that file. The project name and version come from the file, and the filename comes from the request path. A filename the repository already stores is served from the stored file.
Come correggere
Priorità: Alta — pianificare la correzione entro pochi giorni. Motivazione: CVSS 10.0.
Versioni da aggiornare
- Pulp pulp_python: vulnerabili le versioni dalla
3.6.0precedenti alla3.11.10→ aggiornare alla3.11.10o successiva. - Pulp pulp_python: vulnerabili le versioni dalla
3.12.0precedenti alla3.12.11→ aggiornare alla3.12.11o successiva. - Pulp pulp_python: vulnerabili le versioni dalla
3.13.0precedenti alla3.13.9→ aggiornare alla3.13.9o successiva. - Pulp pulp_python: vulnerabili le versioni dalla
3.14.0precedenti alla3.19.8→ aggiornare alla3.19.8o successiva. - Pulp pulp_python: vulnerabili le versioni dalla
3.20.0precedenti alla3.27.10→ aggiornare alla3.27.10o successiva. - Pulp pulp_python: vulnerabili le versioni dalla
3.28.0precedenti alla3.36.7→ aggiornare alla3.36.7o successiva. - Pulp pulp_python: vulnerabili le versioni dalla
3.37.0precedenti alla3.38.2→ aggiornare alla3.38.2o successiva.
Indicazioni del vendor
Workaround (testo originale del vendor):
Clear the remote field on each Python distribution. Set it to null. The content handler downloads a client-supplied redirect URL only when that field is set, so pull-through caching stops. Packages already stored in the repository continue to be served. Customers who need pull-through caching should apply the update when a release contains the signed-link fix.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Applicare filtri sul traffico in uscita del server e bloccare l'accesso agli endpoint di metadati cloud (169.254.169.254).
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 |
|---|---|---|---|
| Pulp | pulp_python | ≥ 3.6.0 < 3.11.10 | 3.11.10 |
| Pulp | pulp_python | ≥ 3.12.0 < 3.12.11 | 3.12.11 |
| Pulp | pulp_python | ≥ 3.13.0 < 3.13.9 | 3.13.9 |
| Pulp | pulp_python | ≥ 3.14.0 < 3.19.8 | 3.19.8 |
| Pulp | pulp_python | ≥ 3.20.0 < 3.27.10 | 3.27.10 |
| Pulp | pulp_python | ≥ 3.28.0 < 3.36.7 | 3.36.7 |
| Pulp | pulp_python | ≥ 3.37.0 < 3.38.2 | 3.38.2 |