alg-none
alg=none - the unsigned token attack
A token declaring alg none and carrying no signature at all. A service that accepts it can be forged by anyone who can type. 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.
The token says it is unsigned (alg is "none") and has no signature. Anyone can change the contents and it still looks like a token. If your app accepts this, anyone can log in as anyone.
Provenance
- Kind
- vulnerabilityA published weakness exists for this. Failing it is a known exploit path.
- Source
- built-in
- Clause
- RFC 8725 §3.1
- CVE
- CVE-2015-9235
- 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.