wrong-key
A token signed with the wrong key
A properly signed token, signed with a key your service should not trust. Checks whether it verifies which key signed, or only that something did. 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.
Properly signed, but with a key your app should not trust. Checks whether your app cares which key signed the token, or only that something did.
Provenance
- Kind
- vulnerabilityA published weakness exists for this. Failing it is a known exploit path.
- Source
- built-in
- Clause
- RFC 7515 §5.2
- 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.