openldap: Multiple vulnerabilities (CVE-2019-13057, CVE-2019-13565)
CVE-2019-13565: ACL restrictions bypass due to sasl_ssf value being set permanently
An issue was discovered in OpenLDAP 2.x before 2.4.48. When using SASL authentication and session encryption, and relying on the SASL security layers in slapd access controls, it is possible to obtain access that would otherwise be denied via a simple bind for any identity covered in those ACLs. After the first SASL bind is completed, the sasl_ssf value is retained for all new non-SASL connections. Depending on the ACL configuration, this can affect different types of operations (searches, modifications, etc.). In other words, a successful authorization step completed by one user affects the authorization requirement for a different user.
References:
- http://www.openldap.org/lists/openldap-announce/201907/msg00001.html
- https://nvd.nist.gov/vuln/detail/CVE-2019-13565
Patch:
CVE-2019-13057: Information disclosure issue in slapd component
An issue was discovered in the server in OpenLDAP before 2.4.48. When the server administrator delegates rootDN (database admin) privileges for certain databases but wants to maintain isolation (e.g., for multi-tenant deployments), slapd does not properly stop a rootDN from requesting authorization as an identity from another database during a SASL bind or with a proxyAuthz (RFC 4370) control. (It is not a common configuration to deploy a system where the server administrator and a DB administrator enjoy different levels of trust.)