Описание
Froxlor has a Reseller Domain Quota Bypass via Unvalidated adminid Parameter in Domains.add()
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:
The validation for this parameter only runs when the caller has customers_see_all == '1' (lines 410-421):
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:
- The domain INSERT at line 757:
'adminid' => $adminid - The quota increment at lines 862-868:
Compare with Domains.update() at lines 1386-1387 which correctly handles this case:
The initial quota check at line 321 checks the caller's own quota ($this->getUserDetail('domains_used')), but since the caller's domains_used is never incremented (the wrong admin's counter is incremented instead), this check passes indefinitely.
Note: The getCustomerData() call at line 407 does correctly restrict the customerid to the reseller's own customers (via Customers.get which filters by adminid). However, this does not prevent the adminid field itself from being spoofed.
PoC
Impact
- Quota bypass: A reseller can create unlimited domains beyond their allocated quota, since their own
domains_usedcounter is never incremented. - Quota exhaustion DoS: The target admin's
domains_usedcounter is incremented instead, potentially exhausting their quota and preventing legitimate domain creation. - Data integrity violation: Domains are associated with an admin who does not own the customer, breaking the ownership model. These domains become invisible to the reseller in domain listings (which filter by
adminid) but remain active on the server. - Accounting inaccuracy: Resource usage reporting and billing tied to admin quotas becomes incorrect.
Recommended Fix
Add an else branch to force $adminid to the caller's own admin ID when customers_see_all != '1', consistent with the pattern used in Domains.update():
Пакеты
froxlor/froxlor
<= 2.3.5
2.3.6
Связанные уязвимости
Froxlor is open source server administration software. Prior to version 2.3.6, 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. Version 2.3.6 fixes the issue.
Froxlor is open source server administration software. Prior to versio ...