unknown-kid
A token with an unknown kid
A token signed with the real key but pointing at a key id that is not published. A service that tries every key until one works is guessing. CWE-347.
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.
Signed with the real key, but the token points at a key id that is not published. If your app just tries every key it has until one works, it is guessing rather than checking.
Provenance
- Kind
- hardeningDefensible practice with no normative source. Judge it for yourself.
- Source
- built-in
- Clause
- RFC 7515 §4.1.4
- CVE
- none
- Weakness
- CWE-347
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.