Home GnuPG
Diffusion GnuPG db9705ef594d

gpg: Avoid potential downgrade to SHA1 in 3rd party key signatures.

Description

gpg: Avoid potential downgrade to SHA1 in 3rd party key signatures.

* g10/sig-check.c (check_signature_over_key_or_uid): Always initialize
IS_SELFSIG because it is later used to detect SHA1 non-selfsignatures.

The value of is_selfsig was also used to decide whether to reject a a
SHA_signature if it is not a self-signature. However, a code path
exists where is_selfsig was set to stub_is_selfsig and not initilaized
in this case.

Details

Provenance
wernerAuthored on Wed, Oct 22, 11:19 AM
Parents
rG2d9e1295a1f4: gpg,gpgsm: Serialize write access to keybox/keyring to protect.
Branches
Unknown
Tags
Unknown