opnsense-src/usr.sbin/bsdinstall/scripts
Renato Botelho e13b3978d0 bsdinstall: Avoid invoking eval on the wlan SSID list
The wlanconfig utility is not careful about handling untrusted network
names, which can contain shell metacharacters.  Factor network selection
into a subroutine and use the `set -- "$@"` trick to build up a list of
positional parameters for bsddialog without evaluating them.

Approved by:	so
Security:	FreeBSD-SA-26:23.bsdinstall
Security:	CVE-2026-45255
Reported by:	Austin Ralls
Reviewed by:	dteske, des, asiciliano
Differential Revision:	https://reviews.freebsd.org/D56973
2026-05-21 07:32:56 +02:00
..
adduser Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
auto bsdinstall: Mount /dev and /packages after using the shell to partition disks 2026-01-10 08:59:45 +01:00
bootconfig bsdinstall: fix EFI boot entry creation 2026-02-27 19:22:23 +01:00
checksum bsdinstall: Encode dists to valid variable names in checksum script 2023-12-13 21:45:45 +00:00
config Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
docsinstall bsdinstall: update comment related to pkg 2024-05-02 21:07:33 +00:00
entropy Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
fetchmissingdists Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
firmware bsdinstall: add menu to install firmware 2024-11-21 00:04:57 +00:00
hardening Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
hostname Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
jail bsdinstall: Fix typos 2025-10-23 08:11:56 +02:00
keymap bsdinstall: Fix typos 2025-10-23 08:11:56 +02:00
Makefile bsdinstall: Mount /dev and /packages after using the shell to partition disks 2026-01-10 08:59:45 +01:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
mirrorselect installer: Add download.freebsd.org to mirror list 2026-04-30 07:39:21 +02:00
mount bsdinstall: Mount /dev and /packages after using the shell to partition disks 2026-01-10 08:59:45 +01:00
mount_aux bsdinstall: Mount /dev and /packages after using the shell to partition disks 2026-01-10 08:59:45 +01:00
netconfig bsdinstall: Drop Error from title in netconfig no interfaces dialog 2024-09-07 01:00:51 +01:00
netconfig_ipv4 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
netconfig_ipv6 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rootpass Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
script bsdinstall: Fix typos 2025-10-23 08:11:56 +02:00
services Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
time Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
umount Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
wlanconfig bsdinstall: Avoid invoking eval on the wlan SSID list 2026-05-21 07:32:56 +02:00
zfsboot bsdinstall: Use fat32 EFI system partition for ZFS 2025-11-20 12:16:01 -05:00