GHSA-jvx4-xv3m-hrj4
## Summary In `Domains.add()`, the `adminid` parameter is accepted from user input and used without validation when the calling reseller does not have the `customers_see_all` permission. This allows a reseller to attribute newly created domains to any other admin, bypassing their own domain quota (since the wrong admin's `domains_used` counter is incremented) and potentially exhausting another admin's quota. ## Details In `lib/Froxlor/Api/Commands/Domains.php`, the `add()` method accepts `adminid` as an optional parameter at line 327: ```php $adminid = intval($this->getParam('adminid', true, $this->getUserDetail('adminid'))); ``` The validation for this parameter only runs when the caller has `customers_see_all == '1'` (lines 410-421): ```php if ($this->getUserDetail('customers_see_all') == '1' && $adminid != $this->getUserDetail('adminid')) { $admin_stmt = Database::prepare(" SELECT * FROM `" . TABLE_PANEL_ADMINS . "` WHERE `adminid` = :adminid AND (`domains_used` < `domains` OR `domains` = '-1')"); $admin = Database::pexecute_first($admin_stmt, [ 'adminid' => $adminid ], true, true); if (empty($admin)) { Response::dynamicError("Selected admin cannot have any more domains or could not be found"); } unset($admin); } ``` When a reseller does **not** have `customers_see_all` (the common case for limited resellers), there is no `else` branch to force `$adminid = $this->getUserDetail('adminid')`. The unvalidated `$adminid` flows directly into: 1. The domain INSERT at line 757: `'adminid' => $adminid` 2. The quota increment at lines 862-868: ```php $upd_stmt = Database::prepare(" UPDATE `" . TABLE_PANEL_ADMINS . "` SET `domains_used` = `domains_used` + 1 WHERE `adminid` = :adminid "); Database::pexecute($upd_stmt, ['adminid' => $adminid], true, true); ``` Compare with `Domains.update()` at lines 1386-1387 which correctly handles this case: ```php } else { $adminid = $result['adminid']; } ``` T
Properties
- ghsa_id
- GHSA-jvx4-xv3m-hrj4
- severity
- medium
- summary
- Froxlor has a Reseller Domain Quota Bypass via Unvalidated adminid Parameter in Domains.add()
- cvss_score
- 5.4
- cve_id
- GHSA-jvx4-xv3m-hrj4
- cvss_vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
- is_ghsa_only
- true
- ghsa_published
- 2026-04-16T00:46:47Z
- source_url
- https://github.com/advisories/GHSA-jvx4-xv3m-hrj4
- ghsa_updated
- 2026-04-16T00:46:47Z
Related Entities (4)
REPORTED_BY (1)
VULNERABLE_TO (1)
AFFECTS (1)
HAS_WEAKNESS (1)
Explore deeper with Ninja Signal's threat intelligence graph