🇰🇷 한글 설명
ChaCha20-Poly1305 암호화 방식에서 OpenSSL이 12바이트보다 긴 논스(nonce)를 허용하면서 앞부분의 추가 바이트를 무시하는 취약점입니다. 이로 인해 사용자가 논스를 변경하더라도 실제로는 동일한 논스가 사용되어 암호화된 메시지의 기밀성과 무결성이 침해될 수 있습니다.
💡 쉬운 설명
암호화할 때 매번 달라져야 하는 '일회용 번호(논스)'가 실제로는 바뀌지 않고 똑같이 사용될 수 있는 문제입니다. 이 경우 암호화된 데이터가 쉽게 풀리거나 조작될 위험이 있습니다.
🇺🇸 원문 (English)
ChaCha20-Poly1305 is an AEAD cipher, and requires a unique nonce input for every encryption operation. RFC 7539 specifies that the nonce value (IV) should be 96 bits (12 bytes). OpenSSL allows a variable nonce length and front pads the nonce with 0 bytes if it is less than 12 bytes. However it also incorrectly allows a nonce to be set of up to 16 bytes. In this case only the last 12 bytes are significant and any additional leading bytes are ignored. It is a requirement of using this cipher that nonce values are unique. Messages encrypted using a reused nonce value are susceptible to serious confidentiality and integrity attacks. If an application changes the default nonce length to be longer than 12 bytes and then makes a change to the leading bytes of the nonce expecting the new value to be a new unique nonce then such an application could inadvertently encrypt messages with a reused nonce. Additionally the ignored bytes in a long nonce are not covered by the integrity guarantee of this cipher. Any application that relies on the integrity of these ignored leading bytes of a long nonce may be further affected. Any OpenSSL internal use of this cipher, including in SSL/TLS, is safe because no such use sets such a long nonce value. However user applications that use this cipher directly and set a non-default nonce length to be longer than 12 bytes may be vulnerable. OpenSSL versions 1.1.1 and 1.1.0 are affected by this issue. Due to the limited scope of affected deployments this has been assessed as low severity and therefore we are not creating new releases at this time. Fixed in OpenSSL 1.1.1c (Affected 1.1.1-1.1.1b). Fixed in OpenSSL 1.1.0k (Affected 1.1.0-1.1.0j).
📍 영향받는 시스템
OpenSSL 1.1.1 (1.1.1-1.1.1b) 및 1.1.0 (1.1.0-1.1.0j) 버전
⚔️ 공격 벡터
사용자 애플리케이션이 12바이트보다 긴 논스를 사용하며 앞부분만 변경할 경우, 동일한 논스가 재사용되어 암호 해독 공격 가능
🛡️ 대응 방법
OpenSSL을 1.1.1c 또는 1.1.0k 이상의 최신 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 1.1.1c 미만(1.1.1b 포함)이거나 1.1.0k 미만(1.1.0j 포함)인지 확인하십시오.