Description
CyberPanel before 3.0.9 contains a path traversal vulnerability in the cancelRemoteBackup handler in backup/backupManager.py that allows users with the remoteBackups permission to delete arbitrary directories via the unvalidated dir parameter. Attackers can send traversal sequences or space-separated paths in dir to POST /backup/cancelRemoteBackup, causing root-executed rm -rf to delete arbitrary server directories.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| usmannasir | CyberPanel | < 3.0.9 | 3.0.9 |
References
- https://github.com/usmannasir/cyberpanel/commit/8feebf1f06a58d4eb4b486657002114bc146f6ae patch
- https://github.com/usmannasir/cyberpanel/commit/c2f7aa598476e71a3eb2ec570c347fd4d23be8ea patch
- https://github.com/usmannasir/cyberpanel/blob/5ebf53d24375d1facad080017a4d5556cb092938/backup/backupManager.py#L1518-L1561 technical-description
- VulnCheck Advisory: CyberPanel before 3.0.9 Path Traversal via cancelRemoteBackup Handler third-party-advisory