1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-23 18:49:29 +03:00
Files
mariadb/scripts
Hemant Dangi dae315a7b2 MDEV-39648: wsrep_sst_rsync.sh: apply safe() to joiner-supplied parameters
Issue:
wsrep_sst_rsync.sh interpolated WSREP_SST_OPT_REMOTE_USER and
WSREP_SST_OPT_REMOTE_PSWD verbatim. Because both values originate from
the joiner side of the SST request, a newline in either could splice
an extra directive into the donor-written stunnel.conf (silently
downgrading peer-cert verification) or an extra line into the rsync
magic file. MDEV-39413 had introduced safe() for the same threat class
in wsrep_sst_mariabackup but did not extend it to the rsync script.

Solution:
Routing the rsync interpolations through safe() closes the gap, and
extending safe() to also reject tab and newline ensures multi-line
values cannot survive into a config-file heredoc.
2026-05-20 22:49:21 +02:00
..
2022-07-01 15:24:50 +03:00
2023-01-24 11:28:37 +11:00
2023-01-13 10:18:30 +02:00
2019-05-11 21:29:06 +03:00
2020-10-29 13:38:38 +02:00
2019-05-14 17:18:46 +03:00
2024-11-29 12:37:46 +02:00
2023-01-13 10:45:41 +02:00
2022-02-03 17:01:31 +01:00
2024-09-01 06:51:25 +02:00
2019-05-11 22:19:05 +03:00
2020-02-12 08:55:17 +01:00