wycheproof-rsa-pkcs1-sig-modified-padding
RSA PKCS#1: Modified padding
The padding of this test vector has been modified. RSA PKCS#1 verification must not accept modified paddings.
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.
If the verification of the padding is weak enough so that arbitrary data can be included in the ASN encoding of the padding then it may be possible to forge RSA signatures with low public exponents. Demonstrated by 1810 test vectors across 24 vector documents in Project Wycheproof.
Provenance
- Kind
- vulnerabilityA published weakness exists for this. Failing it is a known exploit path.
- Source
- wycheproof
- Clause
- RFC 8017 §8.2
- CVE
- CVE-2006-4339
- 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.