]> git.proxmox.com Git - mirror_edk2.git/commit - SecurityPkg/Pkcs7Verify/Pkcs7VerifyDxe/Pkcs7VerifyDxe.c
SecurityPkg/Pkcs7Verify: Add the comments to address security problem
authorLong Qin <qin.long@intel.com>
Thu, 12 Oct 2017 01:12:42 +0000 (09:12 +0800)
committerLong Qin <qin.long@intel.com>
Wed, 18 Oct 2017 15:03:38 +0000 (23:03 +0800)
commit6ded19558a2b21bcce544afcfa17fb59a8b4760a
tree7c9d48dbe6a83ba1f543291f1ce638858d6e1957
parent4bbf39632c840e32996e8d43137f23fb43282859
SecurityPkg/Pkcs7Verify: Add the comments to address security problem

Add the comments to address security problems in the Pkcs7Verify Protocol
per UEFI 2.7 updates.

The Pkcs7Verifier function VerifySignature() has problematic use cases
where it might be used to unwittingly bypass security checks.  The specific
problem is that if the supplied hash is a different algorithm from the
blacklist hash, the hash will be approved even if it should have been
denied. The added comments place a strong warning about the problem.
It is possible to use the protocol reliably, either by agreeing a hash to
use for all time (like sha256) or by looping over all supported hashes when
using the protocol.

Cc: Chao Zhang <chao.b.zhang@intel.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qin Long <qin.long@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
MdePkg/Include/Protocol/Pkcs7Verify.h
SecurityPkg/Pkcs7Verify/Pkcs7VerifyDxe/Pkcs7VerifyDxe.c