wycheproof-rsa-pkcs1-sig-invalid-asn-in-padding
RSA PKCS#1: Invalid asn in padding
The signature contains an invalid padding. RSA PKCS#1 verification must not accept incorrect 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 2832 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.