Клиент CMP, который запрашивает отзыв сертификата на основе PKCS10 CSR, может отменить указатель NULL и прекратить ненормально при обработке обработанного отзыва. Краткое описание воздействия: удаление указателя The NULL происходит при чтении, что приводит к сбою и отказу в обслуживании для пострадавшего клиентского приложения. CWE: CWE-476: NULL-указатель отменяет ссылку на Description: клиент CMP должен сообщить серверу, какой сертификат отозвать, и может сделать это, предоставив PKCS10 CSR вместо самого сертификата или его имени эмитента и серийного номера.
Это 'openssl cmp - cmd rr - csr <file>' в командной строке, или OSSL_CMP_exec_RR_ses() с сертификатом, поставляемым через OSSL_CMP_CTX_set1_p10CSR() через API. CSR не содержит имя эмитента и серийный номер сертификата, поэтому клиент не отправляет их. Сервер может необязательно назвать сертификат, который он отозвал в своем ответе, и клиент затем сравнивает это имя с тем, что он отправил.
Не отправив ни имени эмитента, ни серийного номера, ему не с чем сравнивать, и сервер, возвращающий специально созданное имя, заставляет клиента читать с указателя NULL и сбой. Ответ на отзыв проверяется на действительность защиты сообщения до того, как будет достигнут затронутый код, поэтому злоумышленник должен быть вредоносным или скомпрометированным сервером CMP или man-in-the-middle, обладающим секретом, используемым для защиты сообщения. Клиенты, которые идентифицируют сертификат, который будет отозван сертификатом или эмитентом и серийным номером, а не PKCS10 CSR, не затрагиваются.
Влияние FIPS: ни один из модулей No FIPS не затронут этой проблемой, так как реализация протокола CMP находится за пределами границ модуля OpenSSL FIPS.
Показать оригинальное описание (EN)
Issue summary: A CMP client that requests certificate revocation on the basis of a PKCS#10 CSR may dereference a NULL pointer and terminate abnormally when processing a crafted revocation response. Impact summary: The NULL pointer dereference happens on a read which leads to a crash and a Denial of Service for the affected client application. CWE: CWE-476: NULL-pointer dereference Description: A CMP client revoking a certificate has to tell the server which certificate to revoke, and may do so by supplying a PKCS#10 CSR instead of the certificate itself or its issuer name and serial number. This is 'openssl cmp -cmd rr -csr <file>' on the command line, or OSSL_CMP_exec_RR_ses() with the certificate supplied via OSSL_CMP_CTX_set1_p10CSR() through the API. A CSR does not contain the issuer name and serial number of the certificate, so the client does not send them. A server may optionally name the certificate it revoked in its response, and the client then compares that name against what it sent. Having sent neither an issuer name nor a serial number, it has nothing to compare against, and a server returning a specially crafted name causes the client to read from a NULL pointer and crash. The revocation response is checked for valid message protection before the affected code is reached, so an attacker must be a malicious or compromised CMP server, or a man-in-the-middle in possession of the secret used for message protection. Clients that identify the certificate to be revoked by a certificate or by issuer and serial number rather than by a PKCS#10 CSR are not affected. FIPS impact: no No FIPS modules are affected by this issue, as the CMP protocol implementation is outside the OpenSSL FIPS module boundary.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Openssl Openssl
cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*
|
3.0.0
|
3.0.23
|
|
Openssl Openssl
cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*
|
3.4.0
|
3.4.8
|
|
Openssl Openssl
cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*
|
3.5.0
|
3.5.9
|
|
Openssl Openssl
cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*
|
3.6.0
|
3.6.5
|
|
Openssl Openssl
cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*
|
4.0.0
|
4.0.3
|