CVE-2026-100713
Beschrijving NL
Froxlor 2.3.10 en eerder bevatten een time-of-check time-of-use (TOCTOU) racevoorwaarde in de SSH-sleutelsynchronisatie cron (lib/Froxlor/Cron/System/SshKeys.php, SshKeys::generateFiles). De containment/symlink-validatie uitgevoerd door FileDir:: makeCorrectDir ()/makeCorrectFile () wordt alleen uitgevoerd tijdens de controle; het live pad van het bestandssysteem wordt opnieuw opgelost als root tijdens het schrijven (file_put_contents met FILE_APPEND|LOCK_EX, gevolgd door chmod/chown/chgrp), met een database round-trip en het bestand wordt ertussen gelezen, en er wordt geen pad of bestandsbeschrijver vastgezet (geen O_NOFOLLOW of openat2 (RESOLVE_NO_SYMLINKS)). Op installaties waar het niet-standaard instellingssysteem.allow_customer_shell =1 klanten lokale shell-toegang verleent, kan een klant na de controle en vóór het schrijven atomisch hun ~/.ssh-directory omwisselen voor een symlink, waardoor de root-run cron de openbare sleutel van de klant toevoegt aan /root/.ssh/authorized_keys en chown /root/.ssh aan de klant, wat resulteert in volledige rootcompromis van de paneelhost. De cron wordt op elk interval opnieuw uitgevoerd, waardoor onbeperkte pogingen mogelijk zijn. Dit is een restrace die de check-time fix voor GHSA-mq5v-... omzeilt. Het probleem is opgelost in Froxlor 2.3.12.
Origineel (Engels) tonen
Froxlor 2.3.10 and earlier contain a time-of-check time-of-use (TOCTOU) race condition in the SSH key synchronization cron (lib/Froxlor/Cron/System/SshKeys.php, SshKeys::generateFiles). The containment/symlink validation performed by FileDir::makeCorrectDir()/makeCorrectFile() is done only at check time; the live filesystem path is re-resolved as root at write time (file_put_contents with FILE_APPEND|LOCK_EX, followed by chmod/chown/chgrp), with a database round-trip and file reads in between, and no path or file-descriptor pinning (no O_NOFOLLOW or openat2(RESOLVE_NO_SYMLINKS)). On installations where the non-default setting system.allow_customer_shell=1 grants customers local shell access, a customer can atomically swap their ~/.ssh directory for a symlink after the check and before the write, causing the root-run cron to append the customer's public key to /root/.ssh/authorized_keys and to chown /root/.ssh to the customer, resulting in full root compromise of the panel host. The cron re-runs on every interval, allowing unlimited attempts. This is a residual race that bypasses the check-time fix introduced for GHSA-mq5v-... . The issue is fixed in Froxlor 2.3.12.