CVE-2021-45467 in control-webpanel webpanel
LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.
What the vulnerability is
In CWP (aka Control Web Panel or CentOS Web Panel) before 0.9.8.1107, an unauthenticated attacker can use %00 bytes to cause /user/loader.php to register an arbitrary API key, as demonstrated by a /user/loader.php?api=1&scripts= .%00./.%00./api/account_new_create&acc=guadaapi URI. Any number of %00 instances can be used, e.g., .%00%00%00./.%00%00%00./api/account_new_create could also be used for the scripts parameter.
Affected software: control-webpanel webpanel
Scores
- CVSS: 9.8 (critical)
- EPSS: 70.75% chance of exploitation in the next 30 days
- CISA KEV: Not listed
- Published: 2022-12-26
What LogPulse has for it
- Detection rule: Yes, published
- Agent check (vulnerable version): No
- Mitigation: Yes, see below
How to mitigate it
Update CentOS Web Panel (CWP) to 0.9.8.1107 or later
Patch or upgrade. Current CWP releases fix the %00 login bypass in loader.php (CVE-2021-45467) and the file_editor traversal (CVE-2018-18323), so remote users can no longer register API keys or read server files.
Applies to: CentOS Web Panel before 0.9.8.1107 (CVE-2021-45467) and 0.9.8.480 file_editor (CVE-2018-18323).
- Check the CWP version on the admin dashboard.
- Run sh /scripts/update_cwp as root to update CWP to the current release (0.9.8.1107 or later).
- Keep the CWP ports (2030, 2031, 2082, 2083, 2086, 2087) reachable only from admin networks.
- Review Server Settings > API Manager for keys you did not create and remove them.
- Rerun the vulnerability scan and confirm CVE-2021-45467 and CVE-2018-18323 are no longer reported.
Sources:
Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.
We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.