Descrizione
AnsibleForms is a self-hosted web application that turns automation into self-service forms. Prior to 6.2.1, AnsibleForms stores attacker-influenceable job output that server/src/lib/common.js processes through formatOutput without HTML escaping and client/src/components/AppAnsibleOutput.vue renders through v-html. An authenticated user can submit job input that is echoed into persistent output, causing script execution when another user views the job. Additional designer-controlled HTML and expression values reach v-html in client/src/components/AppForm.vue and client/src/components/BsInputForForm.vue without sanitization. Because Content Security Policy is disabled and the JWT is stored in localStorage, script execution can steal a victim's token and take over the account, including an administrator account. This issue is fixed in version 6.2.1.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.7, EPSS 0.3% (percentile 20).
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:
- 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 |
|---|---|---|---|
| ansibleguy76 | ansibleforms | < 6.2.1 | — |
Riferimenti
- Riferimentohttps://github.com/ansibleforms/ansibleforms/commit/cab0a86abd4f4154aa10a5a6af658ac734bd96f0
- 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-wcmj-wqvw-6c88