Descrizione
AnsibleForms is a self-hosted web application that turns automation into self-service forms. Prior to 6.2.1, AnsibleForms allows a user with repository management privileges to inject shell syntax through repository uri, branch, name, or host values processed by server/src/models/repo.model.js. The Repo.clone and Repo.addKnownHosts paths interpolate these values into git and ssh-keyscan command strings, and server/src/lib/cmd.js executes the strings through Cmd.executeSilentCommand with shell interpretation enabled. Creating or updating a repository can therefore execute arbitrary commands as the AnsibleForms application process. This issue is fixed in version 6.2.1.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.2, EPSS 0.5% (percentile 40).
Versioni da aggiornare
- ansibleguy76 ansibleforms: vulnerabile la versione
< 6.2.1→ installare l'ultima release supportata dal vendor.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Limitare l'accesso all'interfaccia vulnerabile (VPN o allowlist IP), disabilitare le funzionalità non necessarie e monitorare processi anomali avviati dal servizio.
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 |
|---|---|---|---|
| ansibleguy76 | ansibleforms | < 6.2.1 | — |
Riferimenti
- Riferimentohttps://github.com/ansibleforms/ansibleforms/commit/27d2064f4714c40356ac928545287548f817819d
- Riferimentohttps://github.com/ansibleforms/ansibleforms/pull/473
- Riferimentohttps://github.com/ansibleforms/ansibleforms/releases/tag/6.2.1
- Riferimentohttps://github.com/ansibleforms/ansibleforms/security/advisories/GHSA-56pr-p4x6-mwm6