Standard Header Parameters (RFC 7515)
• **alg (Algorithm)**: Mandatory. Identifies the cryptographic algorithm (e.g. `HS256`, `RS256`, `ES256`).
• **typ (Type)**: Declares the media type, typically `"JWT"`.
• **kid (Key ID)**: Hints which key in a key store was used to sign the token. Crucial for key rotation.
• **crit (Critical)**: Array of header extensions that the recipient must understand to accept the token.
Frequently Asked Questions
What is a SQL injection vulnerability via kid?
If a backend uses the "kid" header parameter directly in a database query to look up the signing key without parameterization, attackers can inject SQL payloads into the kid parameter.