GHSA-Q4RM-M6XH-5PV7 is a medium-severity security vulnerability in froxlor/froxlor (composer), affecting versions <= 2.3.6. It is fixed in 2.3.7.
Summary The Mysqls.add API command (lib/Froxlor/Api/Commands/Mysqls.php) accepts a customer-controlled mysqlserver parameter and only validates that the value is numeric and that the server index exists in userdata.inc.php. It never checks the value against the calling customer's allowedmysqlserver allowlist. A customer can therefore create a database, plus a MySQL user with a password they choose, on any MySQL server the operator has configured, including servers that were explicitly excluded from that customer (e.g. a separate cluster, premium-tier host, or another tenant pool). The same allowedmysqlserver check is correctly enforced in MysqlServer::get() / MysqlServer::listing() and in the customer-facing UI (customermysql.php), confirming the omission is a bug, not by-design. Details Vulnerable code path, lib/Froxlor/Api/Commands/Mysqls.php:69-99 (add()): The $customer['allowedmysqlserver'] field IS read on line 80 but is only consumed by getDefaultMySqlServer() (lines 566-573) to compute a default when the request omits mysqlserver. As soon as the client supplies the parameter, the default path is skipped and no further authorization gate runs. Cross-file evidence the check is intended elsewhere: lib/Froxlor/Api/Commands/MysqlServer.php:319-323, get() rejects with HTTP 405 when $dbserver is not in allowedmysqlserver: php if ($this->isAdmin() == false) { $allowedmysqls = jsondecode($this->getUserDetail('allowedmysqlserver'), true); if ($allowedmysqls === false || empty($allowedmysqls) || !inarray($dbserver, $allowedmysqls)) { throw new Exception("You cannot access this resource", 405); } ... } lib/Froxlor/Api/Commands/MysqlServer.php:252-257, same allowlist filter on listing(). customermysql.php:222, UI rejects with Response::dynamicError('No permission') when empty($allowedmysqlservers). Chain of execution (attacker → impact): Customer authenticates to api.php with apikey/secret. The only API gate is custapiallowed; allowedmysqlserver is not consulted at auth time. Customer sends JSON {"command":"Mysqls.add","params":{"mysqlpassword":"<valid>","mysqlserver":<disallowedidx>}}. Mysqls.php:71 quota check passes (mysqlsused < mysqls). Mysqls.php:80 getCustomerData('mysqls') returns the caller's own row. Mysqls.php:81 $dbserver is set from the request (default-fallback path skipped). Mysqls.php:92 numeric regex passes. Mysqls.php:93-99 Database::needRoot(true, $dbserver, false) switches to the root context of the attacker-chosen server; existence check passes. Mysqls.php:116/118 DbManager::createDatabase(...) runs against the disallowed server using stored root credentials, creating the DB and granting the supplied password to <loginname><sqlN> (DbManager.php:177-218). Mysqls.php:127-141 inserts a row into TABLEPANELDATABASES with the attacker's customerid and the disallowed dbserver, allowing later management via Mysqls.get/update/delete (which only filter by customerid for non-admins, e.g. Mysqls.php:282). PoC Preconditions on the target instance: ≥2 MySQL servers configured in lib/userdata.inc.php (e.g. index 0 default, index 1 internal/premium). Customer X with allowedmysqlserver=[0], custapiallowed=1, mysqls > 0, and an issued API key (apikey:secret). Request, customer creates a database on server 1, which is not in their allowlist: Expected (mirroring MysqlServer.get() behaviour): HTTP 405, "You cannot access this resource". Actual: HTTP 200 with the full database record, e.g.: Verify the credentials work on the forbidden server: The customer can subsequently manage the DB via Mysqls.get, Mysqls.update, and Mysqls.delete, those non-admin code paths filter only by customerid (Mysqls.php:282-289, Mysqls.php:380-391), which matches. Impact Bypass of the per-customer MySQL-server allowlist (allowedmysqlserver) enforced by the admin/reseller. The authorization model is fully defeated for the add operation. The customer obtains valid MySQL credentials on a server the operator explicitly excluded for them, possibly an internal/separate cluster, billing tier, premium-only host, or a server provisioned for a different tenant pool. The customer can persist a DB on the forbidden server (resource and policy bypass), then read/write data there, and continue to manage it through Mysqls.update / Mysqls.delete. Impact is bounded: privileges granted by DbManager::grantPrivilegesTo apply only to the new <loginname>sqlN database, so no cross-tenant data exposure on the forbidden server. The damage is policy bypass, resource consumption on the forbidden server, and credential persistence there. Recommended Fix Mirror the allowlist check already present in MysqlServer::get(). After the numeric validation on Mysqls.php:92, before Database::needRoot(...), add for non-admin callers: Audit Mysqls::update(), Mysqls::delete(), and Mysqls::get() for the same gap: those endpoints accept mysqlserver and ultimately call Database::needRoot(true, $result['dbserver'], false) on the row's stored value. Once the row exists with a forbidden dbserver, those paths execute against the forbidden server unchallenged. Consider rejecting any non-admin operation whose target row's dbserver is outside allowed_mysqlserver, even if the row already exists, to defend in depth.
GHSA-Q4RM-M6XH-5PV7 has a CVSS score of 4.3 (Medium). The vector is network-reachable, low privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment.
A fixed version is available (2.3.7). Upgrading removes the vulnerable code path.
composer
froxlor/froxlor (<= 2.3.6)froxlor/froxlor → 2.3.7 (composer)Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.
Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter instead of chasing every advisory.
Kodem's runtime-powered SCA identifies whether GHSA-Q4RM-M6XH-5PV7 is reachable in your applications. Explore open-source security for your team.
See if GHSA-Q4RM-M6XH-5PV7 is reachable in your applications. Get a demo
Already deployed Kodem? See GHSA-Q4RM-M6XH-5PV7 in your environment →Upgrade froxlor/froxlor to 2.3.7 or later to resolve this vulnerability.
Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.
GHSA-Q4RM-M6XH-5PV7 is a medium-severity security vulnerability in froxlor/froxlor (composer), affecting versions <= 2.3.6. It is fixed in 2.3.7.
GHSA-Q4RM-M6XH-5PV7 has a CVSS score of 4.3 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
froxlor/froxlor (composer) versions <= 2.3.6 is affected.
Yes. GHSA-Q4RM-M6XH-5PV7 is fixed in 2.3.7. Upgrade to this version or later.
Whether GHSA-Q4RM-M6XH-5PV7 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
Upgrade froxlor/froxlor to 2.3.7 or later.