Descrizione
AnsibleForms is a self-hosted web application that turns automation into self-service forms. Prior to 6.2.1, AnsibleForms uses a public hard-coded fallback JWT signing secret from server/config/auth.config.js when ACCESS_TOKEN_SECRET is unset. An unauthenticated attacker can sign a self-contained token with privileged claims because server/src/auth/auth_jwt.js verifies the signature without reloading the user from the database, and server/src/lib/middleware.js trusts the token's roles and options for authorization. A forged token can therefore be accepted as an administrator session, resulting in authentication bypass and full privileged API access. This issue is fixed in version 6.2.1.
Come correggere
Priorità: Alta — pianificare la correzione entro pochi giorni. Motivazione: CVSS 9.8, EPSS 2.0% (percentile 81).
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:
- Non esporre l'interfaccia di gestione su Internet: consentire l'accesso solo da reti fidate e verificare la presenza di account, sessioni o chiavi non autorizzate.
- Ruotare credenziali e chiavi, limitare l'accesso di rete al servizio e verificare accessi effettuati con credenziali predefinite.
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/a9b4979165c4730b2abe1dbcfd053b4d3f9a5594
- 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-g27f-cjvv-42rf