CVE-2023-28857: GHSL-2023-009: Credentials leaks for LDAP authentication in Apereo CAS - CVE-2023-28857

Published Jun 27, 2023
·
Updated

Apereo CAS is an open source multilingual single sign-on solution for the web. Apereo CAS can be configured to use authentication based on client X509 certificates. These certificates can be provided via TLS handshake or a special HTTP header, such as “sslclientcert”. When checking the validity of the provided client certificate, X509CredentialsAuthenticationHandler performs check that this certificate is not revoked. To do so, it fetches URLs provided in the “CRL Distribution Points” extension of the certificate, which are taken from the certificate itself and therefore can be controlled by a malicious user. If the CAS server is configured to use an LDAP server for x509 authentication with a password, for example by setting a “cas.authn.x509.ldap.ldap-url” and “cas.authn.x509.ldap.bind-credential” properties, X509CredentialsAuthenticationHandler fetches revocation URLs from the certificate, which can be LDAP urls. When making requests to this LDAP urls, Apereo CAS uses the same password as for initially configured LDAP server, which can lead to a password leak. An unauthenticated user can leak the password used to LDAP connection configured on server. This issue has been addressed in version 6.6.6. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Other sources

When CAS is configured to use X509 certificate authentication with LDAP directory, an unauthenticated user can leak the credentials for LDAP authentication. This is possible by sending a specially crafted X509 client certificate that contains a “CRL Distribution Points” extension with URLs pointing to a malicious resource.

GitHub Security Lab

Affected Software

3 affected componentsFixes available
maven/org.apereo.cas:cas-server-support-x509-core>=6.5.0<6.6.6
6.6.6
Apereo Central Authentication Service>=6.5.0<6.5.9.1
Apereo Central Authentication Service>=6.6.0<6.6.6

Event History

Jun 27, 2023
Advisory Published
via GitHub Security Lab·12:00 AM
Data Sourced
via GitHub Security Lab·12:00 AM
Description
CVE Published
via MITRE·05:10 PM
Data Sourced
via MITRE·05:10 PM
DescriptionSeverityWeakness
Aug 5, 2024
Advisory Published
via GitHub·09:18 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2023-28857?

CVE-2023-28857 is a vulnerability in Apereo CAS, an open-source single sign-on solution, that allows an attacker to bypass client X509 certificate authentication.

2

How does CVE-2023-28857 impact Apereo CAS?

CVE-2023-28857 can be exploited to bypass X509 certificate authentication in Apereo CAS, compromising the security of the system.

3

What is the severity of CVE-2023-28857?

The severity of CVE-2023-28857 is high with a CVSS score of 7.5.

4

What versions of Apereo CAS are affected by CVE-2023-28857?

Apereo CAS versions 6.5.0-6.5.9.1 and 6.6.0-6.6.6 are affected by CVE-2023-28857.

5

How can I fix CVE-2023-28857?

To fix CVE-2023-28857, upgrade to Apereo CAS version 6.6.7 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203