Descrizione
When a release was edited, the files of the attachments to remove were deleted by the identifiers submitted in the form rather than by the attachments verified to belong to the release. A user with write access to the releases of any repository, including their own, could submit a crafted identifier that resolves to the stored file of another attachment and delete it, provided they know that attachment's UUID. The attachment record stayed, so downloads of the affected issue, comment or release file failed. Release edits now only delete the files of attachments that belong to the release.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.7, EPSS 0.3% (percentile 21).
Versioni da aggiornare
- Gitea Gitea: vulnerabili le versioni dalla
1.15.0precedenti alla28.4.0→ aggiornare alla28.4.0o successiva.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Filtrare le sequenze di path traversal sul reverse proxy/WAF ed eseguire il servizio con permessi minimi sul filesystem.
- Restringere l'accesso al componente, applicare il principio del minimo privilegio e controllare i log per operazioni non autorizzate.
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 |
|---|---|---|---|
| Gitea | Gitea | ≥ 1.15.0 < 28.4.0 | 28.4.0 |
Riferimenti
- Riferimentohttps://blog.gitea.com/release-of-28.4.0/
- Riferimentohttps://github.com/go-gitea/gitea/pull/40120
- Riferimentohttps://github.com/go-gitea/gitea/pull/40268
- Riferimentohttps://github.com/go-gitea/gitea/releases/tag/v28.4.0
- Riferimentohttps://github.com/go-gitea/gitea/security/advisories/GHSA-4p89-xcq8-xfhm