GHSA-WX48-R3QH-JVH5
LDAP StartTLS return value discarded, silent plaintext bind on downgrade
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-WX48-R3QH-JVH5 divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
`Ldap::connectToLdap()` called `ldap_start_tls($connection)` and discarded the return value. PHP's `ldap_start_tls()` returns `false` when the LDAP server does not negotiate TLS (for example, when an on-path attacker responds to the StartTLS extended request with `Protocol error`, or when the server does not advertise the StartTLS extension). Snipe-IT then proceeded to `ldap_bind()` on the same connection, transmitting the bind credentials in cleartext.
Impact
Two credential streams were exposed on the network:
- The LDAP service-account credentials (`ldap_uname` / `ldap_pword`) used for the search bind, on every search.
- Every end-user password submitted through `findAndBindUserLdap()`, on every interactive login.
The user-facing flow was silent: the LDAP bind succeeded, so users saw normal login behaviour while their passwords were exfiltrated on the wire.
Affected
- `app/Models/Ldap.php::connectToLdap()`
Affected versions: `<= 8.6.2`.
Fix
Fixed in commit `91ea06904f`. The `ldap_start_tls()` return value is now checked and a `STARTTLS Failed.` exception is thrown when the negotiation does not succeed, matching the pattern already used by `LdapTroubleshooter`.
Patched in `8.6.3` and later.
Conditions for exploitability
- LDAP authentication enabled and configured (`ldap_enabled = 1`) with `ldap_tls = 1`.
- Network path between Snipe-IT and the LDAP server reachable to an attacker (shared L2 segment, compromised intermediate hop, foothold inside the same VPC or subnet).
- The LDAP server either does not negotiate StartTLS, or does but an on-path attacker responds to the StartTLS extended request with `Protocol error` before the real server replies.
References
- CWE-757 (Selection of Less-Secure Algorithm During Negotiation)
- CWE-319 (Cleartext Transmission of Sensitive Information)
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Estado del parche por paquete
La fuente no informa paquetes ni versiones corregidas.
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/grokability/snipe-it/security/advisories/GHSA-wx48-r3qh-jvh5Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
