algorithm allow list

The fixed set of signing algorithms a verifier accepts, chosen by server policy rather than by the alg field of the token.

Trusting the token-chosen algorithm can let forged tokens verify.

In more detail

Letting the token choose its own algorithm enables attacks such as alg none, or verifying an HMAC with a public key as its secret. Configure the allowed list on the verifier and reject every token whose header names anything else.

Example

In the APIs course: The course service accepts only HS256.

Related terms

Taught in

References