Descrizione
Nhost is an open source Firebase alternative with GraphQL. Prior to version 0.49.1, Nhost automatically links an incoming OAuth identity to an existing Nhost account when the email addresses match. This is only safe when the email has been verified by the OAuth provider. Nhost's controller trusts a profile.EmailVerified boolean that is set by each provider adapter. The vulnerability is that several provider adapters do not correctly populate this field they either silently drop a verified field the provider API actually returns (Discord), or they fall back to accepting unconfirmed emails and marking them as verified (Bitbucket). Two Microsoft providers (AzureAD, EntraID) derive the email from non-ownership-proving fields like the user principal name, then mark it verified. The result is that an attacker can present an email they don't own to Nhost, have the OAuth identity merged into the victim's account, and receive a full authenticated session. This issue has been patched in version 0.49.1.
Come correggere
Priorità: Alta — pianificare la correzione entro pochi giorni. Motivazione: CVSS 9.8.
Versioni da aggiornare
- Nhost Nhost/Auth: vulnerabili le versioni precedenti alla
0.49.1→ aggiornare alla0.49.1o successiva.
Patch e advisory
- Patch: github.com/nhost/nhost/commit/ec8dab3f2cf46e113…
- Note di rilascio: github.com/nhost/nhost/releases/tag/auth%400.49.1
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.
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 |
|---|---|---|---|
| Nhost | Nhost/Auth | < 0.49.1 | 0.49.1 |
Riferimenti
- Patchhttps://github.com/nhost/nhost/commit/ec8dab3f2cf46e1131ddaf893d56c37aa00380b2
- Exploit pubblicohttps://github.com/nhost/nhost/pull/4162
- Exploit pubblicohttps://github.com/nhost/nhost/security/advisories/GHSA-6g38-8j4p-j3pr
- Note di rilasciohttps://github.com/nhost/nhost/releases/tag/auth%400.49.1