Control Web Panel root command execution in database restore route
Control Web Panel
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Control Web Panel Control Web Panel |
| No fix yet |
Original 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.
From the CVE record · VulnCheck