#33022·openssl

CMS_verify 不会对 content-type 属性进行检查,以确保其符合 eContentType

作者: keithadler创建于 2026年9月28日更新于 2026年9月28日

`CMS_verify()` (和 `openssl cms -verify`) 接受一个带有 `encapContentInfo.eContentType` 不同于其签名内容类型属性值的 SignedData 消息。由于 `eContentType` 不受签名保护,任何人都可以在没有签名密钥的情况下更改有效签名消息的内容类型,并且仍然可以验证。

内容来源: openssl/openssl