Уязвимость DoS атаки в OpenSSL через бесконечный цикл в функции "BN_mod_sqrt()"
Описание
Функция BN_mod_sqrt()
в OpenSSL, используемая для вычисления модульного квадратного корня, содержит ошибку, из-за которой может возникнуть бесконечный цикл при работе с составными (непростыми) модулями. Эта функция применяется при разборе сертификатов с эллиптическими кривыми, где публичные ключи или параметры кривых закодированы в сжатой форме.
Условия эксплуатации
- Уязвимость может быть вызвана специально созданным сертификатом с некорректными параметрами эллиптической кривой.
- Поскольку разбор сертификатов выполняется до проверки подписи, уязвимость может использоваться для атак типа отказа в обслуживании (DoS).
- Аналогичный бесконечный цикл может быть вызван при разборе некорректных приватных ключей, содержащих явные параметры эллиптических кривых.
Влияние
Уязвимость затрагивает следующие случаи:
- TLS-клиенты, которые обрабатывают серверные сертификаты.
- TLS-серверы, которые обрабатывают клиентские сертификаты.
- Хостинг-провайдеры, принимающие сертификаты или приватные ключи от клиентов.
- Центры сертификации (CA), которые проверяют сертификаты с такими параметрами.
Тип уязвимости
DoS атака
Ссылки
- Third Party AdvisoryVDB Entry
- Mailing ListThird Party Advisory
- Mailing ListThird Party Advisory
- Mailing ListThird Party Advisory
- Third Party Advisory
- Mailing ListThird Party Advisory
- Mailing ListThird Party Advisory
- Third Party Advisory
- Third Party Advisory
- Third Party Advisory
- Third Party Advisory
- Third Party Advisory
- Third Party Advisory
Уязвимые конфигурации
Одно из
Одно из
Одно из
Одновременно
Одновременно
Одно из
Одно из
Одно из
Одно из
EPSS
7.5 High
CVSS3
5 Medium
CVSS2
Дефекты
Связанные уязвимости
The BN_mod_sqrt() function, which computes a modular square root, contains a bug that can cause it to loop forever for non-prime moduli. Internally this function is used when parsing certificates that contain elliptic curve public keys in compressed form or explicit elliptic curve parameters with a base point encoded in compressed form. It is possible to trigger the infinite loop by crafting a certificate that has invalid explicit curve parameters. Since certificate parsing happens prior to verification of the certificate signature, any process that parses an externally supplied certificate may thus be subject to a denial of service attack. The infinite loop can also be reached when parsing crafted private keys as they can contain explicit elliptic curve parameters. Thus vulnerable situations include: - TLS clients consuming server certificates - TLS servers consuming client certificates - Hosting providers taking certificates or private keys from customers - Certificate authorities...
The BN_mod_sqrt() function, which computes a modular square root, contains a bug that can cause it to loop forever for non-prime moduli. Internally this function is used when parsing certificates that contain elliptic curve public keys in compressed form or explicit elliptic curve parameters with a base point encoded in compressed form. It is possible to trigger the infinite loop by crafting a certificate that has invalid explicit curve parameters. Since certificate parsing happens prior to verification of the certificate signature, any process that parses an externally supplied certificate may thus be subject to a denial of service attack. The infinite loop can also be reached when parsing crafted private keys as they can contain explicit elliptic curve parameters. Thus vulnerable situations include: - TLS clients consuming server certificates - TLS servers consuming client certificates - Hosting providers taking certificates or private keys from customers - Certificate authorities...
The BN_mod_sqrt() function, which computes a modular square root, cont ...
EPSS
7.5 High
CVSS3
5 Medium
CVSS2