Description
go-ldap-admin through 0.6.2 embeds a hard-coded RSA private key, published in the public repository, that protects encrypted login passwords. Unauthenticated attackers who capture encrypted passwords can decrypt them offline or via the /base/decryptpwd endpoint, recovering cleartext LDAP credentials for reuse.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
opsre go-ldap-admin
Default version status: unaffected
0 to ≤ 0.6.2affected
pkg:golang/github.com/eryajf/go-ldap-adminReferences
- https://hackmd.io/@hieuPenguinnn/go-ldap-admin-hardcoded-rsa-key-decrypt-oracle-and-unauth-password-reset ↗
- https://github.com/opsre/go-ldap-admin/blob/v0.6.2/config/config.go#L20-L24 ↗
- https://github.com/opsre/go-ldap-admin/blob/v0.6.2/config/config.go#L76-L77 ↗
- https://github.com/opsre/go-ldap-admin/blob/v0.6.2/routes/base_routes.go#L50 ↗
- https://github.com/opsre/go-ldap-admin/blob/v0.6.2/logic/base_logic.go#L188-L199 ↗
- https://github.com/opsre/go-ldap-admin ↗
- https://www.vulncheck.com/advisories/go-ldap-admin-through-0.6.2-hard-coded-rsa-private-key-via-base-decryptpwd ↗