Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| opsre / go-ldap-admin | affected 0 through 0.6.2 |
CWE
CWE-321
References
- 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
ADP enrichment
No English description supplied.