wycheproof-rsa-pkcs1-sig-short-padding
RSA PKCS#1: Short padding
The signature contains a short PKCS#1 padding. One cause for accepting such signatures are libraries that parse the padding without comparing it to the length of the RSA key.
REJECT
Your service should reject this one.
Stated as the outcome to assert against, so a suite compares with this rather than hardcoding a result and getting it backwards.
The effect of accepting short paddings is unclear. It is usually necessary to analyze the implementation and determine the bug that allows signatures with short paddings to be accepted. Demonstrated by 24 test vectors across 24 vector documents in Project Wycheproof.
Provenance
- Kind
- hardeningDefensible practice with no normative source. Judge it for yourself.
- Source
- wycheproof
- Clause
- RFC 8017 §8.2
- CVE
- none
- Weakness
- none
Test keys only. Nothing here is a statement about any particular service: the expected outcome above is what an application ought to do, not evidence that yours does.