wycheproof-rsa-pkcs1-sig-invalid-padding
RSA PKCS#1: Invalid padding
RSA PKCS#1 signature with invalid padding. The padding of RSA PKCS #1 signatures is deterministic. Only signatures with the padding specified in the standard are valid. Other paddings should be rejected.
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.
Signature forgeries may be possible if the RSA signature verification accepts a large number of alternative paddings. Demonstrated by 120 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.