Control Web Panel (CWP) before webpanel_version 1.16 contains a SQL injection vulnerability in the loopback API authentication gate access_token(), which connects to MySQL as root and interpolates attacker-controlled values directly into its query. Attackers can inject SQL through the authorization_code and client_id parameters to read arbitrary database contents and forge the authentication result, bypassing the API's authentication check.
| Version | Type | Source | Base | Exp | Imp |
|---|---|---|---|---|---|
| 3.1 | Primary | NVD | 7.1 | 1.8 | 5.2 |
| 3.1 | Primary | cve.org | 7.1 | — | — |
| 3.1 | Secondary | NVD | 7.7 | 2.5 | 5.2 |
| 4.0 | Primary | cve.org | 8.4 | — | — |
| 4.0 | Secondary | ENISA EUVD | 8.5 | — | — |
| 4.0 | Secondary | NVD | 8.4 | — | — |