Summary
A missing authorization check in CyberPanel's cancelBackupCreation handler allows authenticated users to interfere with backup operations belonging to other tenants.
By sending crafted requests with arbitrary backup identifiers, an attacker can terminate backup jobs, delete backup archives, and corrupt backup metadata in multi-tenant environments.
Affected context
This vulnerability arises in CyberPanel deployments through version 1.9.1 that use its multi-tenant backup functionality.
The issue manifests in the HTTP handler responsible for cancelling backup creation, where authorization logic does not properly verify that the requesting user owns the targeted backup domain or file.
Any authenticated panel user in a shared environment, such as hosting providers or managed services, may be able to target other tenants' backups if network access to the control panel is available.
Exploit preconditions
- Attack surface: HTTP(S) interface of the CyberPanel control panel.
- Required access: Valid authenticated CyberPanel user account (non-admin privileges may suffice).
- Trigger point: The
cancelBackupCreationhandler invoked via crafted POST requests. - Why exploitation is possible: The handler trusts client-supplied
backupCancellationDomainandfileNameparameters without enforcing per-tenant authorization checks, allowing actions on resources not owned by the caller.
Why this happens
The core issue is a missing authorization control (CWE-862) on a state-changing operation in a multi-tenant context.
The cancelBackupCreation handler accepts user-supplied identifiers for backup domains and filenames and performs destructive actions—such as killing backup processes, deleting archives, and updating status files—without confirming that the authenticated user is entitled to manage those specific resources.
This absence of object-level access control breaks isolation between tenants, enabling one user to directly manipulate backup assets associated with other accounts.
Potential impact
- Attackers can terminate in-progress backup jobs for other tenants.
- Attackers can delete or remove backup archives belonging to other tenants.
- Attackers can corrupt backup status or metadata files, leading to inaccurate backup state reporting.
- Attackers can remove associated backup database records, complicating restoration and auditing.
- Tenants may lose critical backup data, reducing their ability to recover from other incidents.
General mitigation guidance
Effective mitigation centers on enforcing strict, object-level authorization for all backup-related operations.
Common defensive patterns include:
- Implementing ownership checks that tie each backup domain and file entry to a specific tenant or account and verifying this relationship on every state-changing request.
- Using server-side identifiers (e.g., internal IDs derived from session context) rather than trusting client-provided domain or filename parameters for resource selection.
- Applying a consistent access-control framework that covers all administrative handlers, especially those capable of deleting or modifying other users' resources.
- Restricting destructive backup operations (cancel, delete) to the least set of roles necessary and avoiding broad privileges for regular users.
- Designing the backup subsystem so that failures in authorization checks fail closed, denying operations when resource ownership is ambiguous.
How teams detect issues like this
Detection typically focuses on both code- and behavior-level indicators:
- Static analysis and code review: Flag handlers or controllers that perform delete, update, or cancel operations where resource selectors (domain, filename, ID) are derived from user input without subsequent authorization checks against the authenticated principal.
- Access-control policy review: Ensure that multi-tenant resources include explicit ownership fields and that each API path uses these fields for enforcement; absence of such linkage is a signal of potential CWE-862 issues.
- Audit logging and anomaly detection: Monitor for patterns where one user account repeatedly cancels or deletes backups across multiple unrelated domains, or where backup deletions spike unexpectedly.
- Automated security testing: Use tooling or scripted tests to attempt cross-tenant actions (e.g., using one tenant's session to operate on another tenant's backup identifiers) as part of continuous integration pipelines.

