4.3.1 Ensure 'signatureAlgorithm' asymmetric key algorithm is set for encrypting the JSON Web Tokens

Information

The signatureAlgorithm is used to sign the JWT and can be configured to use different algorithms like HS256 (symmetric), RS256 (asymmetric).

The OpenID Connect server provider should use an asymmetric algorithm to sign JSON Web Tokens (JWT) for better security since different keys are used for signing and verifying the token.

Solution

Add the signatureAlgorithm attribute to the openidConnectProvider element and set it to a strong algorithm, such as RS256 in ${server.config.dir}/configDropins/overrides/*.xml.

<openidConnectProvider signatureAlgorithm="RS256" />
<openidConnectClient signatureAlgorithm="RS256" />

See Also

https://workbench.cisecurity.org/benchmarks/7724

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-12

Plugin: Unix

Control ID: 02f1e5b2cf750fdc238cf30fcb07892e1db07cf8ceacf40dc476d43802c0d1ac