Summary
Froxlor exposes API keys and secrets for accounts beyond the permitted scope to administrators with the customers_see_all privilege. If the super administrator's credentials are disclosed, they may be replayed against the API to obtain super-administrator control.
Affected context
The issue occurs in Froxlor's API key management functionality, specifically the account details exposed through api_keys.php. It becomes risky when an administrator with customers_see_all access can view API key details for accounts outside their intended scope, including the super administrator's credentials.
Exploit preconditions
- Attack surface: Froxlor's API key management page and its account detail modal
- Required access: An authenticated administrator with the
customers_see_allprivilege - Trigger point: Viewing API key details through the affected account listing
- Why exploitation is possible: An unscoped query can return API key records across accounts, exposing secrets to users who should not be able to view them
Why this happens
The underlying issue is insufficient authorization scoping when retrieving sensitive API key records. An unscoped query equivalent to WHERE 1 can return credentials for all accounts rather than limiting results to those the current administrator is authorized to access. This is an information exposure weakness mapped to CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Potential impact
- An administrator with broad customer visibility may obtain API keys and secrets belonging to other accounts
- A disclosed super-administrator API key and secret could be replayed to gain elevated control
- Exposed credentials could be used to access or modify data and services available through the API
- Credential disclosure could complicate incident response and require review of API activity
General mitigation guidance
Defensive patterns focus on enforcing authorization at the data-access boundary and minimizing exposure of secrets.
- Scope every credential query to the accounts the requesting user is authorized to manage
- Apply server-side authorization checks before returning sensitive account details
- Avoid displaying complete secrets when a masked value or one-time reveal is sufficient
- Store and handle API credentials using secure secret-management practices
- Apply least privilege to administrator roles and make broad customer visibility an explicit, reviewed permission
- Provide a process to revoke and rotate credentials that may have been exposed
How teams detect issues like this
- Review database queries and API handlers for credential retrieval that lacks tenant, account, or user authorization filters
- Use static analysis and code review checks to flag unscoped queries involving secrets or credentials
- Test access boundaries with accounts that have different customer-visibility permissions
- Monitor API credential viewing and use, especially access to credentials belonging to other accounts
- Enforce policy checks requiring authorization before sensitive data is returned

