Descrizione
rsync before 3.5.0 contains a time-of-check to time-of-use (TOCTOU) race condition vulnerability in the non-daemon receiver's destination directory handling that allows an attacker who can manipulate destination path parent components to redirect file writes to unintended locations. Attackers can substitute a symlink for a component of the destination path between the path resolution and chdir() call, causing the receiver's working directory to be established outside the intended destination tree so that subsequent relative-path file writes land in unintended filesystem locations.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 6.3.
Versioni da aggiornare
- Samba Rsync: vulnerabili le versioni precedenti alla
3.5.0→ aggiornare alla3.5.0o successiva.
Patch e advisory
- Advisory del vendor: github.com/RsyncProject/rsync/security/advisori…
- Note di rilascio: github.com/RsyncProject/rsync/releases/tag/v3.5.0
- Advisory di terze parti: www.vulncheck.com/advisories/rsync-toctou-race-conditi…
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Limitare l'accesso di rete al servizio e applicare limiti di connessione per ridurre la finestra di sfruttamento.
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 |
|---|---|---|---|
| Samba | Rsync | < 3.5.0 | 3.5.0 |
Riferimenti
- Advisory del vendorhttps://github.com/RsyncProject/rsync/security/advisories/GHSA-w75h-ccff-w53m
- Note di rilasciohttps://github.com/RsyncProject/rsync/releases/tag/v3.5.0
- Advisory di terze partihttps://www.vulncheck.com/advisories/rsync-toctou-race-condition-via-destination-directory-handling