CVE-2019-1543 ChaCha20-Poly1305 with long nonces
긴 nonces를 가진 ChaCha20 Poly1305
설명
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).
ChaCha20-Poly1305는 AEAD 암호화이며 모든 암호화 작업에 고유한 nonce 입력이 필요합니다. RFC 7539는 nonce 값 (IV)이 96 비트 (12 바이트)가되도록 지정합니다. OpenSSL은 가변 nonce 길이를 허용하고 앞면은 nonce에 0 바이트를 패드로 허용합니다. 그러나 그것은 또한 잘못 nonce가 16 바이트까지 설정되도록 허용합니다. 이 경우 마지막 12 바이트만 중요하며 추가 리드 바이트는 무시됩니다. 이 암호를 사용하는 것은 nonce 값이 고유하다는 요구 사항입니다. 재사용된 nonce 값을 사용하여 암호화된 메시지는 심각한 기밀성 및 무결성 공격에 취약합니다. 애플리케이션이 디폴트 nonce 길이를 12 바이트보다 길게 변경하고 새로운 값이 새로운 고유 nonce가 될 것으로 기대하는 nonce의 선행 바이트를 변경하면 이러한 애플리케이션은 의도하지 않게 재사용된 nonce로 메시지를 암호화할 수 있습니다. 또한 긴 nonce의 무시된 바이트는 이 암호의 무결성 보증에 포함되지 않습니다. 긴 nonce의 이 묵시적으로 주요한 바이트의 완전성에 의지하는 어떤 신청든지 더 영향을 받을지도 모른다. SSL/TLS를 포함한 이 암호의 OpenSSL 내부 사용은 이러한 사용이 긴 nonce 값을 설정하지 않기 때문에 안전합니다. 그러나 이 암호를 직접 사용하고 기본값이 아닌 nonce 길이를 12바이트보다 길게 설정하는 사용자 응용 프로그램은 취약할 수 있습니다. OpenSSL 버전 1.1.1 및 1.1.0은 이 문제의 영향을 받습니다. 영향을 받는 배포의 범위가 제한되어 있기 때문에 이 문제는 심각도가 낮은 것으로 평가되었으므로 현재 새로운 릴리스를 만들지 않습니다. OpenSSL 1.1.1c에서 수정 (1.1.1-1.1.1b에 영향을). OpenSSL 1.1.0k에서 수정 (1.1.0-1.1.0j에 영향을).
영향 받는 제품 제품 1개
-
OpenSSL
OpenSSL
영향 받는 버전
- 버전 정보 확인 필요
해결 버전
해결된 버전 정보가 없습니다.
참고 자료 13건
- lists.opensuse.org http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00056.html (새 창)
- access.redhat.com https://access.redhat.com/errata/RHSA-2019:3700 (새 창)
- git.openssl.org https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=ee22257b1418438ebaf54df98af4e24f494d1809 (새 창)
- git.openssl.org https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=f426625b6ae9a7831010750490a5f0ad689c5ba3 (새 창)
- kc.mcafee.com https://kc.mcafee.com/corporate/index?page=content&id=SB10365 (새 창)
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y3IVFGSERAZLNJCK35TEM2R4726XIH3Z/ (새 창)
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZBEV5QGDRFUZDMNECFXUSN5FMYOZDE4V/ (새 창)
- seclists.org https://seclists.org/bugtraq/2019/Jul/3 (새 창)
- debian.org https://www.debian.org/security/2019/dsa-4475 (새 창)
- openssl.org https://www.openssl.org/news/secadv/20190306.txt (새 창)
- oracle.com https://www.oracle.com/security-alerts/cpuapr2020.html (새 창)
- oracle.com https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html (새 창)
- oracle.com https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html (새 창)