Debian Codegraph @

ChangeLog

raw
1 06/03/2026
2 - oauth2: re-validate the token "exp" on a verification-cache hit; the result
3 cache TTL is independent of the token's own expiry, so a cached entry could
4 previously be returned as valid after the token had already expired. On a hit
5 with a passed "exp" the entry is dropped and the token re-verified under the
6 configured policy (CWE-613)
7 - openidc: store the authentication-request nonce in the (encrypted) state and
8 validate that the returned id_token's "nonce" claim matches it, per OpenID
9 Connect Core 1.0 section 3.1.3.7 step 11; previously the nonce was sent but
10 never checked, allowing id_token replay (CWE-294)
11 - openidc: bind a received id_token to the provider and the client by requiring
12 its "iss" to equal the provider issuer and its "aud" to contain the configured
13 client_id, per OpenID Connect Core 1.0 section 3.1.3.7; previously neither was
14 checked, so an id_token minted for another client (or by another provider
15 whose key happened to verify) was accepted (CWE-287)
16 - jose: add audience ("aud") validation (oauth2_jose_jwt_validate_aud), wired
17 into JWT payload validation and enforced whenever an expected audience is set
18 on the verify context; accepts both a single-string and an array "aud" claim
19 per RFC 7519 section 4.1.3 (CWE-287)
20 - test: use >= 256-bit symmetric keys in the HS256 sign/verify test vectors, as
21 enforced by cjose 0.6.2.6 (RFC 7518 section 3.2); recompute the affected HMAC
22 signatures and skip "exp" validation for the exp-less example tokens
23 - jose: require the "exp" claim by default when verifying JWTs via a shared key
24 or a JWKS URI, so a correctly signed token without "exp" is no longer accepted
25 as non-expiring; set verify.exp=optional to restore the previous behaviour.
26 EC-key and AWS ALB token types keep "exp" optional because they carry it in
27 the JOSE header. Also add "nbf" (not-before) validation, configurable through
28 verify.nbf (CWE-613)
29 - nginx: clamp the snprintf() return value before using it as the length of a
30 fixed stack buffer when formatting configuration error messages; a long
31 invalid variable name or expression could otherwise drive a memcpy()
32 past the end of the 128-byte buffer (CWE-125)
33 - http: fix NULL-pointer dereference in the sanitized header set/add helper; the
34 guard used && instead of || so a NULL request dereferenced request->header
35 (CWE-476)
36 - ipc: fix NULL-pointer dereference in oauth2_ipc_mutex_free(); the guard used
37 && instead of || so passing a NULL mutex dereferenced it (CWE-476)
38 - cfg: honour "envvars" target-pass setting; the getter tested the unrelated
39 as_headers field, so an explicit envvars=off was ignored and claims plus the
40 access_token were still exported into the subprocess environment (CWE-200)
41 - http: fix an invalid free / heap corruption when parsing X-Forwarded-Proto,
42 X-Forwarded-Port or X-Forwarded-Host header values that start with a
43 separator; the left-most-value helper returned an interior strtok() pointer
44 that callers subsequently freed (CWE-763); also fixes a leak of the
45 duplicated header value
46 - cache: fix a NULL-pointer dereference when a non-default cache
47 passphrase_hash_algo is configured; a self-assignment left the local
48 variable NULL so strcmp(NULL, "none") crashed every encrypted cache get/set
49 - cache: pass cache keys/values to Redis via redisCommandArgv() instead of
50 building a command string that was passed as the redisCommand() printf-style
51 format argument; prevents format-string exploitation and Redis
52 command/argument injection through cache keys and values (CWE-134, CWE-74)
53 - jose: fix a memory leak of the decoded EVP_PKEY in the single-EC-key URL
54 resolver (e.g. AWS ALB) on OpenSSL 3.x; found via Valgrind
55 - cache: zero-initialize the file-cache info header before writing it so the
56 struct's alignment padding is no longer flushed to disk as uninitialised
57 stack memory (reported by Valgrind as a write of uninitialised byte(s))
58 - release 2.3.0
59
60 06/02/2026
61 - jose: URL-encode the JWT "kid" before constructing the AWS ALB JWKs URL to
62 prevent path traversal/injection (SSRF) into the outbound key request (CWE-918)
63 thanks Michał Majchrowicz and Marcin Wyczechowski, members of the AFINE Team
64 - jose: fix memory leak of the region string extracted from the ARN in the
65 AWS ALB JWKs resolver
66 - dpop: reject a DPoP proof whose jwk header contains private key material
67 per RFC 9449 section 4.3 step 7 (CWE-345)
68 thanks Michał Majchrowicz and Marcin Wyczechowski, members of the AFINE Team
69 - bump to 2.2.2dev
70
71 04/18/2026
72 - build: guard --coverage linker flag behind CODE_COVERAGE_ENABLED; thanks @kraj
73
74 04/02/2026
75 - release 2.2.1
76
77 03/25/2026
78 - proto: use strncasecmp on content type when obtaining a token from POST; closes #72; thanks @roubert
79 - code: correct strstr assignments to compile with glibc 2.43; closes #73; thanks @Saur2000
80 - link: add support for libtool version-info and bump to 1.0.0; closes #68; thanks @ararslan and @babelouest
81
82 02/03/2026
83 - code: assign strstr to char instead of const char to compile with globc 2.43
84 see #70; thanks @babelouest
85
86 01/27/2026
87 - api: fix/complete returning HTTP status code from oauth2_token_verify (added in 2.2.0)
88
89 01/14/2026
90 - support adding custom parameters to the authentication request by adding the
91 `authn_request_params` option for the OpenID Connect Client
92 - bump to 2.2.1dev
93
94 01/06/2026
95 - release 2.2.0
96
97 12/21/2025
98 - http: add support for HTTP retries (default 1) and HTTP retry interval (300 ms default)
99 - api: return HTTP status code from oauth2_token_verify
100
101 08/28/2025
102 - add oauth2_ipc_thread_mutex_t and use it for Redis, cURL and global lists
103 to improve performance across multiple processes running on the same host
104 - bump to 2.2.0dev
105
106 08/08/2025
107 - release 2.1.1
108
109 07/31/2025
110 - fix URL decoding of HTTP request query parameters; see OpenIDC/ngx_openidc_module#24; thanks @drzraf
111
112 03/13/2025
113 - test: add a space after the status code in the HTTP responses; see curl/curl#16692 ; thanks @charles2910 and @bagder
114 - bump to 2.1.1dev
115
116 02/12/2025
117 - add updated AWS ALB JWKs retrieval supporting new "signer"/"region" logic and key rotation
118 closes: https://github.com/OpenIDC/mod_oauth2/issues/73
119 - release 2.1.0
120
121 01/02/2024
122 - update copyright year to 2025
123
124 09/13/2024
125 - add support for introspection.token_param_name; closes #57
126
127 09/11/2024
128 - add (optional) JQ support with caching in oauth2_jq_filter
129 - add "json_payload_claim" claim option to oauth2_cfg_target_pass_t
130 - make oauth2_jwt_create public in jose.h and add a json_payload parameter
131 - nginx: fix memory leak in _oauth2_nginx_ssl_cert_set
132 - bump to 2.1.0dev
133
134 08/22/2024
135 - change LICENSE to Apache 2.0
136 - release 2.0.0
137
138 08/02/2024
139 - correct error log upon mismatch in "iss" claim: id_token->JWT
140
141 06/24/2024
142 - allow to use local file through file:// protocol for metadata or jwks; see #51; thanks @pladen
143 - bump to 1.6.4dev
144
145 06/24/2024
146 - release 1.6.3
147
148 06/20/2024
149 - nginx: add nginx_oauth2_set_require to be used with OAuth2Require etc.
150 see OpenIDC/ngx_oauth2_module#7; thanks @smanolache and @pladen
151
152 06/19/2024
153 - add NGINX macros/functions for setting claim variables in the request context
154 see OpenIDC/ngx_oauth2_module#7; thanks @smanolache and @pladen
155 - allow NGINX primitives in an if block within a location block in the http block
156 - bump to 1.6.3dev
157
158 06/05/2024
159 - release 1.6.2
160
161 05/31/2024
162 - refactor NGINX port extraction so it works with NGINX >= 1.27.0; closes #49; thanks @anpin
163 - add PCRE2_CFLAGS to cache/server object linking
164
165 03/11/2024
166 - release 1.6.1
167
168 03/08/2024
169 - add support for RFC 8705 OAuth 2.0 Mutual-TLS Certificate-Bound Access Tokens to the NGINX binding
170
171 03/04/2024
172 - add support for Redis 6 ACL username based authentication; see: OpenIDC/mod_oauth2#63
173 - bump to 1.6.1dev
174
175 12/06/2023
176 - add support for the OAuth 2.0 Client Credentials grant type
177 - use libcurl version macro that works on older platforms
178 - release 1.6.0
179
180 11/08/2023
181 - update DPoP support to RFC 9449
182 - release 1.5.2
183
184 08/31/2023
185 - printout more cjose error details when errors occur verifying JWT access tokens
186
187 06/29/2023
188 - fix timing issue in check_openidc.c; closes #47
189 - bump to 1.5.2dev
190
191 04/19/2023
192 - add issuer validation for JWT access tokens when configured through OAuth2Verify metadata; closes #44; thanks @chris-crunchr
193 - release 1.5.1
194
195 04/14/2023
196 - add support for resolving provider metadata from a Discovery endpoint URL; see https://github.com/OpenIDC/ngx_openidc_module/issues/18
197 - bump to 1.5.1dev
198
199 03/22/2023
200 - add error logs about missing or invalid "active" boolean claim in introspection response
201
202 03/08/2023
203 - move repo to OpenIDC github organization
204
205 03/07/2023
206 - release 1.5.0
207
208 03/03/2023
209 - add support for regular expressions in Require statements; see https://github.com/zmartzone/mod_oauth2/discussions/39
210 - depend on libpcre2
211 - fix memory leak in _oauth2_jose_options_jwk_set_rsa_key when using OpenSSL 3.x
212 - bump to 1.5.0dev
213
214 03/01/2023
215 - add support for introspect.params; see https://github.com/zmartzone/mod_oauth2/discussions/44
216 - release 1.4.5.5
217
218 01/22/2023
219 - hack for el7/x86 where openssl 1.0.2 and openssl 1.1.1 are installed for respectively Apache and NGINX 1.20.1
220 - bump to 1.4.5.5rc0
221
222 01/21/2023
223 - revert header_add/header_set change
224 - release 1.4.5.4
225
226 01/20/2023
227 - don't add WWW-Authenticate header(s) but (over)write a single one; see zmartzone/mod_oauth2#42
228 - release 1.4.5.3
229
230 12/14/2022
231 - fix NGINX https schema detection
232 - bump to 1.4.5.3dev
233
234 12/06/2022
235 - change Apache module init info log
236 - release 1.4.5.2
237
238 11/30/2022
239 - initialize check_oauth2 properly; call OPENSSL_init_crypto for OpenSSL >= 1.1.0
240
241 11/23/2022
242 - add JANSSON_LIBS to apache/nginx LIBADD; closes #40; thanks @pskopnik
243 - bump to 1.4.5.2dev
244
245 08/22/2022
246 - fix concurrency issue when using OAuth2Verify metadata; see #37; thanks @rtitle
247 - fix memory leak in cURL writeback function
248 - release 1.4.5.1
249
250 07/28/2022
251 - fix memory leak when using OAuth2Verify metadata
252
253 07/27/2022
254 - use main request for Apache request contexts
255 - set refresh to true when getting jwsk_uri results from cache
256 - print warning when cjose_jws_verify fails
257 - avoid using cjose_jwk_retain because it is not thread safe
258 - release 1.4.5
259
260 06/24/2022
261 - add cjose, curl and ssl to liboauth2.pc.in
262 - add add curl and cjose flags to liboauth2_cache_la_CFLAGS
263
264 04/16/2022
265 - fix file cache so we do not try to remove a file that was cleaned just before; see #33
266 - fix tests for client_secret_jwt and private_key_jwt so encoded JWT comparison works for cjose >= 0.6.2
267 - release 1.4.4.2
268
269 03/06/2022
270 - add support for OpenSSL 3.0; closes #31
271 - bump to 1.5.0dev
272
273 03/03/2022
274 - fix race condition and potential crash in curl usage in oauth2_url_decode
275 see zmartzone/mod_oauth2#27; thanks @rtitle
276 - release 1.4.4.1
277
278 12/23/2021
279 - allow deprecated declarations to build with OpenSSL 3.0; see #31
280 - release 1.4.4
281
282 12/22/2021
283 - hash the cache encryption key to a string instead of bytes
284 - Makefile.am improvements:
285 - move OpenSSL libs go generic libraries so cache files compile with the right flags
286 - use ${srcdir} to conform to distcheck
287 - add Github Actions CI; remove Travis
288
289 10/12/2021
290 - make outgoing_proxy an endpoint property
291 - accommodate for NULL key in oauth2_cache_get and oauth2_cache_set
292 - release 1.4.3.2
293
294 10/11/2021
295 - add outgoing_proxy option to verify context
296 - correct remote_user debug printout
297 - release 1.4.3.1
298
299 06/21/2021
300 - printout remote username claim when not found, for debugging purposes
301
302 06/10/2021
303 - use encrypted JWTs for storing encrypted cache contents and avoid using static AAD/IV
304 closes #26; thanks @niebardzo
305 - avoid memory leaks on JWT validation errors
306 - release 1.4.3
307
308 06/07/2021
309 - correct iat slack validation defaults, see https://github.com/zmartzone/mod_oauth2/discussions/20
310 thanks @DrakezulsMinimalism
311 - release 1.4.2.1
312
313 05/28/2021
314 - add Travis and LGTM
315
316 05/25/2021
317 - set memory alignment of shm cache structs to 64 bytes; see #21 and #24
318 - release 1.4.2
319
320 04/19/2021
321 - apache: use include directory from APXS; thanks @abbra
322 - pass missing argument to oauth2_error in _oauth2_dpop_jti_validate; thanks @abbra
323
324 02/02/2021
325 - avoid creating files for anonymous shared memory segments; see #18
326 - release 1.4.1
327
328 01/30/2021
329 - fix Apache cleanup routines; see zmartzone/liboauth2#18 and zmartzone/mod_oauth2#7
330
331 01/26/2021
332 - add support for RFC 8705 OAuth 2.0 Mutual-TLS Certificate-Bound Access Tokens
333 https://tools.ietf.org/html/rfc8705; thanks @vdzhuvinov
334
335 12/23/2020
336 - use per-process semaphore locking to prevent multi-process issue; see #18
337 - release 1.4.0.1
338
339 12/21/2020
340 - release 1.4.0
341
342 12/03/2020
343 - add oauth2_cfg_openidc_set_options for configurable state cookie handling
344
345 12/02/2020
346 - cleanup OIDC expired/superfluous state cookies; closes zmartzone/ngx_openidc_module#6
347
348 11/13/2020
349 - add support for PKCE
350
351 11/12/2020
352 - separate OpenID client configs and named providers
353 - fix parsing in oauth2_cfg_set_flag_slot
354 - add configurable state and session cookie paths
355
356 11/11/2020
357 - fix session cache handler cloning
358 - support configurable cookie path for session cookie
359
360 11/09/2020
361 - refactored caching; use named caches consistently
362
363 11/08/2020
364 - use endpoint more consistently
365 - harmonize naming of endpoint, endpoint auth and ropc
366
367 11/07/2020
368 - don't use automake config.h; closes #10; thanks @babelouest
369
370 10/07/2020
371 - add support for DPOP bound access tokens
372 - bump to 1.4.0-dev
373
374 02/27/2020
375 - lock access to cache globals
376 - log corrections and improvements
377
378 02/26/2020
379 - resolve some TODOs; valgrind
380 - bump to 1.3.0
381
382 02/25/2020
383 - change to named sessions
384
385 02/21/2020
386 - add serialized id_token to session
387 - externalize oauth2_jose_jwt_verify and allow verification context to be NULL
388 - bump to 1.2.5
389
390 02/13/2020
391 - add userinfo endpoint request and claims
392 - bump to 1.2.4
393 - change to named cache configurations
394
395 02/10/2020
396 - implement session expiry checks
397 - bump to 1.2.3
398
399 02/05/2020
400 - add missing ROPC config functions
401 - bump to 1.2.2
402
403 02/04/2020
404 - add generic endpoint config struct and ROPC client capability
405 - bump to 1.2.1 and bump copyright year
406
407 01/31/2020
408 - sane session cfg defaults
409
410 09/12/2019
411 - change http request header function naming
412 - more openidc handling
413 - bump to 1.2.0
414
415 09/02/2019
416 - fix type (auth->client_secret_jwt.aud = NULL); closes #3; thanks @pengjiaoyang
417
418 08/19/2019
419 - add first outline of openidc and sessions
420
421 07/03/2019
422 - return status code from HTTP callouts
423 - bump to version 1.1.1
424
425 07/01/2019
426 - encapsulate oauth2_log_sink_t
427 - bump to version 1.1.0
428
429 05/20/2019
430 - add Apache Require claim authorization functions
431 - bump to version 1.0.1
432
433 03/22/2019
434 - initial import of version 1.0.0