Hail relies on OIDC email claims to verify the validity of a user's domain.
Impact
All Hail Batch clusters are affected. An attacker is able to:
- Create one or more accounts with Hail Batch without corresponding real accounts in the organization.
For example, a user could create a Microsoft or Google account and then change their email to "inconspicuous@example.org". This Microsoft or Google account can then be used to create a Hail Batch account in Hail Batch clusters whose organization domain is "example.org".
In Google, this attack is partially mitigated because Google requires users to verify ownership of their Google account. However, a valid user is able to create multiple distinct Hail Batch accounts by creating multiple distinct Google accounts using email addresses of the form "real_user_email_name+random_id@example.org".
In Microsoft, this attack requires Azure AD Administrator access to an Azure AD Tenant. The Azure AD Administrator is permitted to change the email address of an account to any other email address without verification. An attacker can create an Azure Tenant for free.
- The attacker does not have access to any private data (because the new service principals or service accounts are not granted any privileges).
- If trial Hail Batch billing projects are enabled, the attacker does have the ability to run jobs and thus spend money. An attacker can create as many accounts as Microsoft or Google permit.
- The attacker cannot impersonate another user because, in Azure, we use the
subfrom the OAuth2 response, and, in Google, Google does an email verification.
Remediation
- Apply this patch to prevent third-party attackers from creating accounts.
- Audit your users list https://auth.example.org/users for user accounts whose login ids are not valid login ids with your identity provider. Delete such users.
A forthcoming change will prevent users from creating multiple accounts using Google's + email redirection.
Workarounds
None.
References
- https://trufflesecurity.com/blog/google-oauth-is-broken-sort-of/
- https://www.descope.com/blog/post/noauth
- https://developers.google.com/identity/openid-connect/openid-connect#an-id-tokens-payload
- https://learn.microsoft.com/en-us/entra/identity-platform/access-token-claims-reference#payload-claims
[1] Hail Batch must separately stop using emails and start using the OAuth2 sub in Google. This is a known deficiency. In particular, if an email is re-used by the organization for a new user, the new user could access the old user's Hail Batch account.
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| Python (PyPI) | hail | < 0.2.127 | 0.2.127 |
Referencias
- https://github.com/hail-is/hail/security/advisories/GHSA-487p-qx68-5vjw
- https://nvd.nist.gov/vuln/detail/CVE-2023-51663
- https://github.com/hail-is/hail/commit/0dcc17ff24564b6f5592261d7975e8afd0f95de7
- https://github.com/hail-is/hail
- https://github.com/pypa/advisory-database/tree/main/vulns/hail/PYSEC-2023-271.yaml
- Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L- Debilidad (CWE)
CWE-289- Plataforma
- Python (PyPI)
- Paquete
hail- Publicada
- 29.12.2023
- Actualizado
- 11.10.2026 15:17
Fuentes y licencias
OSV / GitHub Advisory Database - PYSEC-2023-271 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-487p-qx68-5vjw - CC BY 4.0
Historial de vulnerabilidades: hail
Todas las vulnerabilidades publicadas de este paquete (Python (PyPI)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
Esta es la única vulnerabilidad conocida de este paquete.
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.