🇰🇷 한글 설명
OpenSSL의 AES-SIV 및 AES-GCM-SIV 구현에서 빈 암호문과 함께 AAD가 제공될 때 태그 검증이 생략되어 메시지 위조가 가능합니다. 공격자는 임의의 AAD를 가진 빈 메시지를 위조하여 인증을 우회할 수 있습니다.
💡 쉬운 설명
암호화 라이브러리에서 데이터가 비어있을 때 보안 검사를 건너뛰는 결함이 있습니다. 이를 통해 해커가 가짜 데이터를 정상인 것처럼 속일 수 있습니다.
🇺🇸 원문 (English)
Issue summary: The implementations of AES-SIV (RFC 5297) and AES-GCM-SIV
(RFC 8452) mishandle the authentication of AAD (Additional Authenticated
Data) with an empty ciphertext allowing a forgery of such messages.
Impact summary: An attacker can forge empty messages with arbitrary AAD
to the victim's application using these ciphers.
AES-SIV (RFC 5297) and AES-GCM-SIV (RFC 8452) are nonce-misuse-resistant AEAD
modes: they accept a key, nonce, optional AAD (bytes that are authenticated
but not encrypted), and plaintext, and produces ciphertext plus a 16-byte
tag. On decrypt, `EVP_DecryptFinal_ex()` is documented to return success only
if the tag is verified succesfully.
In OpenSSL's provider implementation of these ciphers, the expected tag is
computed only when decryption function is invoked with non-empty data.
If the caller supplies AAD and then calls `EVP_DecryptFinal_ex()` without
invocation of the ciphertext update, which can happen when the received
ciphertext length is zero, the tag is never recalculated and still holds its
all-zeros value.
When AES-GCM-SIV is used, an attacker who sends arbitrary AAD, empty
ciphertext, and all-zeros tag passes authentication under any key they do not
know, single-shot. When AES-SIV is used, for mounting the attack it's
necessary for the application to reuse the decryption context without
resetting the key.
AES-SIV is implemented since OpenSSL 3.0. AES-GCM-SIV is implemented since
OpenSSL 3.2.
No protocols implemented in OpenSSL itself (TLS/CMS/PKCS7/HPKE/QUIC) support
either AES-GCM-SIV or AES-SIV. To mount an attack, the applications must
implement their own protocol and use the EVP interface. Also they must skip the
ciphertext update when a message with an empty ciphertext arrives.
The FIPS modules in 4.0, 3.6, 3.5, 3.4, and 3.0 are not affected by this
issue, as these algorithms are not FIPS approved and the affected code is
outside the OpenSSL FIPS module boundary.
📍 영향받는 시스템
OpenSSL 3.0 (AES-SIV), OpenSSL 3.2 (AES-GCM-SIV) 이상 (FIPS 모듈 제외)
⚔️ 공격 벡터
빈 암호문과 임의의 AAD, 영 태그를 전송하여 검증 로직을 우회하는 위조 공격
🛡️ 대응 방법
OpenSSL 최신 버전으로 업그레이드하고, 빈 암호문 처리 시 검증 로직을 확인하십시오.
🔧 검증 코드
출력된 버전이 3.0 이상인 경우 취약점이 존재할 수 있으므로 패치 버전을 확인해야 합니다.