Description
Control Web Panel (CWP) before webpanel_version 1.29 contains an OS command injection vulnerability in the loopback API database restore route /v1/restoredatabase/, where the restoreDBBackup() handler passes an attacker-controlled file path from the POST body into a shell command without proper escaping. An attacker able to reach the route can inject arbitrary OS commands that execute as root.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Control Web Panel | Control Web Panel | < 1.29 | 1.29 |
References
- Changelog release-notes patch
- VulnCheck Blog technical-description exploit
- VulnCheck Advisory: Control Web Panel (CWP) < 1.30 OS Command Injection via restoredatabase API third-party-advisory