/

CVE-2026-65917

Severity:

HIGH RISK

(8.8)

IDOR (CWE-639) in CyberPanel incremental backups

CVE-2026-65917

Deferred

Vulnerability type

Category:

Insecure Direct Object Reference (IDOR)

CWE:

CWE-639

Impact:

Privilege Escalation and Cross-Tenant Data Compromise

Severity:

HIGH RISK

(8.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

CyberPanel's incremental backup handlers contain an insecure direct object reference (IDOR) that lets authenticated users operate on backup jobs outside their own tenant boundary.

By manipulating a globally sequential backup job ID, an attacker can enumerate and access other tenants' backup metadata, delete their snapshots, or trigger unauthorized restores under elevated privileges.

Affected context

This vulnerability appears in CyberPanel's multi-tenant backup environment where:

  • Incremental backup operations share a global IncJob ID namespace across tenants
  • Backup handlers (deleteBackup, fetchRestorePoints, restorePoint) accept caller-supplied IDs
  • Authorization is performed at the user or panel level, but IDs are not re-scoped or validated to a specific tenant domain

The risk is most pronounced in deployments that rely on incremental backups for disaster recovery or cross-tenant isolation and assume backup identifiers are inherently bound to the requesting tenant.

Exploit preconditions

  • Attack surface: CyberPanel web UI or API endpoints implementing incremental backup actions
  • Required access: Any authenticated panel account with permission to invoke backup-related handlers
  • Trigger point: Calling deleteBackup, fetchRestorePoints, or restorePoint with an attacker-chosen IncJob integer ID
  • Why exploitation is possible: The backup job ID is globally sequential and used directly as an object reference without re-scoping or verifying that it belongs to the caller's tenant or domain. As a result, the authorization layer checks that a user can perform backup operations in general, but not whether the specific backup resource identified by IncJob is owned by that user's tenant.

Why this happens

The underlying bug class is an insecure direct object reference (IDOR) mapped to CWE-639.

In the incremental backup implementation, the application trusts a user-supplied IncJob integer as the canonical locator for backup resources and passes it through to storage or orchestration layers without enforcing a tenant-specific ownership check. There is no secondary lookup that ties the IncJob to the authenticated domain or tenant before performing actions like listing restore points, deleting snapshots, or launching restore jobs. This insecure pattern treats a raw identifier as sufficient authorization context, allowing one tenant to act on another tenant's backup data whenever they can guess or enumerate valid IDs.

Potential impact

  • An attacker may read backup metadata associated with other tenants' jobs (e.g., timestamps, labels, size information).
  • An attacker could irreversibly delete another tenant's incremental backup snapshots, degrading their disaster recovery posture.
  • An attacker can trigger restoration of another tenant's backup job, potentially overwriting systems with data under root-level privileges.
  • Cross-tenant isolation may be broken, exposing sensitive operational or configuration data captured in backups.
  • Misuse of restore operations could lead to service disruption or data corruption across affected tenants.

General mitigation guidance

Effective mitigation focuses on enforcing strict resource scoping and robust authorization around backup identifiers.

Common defensive patterns include:

  • Treating backup job IDs as opaque internal references, never as sole authorization tokens, and always resolving them through a tenant-scoped query tied to the authenticated principal.
  • Introducing ownership checks where each requested backup resource (job, snapshot, restore point) must be associated with the caller's tenant, domain, or account before any operation is executed.
  • Designing APIs to derive resource identifiers from the authenticated context rather than allowing arbitrary caller-supplied IDs, e.g., listing only backups belonging to the current tenant and acting on selections from that list.
  • Using access-control layers that operate on domain or tenant attributes instead of raw numeric IDs, ensuring multi-tenant isolation is enforced consistently.
  • Applying least-privilege principles so backup operations are limited to administrative roles that are themselves isolated per tenant.

How teams detect issues like this

Detection typically combines code-level analysis and behavioral monitoring:

  • Static analysis and manual code review can flag patterns where user-controlled identifiers (such as IncJob) are used directly in database queries or object fetches without an accompanying ownership or tenant-domain check.
  • Review of controller or handler logic for backup operations should focus on whether authorization decisions are based solely on the existence of a resource ID rather than on an authenticated principal's relationship to that resource.
  • Access-control policies can be enforced at the data layer, verifying that queries for backup jobs always include tenant or domain scoping, making unsafely broad queries more visible.
  • Application logging and monitoring can help detect unusual cross-tenant access, such as one account enumerating many sequential backup IDs or attempting restore operations on unfamiliar resources.
  • Automated security testing tools and API fuzzers can be configured to vary object IDs in authenticated requests to identify endpoints that return or modify resources beyond the caller's scope.

Sources

SourceLink
github.comgithub.com/usmannasir/cyberpanel/commit/b1984603f9b0099b39bca46fea176e53b6d4d601
github.comgithub.com/usmannasir/cyberpanel/issues/1828
vulncheck.comvulncheck.com/advisories/cyberpanel-incbackups-idor-via-sequential-backup-id

Frequently asked

questions

No. Exploitation generally requires an authenticated CyberPanel account with permission to access backup functionality. However, even low-privilege authenticated users may be able to affect other tenants' backup resources due to the missing ownership checks.

The attacker needs an account that can invoke incremental backup handlers such as deleteBackup, fetchRestorePoints, or restorePoint. Once logged in, they can manipulate the IncJob identifier to target backup jobs belonging to other tenants.

The safest pattern is to ensure that every backup operation resolves the requested IncJob through a tenant-scoped query tied to the authenticated user or domain. If the backup job is not owned by the caller's tenant, the operation should be denied, regardless of the numeric ID supplied.

Prevention hinges on designing APIs so that identifiers are never the sole basis for authorization. Adopt a consistent access-control model that always binds resources to tenants or principals, employ centralized authorization checks, and incorporate security-focused code review and automated tests that deliberately vary IDs to detect cross-tenant access paths.

Find out what's already
exploitable in your codebase.