Remi Tricot-Le Breton
d4e3be18df
BUG/MEDIUM: ssl: Fix crash in ocsp-update log function
...
The ocsp-update logging mechanism was built around the 'sess_log'
function which required to keep a pointer to the said session until the
logging function could be called. This was made by keeping a pointer to
the appctx returned by the 'httpclient_start' function. But this appctx
lives its life on its own and might be destroyed before
'ssl_ocsp_send_log' is called, which could result in a crash (UAF).
Fixing this crash requires to stop using the 'sess_log' function to emit
the ocsp-update logs. The log line will then need to be built by hand
out of the information actually available when 'ssl_ocsp_send_log' is
called. Since we don't use the "regular" logging functions anymore, we
don't need to use the error_logformat anymore. In order to keep a
consistent behavior than before, we will keep the same format for the
logs but replace the fields that required a 'sess' pointer by fake
values (the %ci:%cp for instance, which was never filled anyway).
This crash was raised in GitHub issue #2442 .
It should be backported up to branch 2.8.
2024-03-20 16:12:10 +01:00
..
2024-02-03 12:08:11 +01:00
2023-09-28 08:49:22 +02:00
2023-11-14 11:46:37 +01:00
2024-02-26 16:40:13 +01:00
2022-11-22 16:27:52 +01:00
2022-11-24 15:24:02 +01:00
2024-03-14 15:21:02 +01:00
2024-02-14 15:41:04 +01:00
2023-04-27 18:14:57 +02:00
2023-04-23 09:46:15 +02:00
2024-03-15 11:31:48 +01:00
2023-12-01 09:09:45 +01:00
2024-02-14 11:32:29 +01:00
2024-03-12 17:37:11 +01:00
2023-06-06 15:15:17 +02:00
2024-03-07 11:48:17 +01:00
2023-10-17 18:51:13 +02:00
2023-11-23 16:23:14 +01:00
2023-09-08 16:25:19 +02:00
2024-02-23 15:19:49 +01:00
2023-05-17 09:33:54 +02:00
2023-06-30 16:12:36 +02:00
2024-03-20 14:26:57 +01:00
2023-09-08 16:25:19 +02:00
2024-03-13 09:24:46 +01:00
2023-10-18 17:01:19 +02:00
2024-02-14 14:22:36 +01:00
2023-11-23 16:23:14 +01:00
2024-02-03 12:08:11 +01:00
2024-02-28 15:13:27 +01:00
2023-11-23 16:53:57 +01:00
2024-01-30 08:27:26 +01:00
2022-12-09 12:23:14 +01:00
2023-04-13 18:04:46 +02:00
2023-11-18 11:16:21 +01:00
2023-11-23 16:23:14 +01:00
2023-11-29 08:59:27 +01:00
2024-03-19 07:54:25 +01:00
2023-04-27 18:22:34 +02:00
2023-11-08 16:38:06 +01:00
2023-10-26 15:18:48 +02:00
2024-01-31 15:22:12 +01:00
2024-01-31 15:22:12 +01:00
2023-10-17 18:51:13 +02:00
2024-02-01 12:00:53 +01:00
2024-01-31 16:28:54 +01:00
2024-03-15 11:31:48 +01:00
2022-11-14 11:14:02 +01:00
2023-12-21 14:22:27 +01:00
2024-03-13 09:24:46 +01:00
2023-02-14 08:48:54 +01:00
2023-01-26 11:36:39 +01:00
2024-01-31 16:28:54 +01:00
2024-01-30 08:27:26 +01:00
2024-03-20 14:26:57 +01:00
2024-03-07 11:48:08 +01:00
2023-04-01 18:33:40 +02:00
2024-02-28 15:13:35 +01:00
2024-02-28 16:02:33 +01:00
2024-01-30 08:27:26 +01:00
2024-01-30 08:27:26 +01:00
2024-01-11 15:10:08 +01:00
2023-11-23 16:23:14 +01:00
2023-03-08 10:43:04 +01:00
2023-11-23 16:23:14 +01:00
2023-08-29 11:11:50 +02:00
2024-03-14 09:34:36 +01:00
2024-03-07 11:47:56 +01:00
2023-05-05 16:28:32 +02:00
2023-12-21 14:22:27 +01:00
2023-05-11 09:22:46 +02:00
2024-03-14 15:21:02 +01:00
2024-02-28 16:02:33 +01:00
2024-03-14 15:21:02 +01:00
2024-02-14 15:41:04 +01:00
2024-03-06 10:41:01 +01:00
2023-04-28 16:08:08 +02:00
2023-11-24 21:44:25 +01:00
2023-06-14 11:27:29 +02:00
2023-05-12 09:45:30 +02:00
2024-01-11 11:13:54 +01:00
2023-07-03 16:32:01 +02:00
2024-02-14 14:22:36 +01:00
2024-02-10 12:38:40 +01:00
2023-11-06 20:49:56 +01:00
2024-01-02 10:19:48 +01:00
2023-04-21 17:41:26 +02:00
2023-04-23 09:46:15 +02:00
2024-01-02 11:44:42 +01:00
2023-02-23 15:05:05 +01:00
2023-04-21 17:41:26 +02:00
2023-08-17 15:44:03 +02:00
2024-02-27 17:02:20 +01:00
2023-12-21 15:42:08 +01:00
2024-01-31 16:28:54 +01:00
2024-02-15 17:46:53 +01:00
2024-01-29 15:40:19 +01:00
2022-11-24 15:38:26 +01:00
2023-04-28 16:08:08 +02:00
2024-02-05 14:31:21 +01:00
2024-03-05 11:50:34 +01:00
2023-11-28 15:37:50 +01:00
2023-11-28 15:37:50 +01:00
2023-11-30 15:04:27 +01:00
2024-03-18 19:54:33 +01:00
2024-03-11 14:15:36 +01:00
2024-01-31 16:28:54 +01:00
2024-02-15 17:04:17 +01:00
2024-02-14 11:32:29 +01:00
2024-01-16 10:17:27 +01:00
2023-11-28 15:47:18 +01:00
2023-11-28 15:47:18 +01:00
2024-03-11 14:27:51 +01:00
2024-03-06 10:39:57 +01:00
2024-03-12 17:37:11 +01:00
2024-02-01 12:00:53 +01:00
2024-01-31 16:28:54 +01:00
2024-03-08 17:22:48 +01:00
2024-01-23 16:03:29 +01:00
2023-11-23 16:23:14 +01:00
2023-11-28 15:47:18 +01:00
2023-10-17 18:51:13 +02:00
2024-03-07 11:48:08 +01:00
2023-11-23 16:23:14 +01:00
2024-02-20 15:18:39 +01:00
2023-07-21 15:08:27 +02:00
2024-03-14 15:21:07 +01:00
2024-03-14 15:21:07 +01:00
2023-11-17 16:56:18 +01:00
2023-11-23 16:23:14 +01:00
2024-03-09 11:23:52 +01:00
2023-06-30 16:12:36 +02:00
2023-04-23 09:46:15 +02:00
2023-11-20 11:38:26 +01:00
2024-02-01 10:58:30 +01:00
2024-03-20 16:12:10 +01:00
2024-02-27 18:10:43 +01:00
2024-03-12 17:37:11 +01:00
2024-03-20 16:12:10 +01:00
2024-03-11 19:20:44 +01:00
2024-03-20 16:12:10 +01:00
2023-05-15 12:07:52 +02:00
2024-02-22 18:24:35 +01:00
2024-02-14 15:41:02 +01:00
2024-03-05 11:50:34 +01:00
2024-03-13 09:24:46 +01:00
2023-11-23 16:23:14 +01:00
2024-02-01 10:58:30 +01:00
2023-11-18 11:16:21 +01:00
2023-07-24 17:12:29 +02:00
2024-01-30 08:27:26 +01:00
2023-11-16 19:35:10 +01:00
2024-03-11 19:00:37 +01:00
2024-03-14 15:21:02 +01:00
2024-03-08 17:20:43 +01:00
2023-02-17 16:01:34 +01:00
2024-03-06 10:39:57 +01:00