CVE-2024-51567 in cyberpanel
LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.
What the vulnerability is
upgrademysqlstatus in databases/views.py in CyberPanel (aka Cyber Panel) before 5b08cd6 allows remote attackers to bypass authentication and execute arbitrary commands via /dataBases/upgrademysqlstatus by bypassing secMiddleware (which is only for a POST request) and using shell metacharacters in the statusfile property, as exploited in the wild in October 2024 by PSAUX. Versions through 2.3.6 and (unpatched) 2.3.7 are affected.
Affected software: cyberpanel
Scores
- CVSS: 9.8 (critical)
- EPSS: 85.22% chance of exploitation in the next 30 days
- CISA KEV: Known exploited, listed 2024-11-07, used in ransomware
- Published: 2024-10-29
What LogPulse has for it
- Detection rule: Yes, published
- Agent check (vulnerable version): No
- Mitigation: Yes, see below
How to mitigate it
Upgrade CyberPanel for the upgrademysqlstatus command injection (CVE-2024-51378, CVE-2024-51567)
Patch or upgrade. CyberPanel before the October 2024 security patch lets unauthenticated attackers run commands as root through upgrademysqlstatus and statusfile; the PSAUX ransomware hit thousands of servers this way. The vendor patch and upgrade close it.
Applies to: CyberPanel 2.3.6 and unpatched 2.3.7.
- Check the CyberPanel version on the server.
- Upgrade CyberPanel to the release with the October 2024 security fix as the CyberPanel blog post describes (sh <(curl https://cyberpanel.net/install.sh) or the upgrade script).
- Allow port 8090 only from admin IPs with the host firewall.
- Look for encrypted files with the .psaux extension, unknown cron jobs and new SSH keys.
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.