Paper 2023/1801
ForgedAttributes: An Existential Forgery Vulnerability of CMS Signatures
Abstract
Abstract. This work describes an existential signature forgery vulnerability of the current CMS signature standard. The vulnerability results from an ambiguity of how to process the signed message in the signature verification process. Specifically, the absence or presence of the so called SignedAttributes field determines whether the signature message digest receives as input the message directly or the SignedAttributes, a DER-encoded structure which contains a digest of the message. Two flavors of the attack are possible: For one, if an attacker takes a CMS signed message M which was originally signed with SignedAttributes present, then he can craft a new message M ′ that was never signed by the signer and has the DER-encoded SignedAttributes of the original message as its content and verifies correctly against the original signature of M , but here with SignedAttributes absent. The second attack is given by the inversion of the above one and thus requires the signer to sign a message in the specific form of an encoded SignedAttributes structure and to produce the signed message with SignedAttributes absent. This second variant leads to forged signed messages with arbitrary attacker-chosen content. We provide a proof-of-concept attack implementation, estimate the impact of the attack and discuss possible countermeasures.
Note: This is revised version of the paper with only minor changes to indicate the restrictions on the CMS content type for inputs and outputs of the two attacks.
Metadata
- Available format(s)
-
PDF
- Category
- Cryptographic protocols
- Publication info
- Preprint.
- Keywords
- existential signature forgeryattackcmspkcs#7
- Contact author(s)
- fstrenzke @ cryptosource de
- History
- 2026-06-15: last of 2 revisions
- 2023-11-22: received
- See all versions
- Short URL
- https://ia.cr/2023/1801
- License
-
CC BY-SA
BibTeX
@misc{cryptoeprint:2023/1801,
author = {Falko Strenzke},
title = {{ForgedAttributes}: An Existential Forgery Vulnerability of {CMS} Signatures},
howpublished = {Cryptology {ePrint} Archive, Paper 2023/1801},
year = {2023},
url = {https://eprint.iacr.org/2023/1801}
}