Froxlor до 2.3.12 не ограничивает и не избегает настройки system.letsencryptchallengepath: в отличие от настроек брата, закаленных в GHSA-33mp, поле не имеет защиты string_regexp или required_otp, и его значение встроено в командную строку acme.sh, построенную в lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php, и выполняется корневой cron через FileDir::safe_exec. Поскольку в safe_exec только черные списки оболочек метасимволов, таких как ; & > < $ ?, пробелы и кавычки сохраняются, и значение делится на дополнительные аргументы acme.sh. Администратор или любой участник, способный записывать настройки (например, через settings-import API), может вводить опции acme.sh, такие как --renew-hook, --pre-hook или --post-hook, чтобы получить произвольное выполнение команды как root при следующем запуске cron Let's Encrypt или использовать --config-home/-cert-home для произвольной записи файлов.
Затронуты версии до 2.3.10 включительно; проблема исправлена в 2.3.12.
Показать оригинальное описание (EN)
Froxlor before 2.3.12 does not restrict or escape the system.letsencryptchallengepath setting: unlike sibling settings hardened in GHSA-33mp, the field has no string_regexp or required_otp guard, and its value is concatenated unescaped into the acme.sh command line built in lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php and executed by the root cron via FileDir::safe_exec. Because safe_exec only blacklists shell metacharacters such as ; | & > < \ $ ~ ?, spaces and quotes survive and the value is word-split into additional acme.sh arguments. An administrator, or any actor able to write settings (for example through the settings-import API), can therefore inject acme.sh options such as --renew-hook, --pre-hook or --post-hook to obtain arbitrary command execution as root at the next Let's Encrypt cron run, or use --config-home/--cert-home for arbitrary file writes. Versions up to and including 2.3.10 are affected; the issue is fixed in 2.3.12.
Характеристики атаки
Последствия
Строка CVSS v4.0