All vulnerabilities

Servers and applications

GHSA-px4q-2rf7-cvcf

FTP-data deletion cron task runs `rm -rf` as root through customer-planted symlinks (no containment check at cron time)

Severity
High
Published
6 Sept 2026
Last changed
6 Sept 2026
Added to UpHeron
1 Nov 2026
Fixed in
2.3.12
Weakness
Link following (CWE-59)
Sources
Project advisories (GitHub)

Description

Cron task 8 (deleteFtpData, fired when an FTP account is deleted) performs rm -rf on the FTP homedir as root with only string-level guards. Because the customer controls the directory contents of their FTP home until the cron runs, a planted symlink — as an intermediate path component, and (due to a trailing slash) even as the final component — redirects the recursive deletion into an arbitrary directory tree.

Two compounding behaviors:

  • makeCorrectDir($homedir) without the $fixed_homedir parameter never performs the symlink component walk at all; a symlinked path's string stays inside the docroot, so the guards pass.
  • makeCorrectDir always appends / (FileDir.php:124-126), and GNU coreutils rm -rf link/ dereferences a final-component symlink (whereas slash-less rm -rf link merely unlinks it). Both intermediate- and final-component arrangements therefore work. --preserve-root guards only the literal /.
From froxlor/froxlor's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
FroxlorServers and applications · github:froxlor/froxlor
  • Every version before 2.3.12

About Froxlor

The server administration software for your needs - The official Froxlor development Git repository

From its GitHub repository.
Monthly downloads (Packagist)
159Packagist, 15 Nov 2026
Total downloads (Packagist)
406Packagist, 15 Nov 2026
GitHub stars
1,752GitHub, 15 Nov 2026
Forks
467GitHub, 15 Nov 2026
Latest release
2.3.17GitHub, 15 Nov 2026
Released
8 Nov 2026GitHub
License
GNU Lesser General Public License, version 2.1Wikidata
Written in
PHPWikidata
First published on GitHub
6 Mar 2012GitHub

References