Уязвимость обхода проверки цепочки сертификатов с наличием явно заданных параметров эллиптической кривой в OpenSSL
Описание
Флаг X509_V_FLAG_X509_STRICT
в OpenSSL активирует дополнительные проверки безопасности сертификатов в цепочке сертификатов, но он не установлен по умолчанию. Начиная с версии 1.1.1h в OpenSSL добавляется проверка, запрещающая наличие в цепочке сертификатов с явно заданными параметрами эллиптической кривой. Ошибка в реализации этой проверки приводит к тому, что результат предыдущей проверки на валидность сертификатов CA в цепочке перезаписывается. Это позволяет обойти проверку, согласно которой не-CA сертификаты не должны иметь возможность выдавать другие сертификаты.
Если для сертификата задано "назначение" (purpose
), реализация libcrypto
выполняет проверку на валидность CA. Таким образом, если назначение установлено, цепочка сертификатов всё равно будет отклонена, даже если используется строгий флаг. По умолчанию в libssl
назначение устанавливается для верификации клиентских и серверных сертификатов.
Затронутые версии ПО
- OpenSSL версии, начиная с 1.1.1h
Тип уязвимости
Обход проверки цепочки сертификатов
Ссылки
- Mailing ListThird Party Advisory
- Mailing ListThird Party Advisory
- Mailing ListThird Party Advisory
- Mailing ListThird Party Advisory
- Third Party Advisory
- Third Party Advisory
- Third Party Advisory
- Mailing ListVendor Advisory
- Third Party Advisory
- Third Party Advisory
- Third Party Advisory
- Third Party Advisory
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-openssl-2021-GHY28dJdThird Party Advisory
- Vendor Advisory
- PatchThird Party Advisory
- PatchThird Party Advisory
- PatchThird Party Advisory
- PatchThird Party Advisory
Уязвимые конфигурации
Одно из
Одновременно
Одновременно
Одно из
Одно из
Одно из
Одно из
Одно из
Одновременно
Одно из
Одно из
EPSS
7.4 High
CVSS3
5.8 Medium
CVSS2
Дефекты
Связанные уязвимости
The X509_V_FLAG_X509_STRICT flag enables additional security checks of the certificates present in a certificate chain. It is not set by default. Starting from OpenSSL version 1.1.1h a check to disallow certificates in the chain that have explicitly encoded elliptic curve parameters was added as an additional strict check. An error in the implementation of this check meant that the result of a previous check to confirm that certificates in the chain are valid CA certificates was overwritten. This effectively bypasses the check that non-CA certificates must not be able to issue other certificates. If a "purpose" has been configured then there is a subsequent opportunity for checks that the certificate is a valid CA. All of the named "purpose" values implemented in libcrypto perform this check. Therefore, where a purpose is set the certificate chain will still be rejected even when the strict flag has been used. A purpose is set by default in libssl client and server certificate verif...
The X509_V_FLAG_X509_STRICT flag enables additional security checks of the certificates present in a certificate chain. It is not set by default. Starting from OpenSSL version 1.1.1h a check to disallow certificates in the chain that have explicitly encoded elliptic curve parameters was added as an additional strict check. An error in the implementation of this check meant that the result of a previous check to confirm that certificates in the chain are valid CA certificates was overwritten. This effectively bypasses the check that non-CA certificates must not be able to issue other certificates. If a "purpose" has been configured then there is a subsequent opportunity for checks that the certificate is a valid CA. All of the named "purpose" values implemented in libcrypto perform this check. Therefore, where a purpose is set the certificate chain will still be rejected even when the strict flag has been used. A purpose is set by default in libssl client and server certificate verif...
OpenSSL: CVE-2021-3450 CA certificate check bypass with X509_V_FLAG_X509_STRICT
The X509_V_FLAG_X509_STRICT flag enables additional security checks of ...
EPSS
7.4 High
CVSS3
5.8 Medium
CVSS2