kcve.ai취약점 정보 · 내 서버 확인

CVE-2022-0778 Infinite loop in BN_mod_sqrt() reachable when parsing certificates

인증서를 파싱할 때 BN_mod_sqrt() 에 무한 루프를 연결할 수 있음 기계 번역

설명

모듈식 제곱근을 계산하는 BN_mod_sqrt() 함수는 비-프라임 모듈리로 영원히 반복될 수 있는 버그를 포함하고 있습니다. 내부적으로 이 함수는 압축된 형태로 타원 곡선 공개 키를 포함하는 인증서 또는 압축된 형태로 인코딩된 기본 포인트로 명시적인 타원 곡선 매개 변수를 구문 분석할 때 사용됩니다. 명시적인 커브 파라미터가 유효하지 않은 인증서를 만들어 무한 루프를 트리거할 수 있습니다. 인증서 파싱은 인증서 서명의 검증 이전에 발생하기 때문에, 외부에서 공급된 인증서를 파싱하는 임의의 프로세스는 서비스 거부 공격의 대상이 될 수 있다. 또한, 무한 루프는 명시적인 타원 곡선 파라미터를 포함할 수 있으므로, 제작된 개인 키를 파싱할 때 도달할 수 있습니다. 따라서 취약한 상황은 다음과 같습니다. - TLS 클라이언트가 서버 인증서를 소비 - TLS 서버 클라이언트 인증서를 소비 - 호스팅 공급자가 고객의 인증서 또는 개인 키를 복용 - 인증 기관이 가입자의 인증 요청을 구문 분석 - ASN.1 타원 곡선 매개 변수를 구문 분석하는 다른 모든 응용 프로그램 공격자가 매개 변수 값을 제어 할 수있는 BN_mod_sqrt () 이 DoS 문제에 취약합니다. OpenSSL 1.0.2 버전에서는 인증서의 초기 파싱 중에 공개 키가 파싱되지 않아 무한 루프를 트리거하기가 약간 어려워집니다. 그러나 인증서에서 공개 키를 요구하는 모든 작업은 무한 루프를 트리거합니다. 특히 공격자는 자체 서명된 인증서를 사용하여 인증서 서명을 검증하는 동안 루프를 트리거할 수 있습니다. 이 문제는 OpenSSL 버전 1.0.2, 1.1.1 및 3.0에 영향을 줍니다. 이 문제는 2022년 3월 15일 1.1.1n과 3.0.2 릴리스에서 해결되었습니다. OpenSSL 3.0.2에서 수정 (영향 3.0.0,3.0.1). OpenSSL 1.1.1n에서 수정 (1.1.1-1.1.1m에 영향을). OpenSSL 1.0.2zd에서 수정 (에 영향을 미치는 1.0.2-1.0.2zc).

기계 번역

원문 보기

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 parsing certification requests from subscribers - Anything else which parses ASN.1 elliptic curve parameters Also any other applications that use the BN_mod_sqrt() where the attacker can control the parameter values are vulnerable to this DoS issue. In the OpenSSL 1.0.2 version the public key is not parsed during initial parsing of the certificate which makes it slightly harder to trigger the infinite loop. However any operation which requires the public key from the certificate will trigger the infinite loop. In particular the attacker can use a self-signed certificate to trigger the loop during verification of the certificate signature. This issue affects OpenSSL versions 1.0.2, 1.1.1 and 3.0. It was addressed in the releases of 1.1.1n and 3.0.2 on the 15th March 2022. Fixed in OpenSSL 3.0.2 (Affected 3.0.0,3.0.1). Fixed in OpenSSL 1.1.1n (Affected 1.1.1-1.1.1m). Fixed in OpenSSL 1.0.2zd (Affected 1.0.2-1.0.2zc).

영향 받는 제품 제품 5개

  • OpenSSL

    OpenSSL

    영향 받는 버전

    • 버전 정보 확인 필요

    해결 버전

    해결된 버전 정보가 없습니다.

  • mariadb

    mariadb

    NVD 기준 해결 버전 있음

    영향 받는 버전

    • 10.2.0 이상 10.2.42 미만
    • 10.3.0 이상 10.3.33 미만
    • 10.4.0 이상 10.4.23 미만
    • 10.5.0 이상 10.5.14 미만
    • 10.6.0 이상 10.6.6 미만
    • 10.7.0 이상 10.7.2 미만

    해결 버전

    • 10.2.42 이상
    • 10.3.33 이상
    • 10.4.23 이상
    • 10.5.14 이상
    • 10.6.6 이상
    • 10.7.2 이상
  • nodejs

    node.js

    NVD 기준 해결 버전 있음

    영향 받는 버전

    • 14.0.0 초과 14.14.0 이하
    • 16.0.0 초과 16.12.0 이하
    • 17.0.0 초과 17.7.2 미만
    • 12.0.0 이상 12.12.0 이하
    • 12.13.0 이상 12.22.11 미만
    • 14.15.0 이상 14.19.1 미만
    • 16.13.0 이상 16.14.2 미만

    해결 버전

    • 17.7.2 이상
    • 12.22.11 이상
    • 14.19.1 이상
    • 16.14.2 이상
  • openssl

    openssl

    NVD 기준 해결 버전 있음

    영향 받는 버전

    • 1.0.2 이상 1.0.2zd 미만
    • 1.1.0 이상 1.1.1n 미만
    • 3.0.0 이상 3.0.2 미만

    해결 버전

    • 1.0.2zd 이상
    • 1.1.1n 이상
    • 3.0.2 이상
  • tenable

    nessus

    NVD 기준 해결 버전 있음

    영향 받는 버전

    • 8.15.4 미만
    • 10.0.0 이상 10.1.2 미만

    해결 버전

    • 8.15.4 이상
    • 10.1.2 이상

참고 자료 29건

‹ 목록

운영 중인 서버의 점검 지원 범위가 궁금하면

도입 문의