CVE Catalog

CVE-2024-58383

HighCVSS 7.3
Published: Translated: NVD NIST

Summary

Froxlor before 2.2.0 (affected up to and including 2.2.0-rc3) generates /etc/pure-ftpd/db/mysql.conf with mode 0644 via the XML configuration templates in lib/configfiles/, even though the file contains the Froxlor SQL user's password. On systems where the parent directories are world readable (the default on Debian 12), any unprivileged local user able to execute commands or code on the host — including virtual users without SSH access who can upload PHP/CGI scripts — can read the file and obtain the Froxlor database credentials. Database access can then be leveraged to alter an administrator's password hash and TOTP seed, log in as a Froxlor administrator, and ultimately gain root privileges. Only instances configured to use pure-ftpd are affected.

Risk Assessment

A local unprivileged user can obtain database credentials, take over the Froxlor administrator account, and escalate privileges to root, leading to full server compromise.

Recommendation

Upgrade Froxlor to version 2.2.0 or later. Immediately change the permissions of /etc/pure-ftpd/db/mysql.conf to 0600 and restrict access to parent directories.

Other vulnerabilities in Froxlor

See all
Original NVD description (English source)

Froxlor before 2.2.0 (affected up to and including 2.2.0-rc3) generates /etc/pure-ftpd/db/mysql.conf with mode 0644 via the XML configuration templates in lib/configfiles/, even though the file contains the Froxlor SQL user's password. On systems where the parent directories are world readable (the default on Debian 12), any unprivileged local user able to execute commands or code on the host — including virtual users without SSH access who can upload PHP/CGI scripts — can read the file and obtain the Froxlor database credentials. Database access can then be leveraged to alter an administrator's password hash and TOTP seed, log in as a Froxlor administrator, and ultimately gain root privileges. Only instances configured to use pure-ftpd are affected.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS