🇰🇷 한글 설명
OpenSSL 1.1.1h-1.1.1j 버전에서 X509_V_FLAG_X509_STRICT 플래그를 사용할 때 인증서 체인 검증 로직에 오류가 발생합니다. 이 오류로 인해 인증서가 유효한 CA(인증 기관)인지 확인하는 절차가 무시되어, CA가 아닌 인증서가 다른 인증서를 발급할 수 있게 되는 보안 우회 취약점이 존재합니다.
💡 쉬운 설명
인증서의 신원을 확인하는 엄격한 검사 과정에서 실수가 발생하여, 가짜 인증서가 진짜 인증서인 것처럼 속일 수 있는 문제입니다. 이로 인해 보안 연결이 안전하지 않은 상태로 유지될 위험이 있습니다.
🇺🇸 원문 (English)
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 verification routines, but it can be overridden or removed by an application. In order to be affected, an application must explicitly set the X509_V_FLAG_X509_STRICT verification flag and either not set a purpose for the certificate verification or, in the case of TLS client or server applications, override the default purpose. OpenSSL versions 1.1.1h and newer are affected by this issue. Users of these versions should upgrade to OpenSSL 1.1.1k. OpenSSL 1.0.2 is not impacted by this issue. Fixed in OpenSSL 1.1.1k (Affected 1.1.1h-1.1.1j).
📍 영향받는 시스템
OpenSSL 1.1.1h, 1.1.1i, 1.1.1j 버전
⚔️ 공격 벡터
X509_V_FLAG_X509_STRICT 플래그를 사용하면서 인증 목적(purpose)을 설정하지 않거나 기본값을 해제한 애플리케이션을 대상으로 공격
🛡️ 대응 방법
OpenSSL을 1.1.1k 이상의 버전으로 업그레이드하십시오.
🔧 검증 코드
출력된 버전이 1.1.1h, 1.1.1i, 1.1.1j 중 하나라면 취약한 상태입니다.