diff options
| author | tb <> | 2019-10-04 18:03:56 +0000 | 
|---|---|---|
| committer | tb <> | 2019-10-04 18:03:56 +0000 | 
| commit | 03a0a727a85c64d9828255b797ef2d1d59c061df (patch) | |
| tree | a932d881c97bcf69c81a614738b7ea97c07ef057 /src/regress | |
| parent | 4cd703f8ea6ce1ad19febbcab84532f2943d2b6c (diff) | |
| download | openbsd-03a0a727a85c64d9828255b797ef2d1d59c061df.tar.gz openbsd-03a0a727a85c64d9828255b797ef2d1d59c061df.tar.bz2 openbsd-03a0a727a85c64d9828255b797ef2d1d59c061df.zip | |
Fix a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey.
(Note that the CMS code is currently disabled.)
Port of Edlinger's Fix for CVE-2019-1563 from OpenSSL 1.1.1 (old license)
tests from bluhm@
ok jsing
commit e21f8cf78a125cd3c8c0d1a1a6c8bb0b901f893f
Author: Bernd Edlinger <bernd.edlinger@hotmail.de>
Date:   Sun Sep 1 00:16:28 2019 +0200
    Fix a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey
    An attack is simple, if the first CMS_recipientInfo is valid but the
    second CMS_recipientInfo is chosen ciphertext. If the second
    recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct
    encryption key will be replaced by garbage, and the message cannot be
    decoded, but if the RSA decryption fails, the correct encryption key is
    used and the recipient will not notice the attack.
    As a work around for this potential attack the length of the decrypted
    key must be equal to the cipher default key length, in case the
    certifiate is not given and all recipientInfo are tried out.
    The old behaviour can be re-enabled in the CMS code by setting the
    CMS_DEBUG_DECRYPT flag.
    Reviewed-by: Matt Caswell <matt@openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/9777)
    (cherry picked from commit 5840ed0cd1e6487d247efbc1a04136a41d7b3a37)
Diffstat (limited to 'src/regress')
0 files changed, 0 insertions, 0 deletions
