Descrizione
A stored cross-site scripting vulnerability was identified in GitHub Enterprise Server that allowed an organization member with permission to manage custom-property definitions and edit property values to add an attacker-controlled SSH authentication key to the personal account of another member through HTML stored in a single-select custom-property option. Exploitation required another definition manager in the same organization to attempt to remove the poisoned option while it was in use and save the definition with a valid sudo session. Repository access through the added key depended on the permissions of the victim and independent authorization controls. This vulnerability affected supported GitHub Enterprise Server prior to 3.23 and was fixed in versions 3.19.16, 3.20.12, 3.21.10, and 3.22.5. This vulnerability was reported via the GitHub Bug Bounty program.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.3, EPSS 0.4% (percentile 39).
Versioni da aggiornare
- GitHub Enterprise Server: vulnerabili le versioni dalla
3.19.0precedenti alla3.19.*→ aggiornare alla3.19.16o successiva. - GitHub Enterprise Server: vulnerabili le versioni dalla
3.20.0precedenti alla3.20.*→ aggiornare alla3.20.12o successiva. - GitHub Enterprise Server: vulnerabili le versioni dalla
3.21.0precedenti alla3.21.*→ aggiornare alla3.21.10o successiva. - GitHub Enterprise Server: vulnerabili le versioni dalla
3.22.0precedenti alla3.22.*→ aggiornare alla3.22.5o successiva.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Applicare una Content-Security-Policy restrittiva e regole WAF contro XSS; invitare gli utenti a non aprire link sospetti verso l'applicazione.
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 |
|---|---|---|---|
| GitHub | Enterprise Server | ≥ 3.19.0 < 3.19.* | 3.19.16 |
| GitHub | Enterprise Server | ≥ 3.20.0 < 3.20.* | 3.20.12 |
| GitHub | Enterprise Server | ≥ 3.21.0 < 3.21.* | 3.21.10 |
| GitHub | Enterprise Server | ≥ 3.22.0 < 3.22.* | 3.22.5 |
Riferimenti
- Riferimentohttps://docs.github.com/en/enterprise-server@3.19/admin/release-notes#3.19.16
- Riferimentohttps://docs.github.com/en/enterprise-server@3.20/admin/release-notes#3.20.12
- Riferimentohttps://docs.github.com/en/enterprise-server@3.21/admin/release-notes#3.21.10
- Riferimentohttps://docs.github.com/en/enterprise-server@3.22/admin/release-notes#3.22.5