Control Web Panel root command execution in /valid_token/ 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 /valid_token/ route that allows unauthenticated attackers to execute arbitrary commands as root by injecting shell metacharacters into the unvalidated 'user' parameter. Attackers can send a crafted request to the /valid_token/ route, which passes the parameter unescaped into a shell_exec() call.
From the CVE record · VulnCheck