wycheproof-rsa-pkcs1-sig-missing-null
RSA PKCS#1: Missing null
Some legacy implementations of RSA PKCS#1 signatures did omit a NULL in the ASN encoding. While such signatures are indeed invalid some libraries are accepting such signatures for compatibility.
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.
Accepting such legacy signatures is not a vulnerability. However, implementations often use ASN parsing to verify the signature. Faulty ASN parsing can add vulnerabilities. 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.