🇰🇷 한글 설명
OpenSSL의 GENERAL_NAME_cmp 함수가 EDIPARTYNAME 형식을 비교할 때 잘못 동작하여 NULL 포인터 역참조 및 충돌이 발생할 수 있는 취약점입니다. 공격자가 조작된 CRL 또는 인증서를 통해 시스템을 중단시키는 서비스 거부(DoS) 공격을 수행할 수 있습니다.
💡 쉬운 설명
인증서 정보를 비교하는 과정에서 잘못된 데이터 형식을 만나면 프로그램이 갑자기 멈춰버리는 문제입니다. 공격자가 특수하게 만든 가짜 인증서를 보내면 서버나 프로그램이 작동을 멈추게 할 수 있습니다.
🇺🇸 원문 (English)
The X.509 GeneralName type is a generic type for representing different types of names. One of those name types is known as EDIPartyName. OpenSSL provides a function GENERAL_NAME_cmp which compares different instances of a GENERAL_NAME to see if they are equal or not. This function behaves incorrectly when both GENERAL_NAMEs contain an EDIPARTYNAME. A NULL pointer dereference and a crash may occur leading to a possible denial of service attack. OpenSSL itself uses the GENERAL_NAME_cmp function for two purposes: 1) Comparing CRL distribution point names between an available CRL and a CRL distribution point embedded in an X509 certificate 2) When verifying that a timestamp response token signer matches the timestamp authority name (exposed via the API functions TS_RESP_verify_response and TS_RESP_verify_token) If an attacker can control both items being compared then that attacker could trigger a crash. For example if the attacker can trick a client or server into checking a malicious certificate against a malicious CRL then this may occur. Note that some applications automatically download CRLs based on a URL embedded in a certificate. This checking happens prior to the signatures on the certificate and CRL being verified. OpenSSL's s_server, s_client and verify tools have support for the "-crl_download" option which implements automatic CRL downloading and this attack has been demonstrated to work against those tools. Note that an unrelated bug means that affected versions of OpenSSL cannot parse or construct correct encodings of EDIPARTYNAME. However it is possible to construct a malformed EDIPARTYNAME that OpenSSL's parser will accept and hence trigger this attack. All OpenSSL 1.1.1 and 1.0.2 versions are affected by this issue. Other OpenSSL releases are out of support and have not been checked. Fixed in OpenSSL 1.1.1i (Affected 1.1.1-1.1.1h). Fixed in OpenSSL 1.0.2x (Affected 1.0.2-1.0.2w).
📍 영향받는 시스템
OpenSSL 1.1.1 ~ 1.1.1h 및 1.0.2 ~ 1.0.2w 버전
⚔️ 공격 벡터
조작된 EDIPARTYNAME이 포함된 인증서나 CRL을 사용하여 비교 함수를 트리거함
🛡️ 대응 방법
OpenSSL을 1.1.1i 또는 1.0.2x 이상의 최신 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 1.1.1i 미만 또는 1.0.2x 미만인지 확인하여 취약 여부를 판단합니다.