Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2023-1664

Опубликовано: 27 мар. 2023
Источник: redhat
CVSS3: 6.5

Описание

A flaw was found in Keycloak. This flaw depends on a non-default configuration "Revalidate Client Certificate" to be enabled and the reverse proxy is not validating the certificate before Keycloak. Using this method an attacker may choose the certificate which will be validated by the server. If this happens and the KC_SPI_TRUSTSTORE_FILE_FILE variable is missing/misconfigured, any trustfile may be accepted with the logging information of "Cannot validate client certificate trust: Truststore not available". This may not impact availability as the attacker would have no access to the server, but consumer applications Integrity or Confidentiality may be impacted considering a possible access to them. Considering the environment is correctly set to use "Revalidate Client Certificate" this flaw is avoidable.

A flaw was found in Keycloak. This flaw depends on a non-default configuration "Revalidate Client Certificate" to be enabled and the reverse proxy is not validating the certificate before Keycloak. Using this method an attacker may choose the certificate which will be validated by the server. If this happens and the KC_SPI_TRUSTSTORE_FILE_FILE variable is missing/misconfigured, any trustfile may be accepted with the logging information of "Cannot validate client certificate trust: Truststore not available". This may not impact availability, but consumer applications Integrity or Confidentiality. Considering the environment is correctly set, this flaw is avoidable by configuring the server.

Отчет

Red Hat Impact rated as a low impact considering there's a mitigation for this issue which would be consider the environment is correctly set with the truststore file. With these settings, the environment there's no evidence of attack possibility. Also it's possible to track under the server logs for more evidences.

Меры по смягчению последствий

Make sure KC_SPI_TRUSTSTORE_FILE_FILE is correctly set and the logs are not reporting the "Cannot validate client certificate trust: Truststore not available" after an attempt to explore the vulnerability. Note this message may happen under other scenarios and reasons but the expected behavior would be that a non-valid certificate to pass.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Migration Toolkit for Runtimesorg.keycloak-keycloak-coreAffected
Red Hat build of Apicurio Registry 2keycloak-coreFix deferred
Red Hat build of Quarkusorg.keycloak/keycloak-coreFix deferred
Red Hat Fuse 7keycloak-coreFix deferred
Red Hat Satellite 6keycloak-httpd-client-installNot affected
AMQ Broker 7.11.2keycloak-coreFixedRHSA-2023:549105.10.2023
Red Hat Single Sign-On 7FixedRHSA-2023:389227.06.2023
Red Hat Single Sign-On 7.6 for RHEL 7rh-sso7-keycloakFixedRHSA-2023:388327.06.2023
Red Hat Single Sign-On 7.6 for RHEL 8rh-sso7-keycloakFixedRHSA-2023:388427.06.2023
Red Hat Single Sign-On 7.6 for RHEL 9rh-sso7-keycloakFixedRHSA-2023:388527.06.2023

Показывать по

Дополнительная информация

Статус:

Low
Дефект:
CWE-295
https://bugzilla.redhat.com/show_bug.cgi?id=2182196keycloak: Untrusted Certificate Validation

6.5 Medium

CVSS3

Связанные уязвимости

CVSS3: 6.5
nvd
больше 2 лет назад

A flaw was found in Keycloak. This flaw depends on a non-default configuration "Revalidate Client Certificate" to be enabled and the reverse proxy is not validating the certificate before Keycloak. Using this method an attacker may choose the certificate which will be validated by the server. If this happens and the KC_SPI_TRUSTSTORE_FILE_FILE variable is missing/misconfigured, any trustfile may be accepted with the logging information of "Cannot validate client certificate trust: Truststore not available". This may not impact availability as the attacker would have no access to the server, but consumer applications Integrity or Confidentiality may be impacted considering a possible access to them. Considering the environment is correctly set to use "Revalidate Client Certificate" this flaw is avoidable.

CVSS3: 6.5
debian
больше 2 лет назад

A flaw was found in Keycloak. This flaw depends on a non-default confi ...

CVSS3: 6.5
github
больше 2 лет назад

Keycloak Untrusted Certificate Validation vulnerability

CVSS3: 6.5
fstec
больше 2 лет назад

Уязвимость программного средства для управления идентификацией и доступом Keycloak, связанная с ошибками процедуры подтверждения подлинности сертификата, позволяющая нарушителю оказать воздействие на конфиденциальность и целостность защищаемой информации

6.5 Medium

CVSS3