github OpenIDC/mod_auth_openidc v2.4.20.5
release 2.4.20.5

one hour ago

The 2.4.20.x versions use a backwards incompatible session encryption key so existing sessions (created by versions <=2.4.19.x) are invalid.

Security

  • headers: scrub the request headers named by OIDCAuthNHeader, OIDCPassUserInfoAs and (with an empty OIDCClaimPrefix) OIDCWhiteListedClaims in any spelling (case, _ for -), not only in the configured one; a client could supply e.g. x-remote-user (as every HTTP/2 client sends it) to the application, also unauthenticated with OIDCUnAuthAction pass, and the OIDCPassUserInfoAs names were not scrubbed at all (GHSA-6c2f-rc7q-c43c)
  • metrics: return 404 instead of crashing the child process on the OIDCMetricsPublish path when OIDCMetricsData is not set
  • metrics: render the Prometheus output in linear time with bounded error labels; a scrape could exhaust memory
  • discovery: honour method=form_post only on a CSRF-validated Discovery response, not on a 3rd-party initiated login
  • cache: bind encrypted cache values to their cache entry and refuse them as a session cookie (OIDCSessionCacheFallbackToCookie)
  • authorization: run the content handler before mod_cache and mod_lua, which could serve protected content to unauthenticated users
  • metadata: do not refresh the OIDCMetadataDir file of an https:// issuer on a request for its http:// variant
  • cache: delete an entry under the previous OIDCCryptoPassphrase too; a session created before a rotation survived logout
  • JOSE: refuse an AES GCM encrypted JWT without the full 128-bit tag, whatever the cjose version in use (CVE-2023-37464)
  • JWKs: publish public key material only on the JWKs endpoint, whatever the configured key holds
  • logout: refuse a back-channel logout token without an iss claim, which crashed the child process with OIDCMetadataDir
  • requests: parse form-encoded parameters in linear time; a 1MB POST body took about 20 seconds of CPU
  • authorization: only the claim that Require claim <name>:<value> names decides; one named e.g. iss:https could satisfy a requirement on iss
  • claims: always pass the validated issuer in OIDC_CLAIM_iss; a userinfo iss claim or a case variant could replace it
  • cookies: strip cookies (OIDCStripCookies) in linear memory; a request with very many cookies could exhaust it
  • info hook: apply the session checks to an info request that also names jwks or dpop
  • redirects: end the hostname in the OIDCRedirectURLsAllowed examples with /; NB: expressions copied from the old examples also match other hosts
  • logging: mask cookies, the Authorization header and tokens in the debug log (OIDCDebugMaskSecrets), and an access token in an error message
  • discovery: forward each # value in auth_request_params only once, in linear time and memory; repeats in a long query string could exhaust memory

Features

  • client authentication: add OIDCProviderTokenEndpointAuthAud (.conf: token_endpoint_auth_aud) to set the client assertion aud: issuer (RFC 10070), token or legacy (default)
  • client authentication: type a client assertion whose aud is the issuer identifier as client-authentication+jwt (RFC 10070)
  • FAPI 2.0: OIDCProfile FAPI20 defaults to tls_client_auth or private_key_jwt, not client_secret_basic; NB: set OIDCProviderTokenEndpointAuth explicitly to keep using a client secret
  • OAuth 2.0 RS (deprecated): add OIDCOAuthIntrospectionEndpointAuthAud to use the issuer identifier as the aud of the introspection client assertion (RFC 10070)
  • FAPI 2.0: OIDCProfile FAPI20 signs private_key_jwt with PS256 instead of RS256 by default and warns at startup about algorithms and curves it does not permit

Bugfixes

  • metrics: fix a segmentation fault in the flush thread at shutdown/restart with OIDCMetricsData; a regression in 2.4.20.4
  • DPoP: sign the DPoP proof and the OIDCPassUserInfoAs signed_jwt JWT with ES384/ES512 for a P-384/P-521 key instead of claiming ES256
  • subrequests: fix a use-after-free of request state values set in a subrequest, e.g. by mod_include or mod_dir
  • OAuth 2.0 RS (deprecated): fix remove_at_cache with OIDCOAuthServerMetadataURL, which never found the cached entry
  • file cache: skip non-regular files when cleaning OIDCCacheDir, so that a planted FIFO cannot block it
  • info hook: fix a memory leak of the session on each info request that is refused
  • id_token: fix decrypting an id_token encrypted with A128KW/A192KW and the client secret, which only worked with LogLevel debug
  • JWKs: fix a memory leak of a key that a later one with the same kid replaces
  • OAuth 2.0 RS (deprecated): no longer log the value of a token expiry claim that is not greater than 0

Commercial

  • commercial subscription based support for large enterprise businesses is available via sales@openidc.com
  • licensed binary packages for various other platforms such as Microsoft Windows, Red Hat Enterprise Linux 7, older Ubuntu and Debian distros, Oracle HTTP Server 12.x/14.x and IBM HTTP Server 9.x, are available under a commercial license and agreement via sales@openidc.com
  • support for Redis/Valkey over TLS, Redis/Valkey (TLS) Sentinel, and Redis/Valkey (TLS) Cluster is available under a commercial license and agreement via sales@openidc.com

The RPM packages below are signed with the following RSA PGP key:

-----BEGIN PGP PUBLIC KEY BLOCK-----

mQENBGh53lgBCADCyoOkfnE5h5rBLlf02oFpI/z2vUXK5W4T56xnNPu0/iIOxbBk
YX9rSypZFhfjv28lhGgelWEg28Ab/Yxs6l0obCgDEuFUDQ5Dv+N+YSMy67vtLwYW
9LM5p9fMN9bXOa62PwvtzRzh+xRyRBcIfMacGJC+SqUK6QhzC0lNwCsr1OaWjzon
mkaodwrloNMxEZVvFn63PvuQDZ3wwQty+0XpYiiChMssGBn6nmPDQJ7pDtQDkhfD
Z5FKY6K7AQJ4fneiVCLGngPBwTXBGcfWa+Y0HCS2ghQwDO6jYXd5GjowVDTjfMK3
QJ3e26Ox9X3V0Fl04R1i5EthEkAWGfy1lksvABEBAAG0HU9wZW5JREMgPHN1cHBv
cnRAb3BlbmlkYy5jb20+iQFRBBMBCgA7FiEEFdjWJA1IGDkAITSxnyZY1L0OSOMF
Amh53lgCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQnyZY1L0OSONG
Jgf+II0wG96R0g28Kp+R4AYzSdX0CEqr6OhwHHw4cFpLsHxZNhojo7I4OnLKEdfc
lFl37rE+hG3QpzD/b4S/fpPjd4hcLkguBQxtdxqZZVAIT8HWbveHRkI8MNnjOPwv
Hy6jBncMs1IT/URV2si/Q34+PLo8tvo/lXNa16svVl2DoYXO8MCszgCE1bx055EF
XPh4Teu5Y4OLHECSicMxrmN746dAD121zy4bLLx9mZ0erhLjvkj1vkFmlHFKyvwY
/pbSqXs9hW/wweW1oQ/xEIJWWS71PeoutUBjr0WC4sILnR5PBPZplgNh297Qex6g
qaW3io0tCH9KxU1tXYn/iL/hbQ==
=mlOy
-----END PGP PUBLIC KEY BLOCK-----

Don't miss a new mod_auth_openidc release

NewReleases is sending notifications on new releases.