Situation
A vulnerability was found in the advanced-rule parser in the ConfigServer Security & Firewall (CSF) software which could allow a remote attacker who controls a configured allow/deny feed to execute arbitrary commands as root.
Note: By default, no remote allow/deny feed is configured.
Affected Product versions
| Product | Affected Versions | Patched Versions |
|---|---|---|
| CSF | 2.15 through 16.29 | 16.30+ |
Impact
Successful exploitation leads to code execution as the root user, giving an attacker full control of the server.
Call to action
Update to the latest version of the ConfigServer Firewall plugin:
# yum clean all
# /scripts/update-packages
# dnf clean all
# /scripts/update-packages
# apt update
# /scripts/update-packages
Mitigation
It is highly recommended that you update the installed CSF version as soon as possible.
This vulnerability is only reachable on servers configured to pull a remote allow or deny list. If updating is not possible, review those settings and remove any feed you do not fully control and trust.
- Access the server as the
rootuser via SSH, or the Terminal in WHM. Edit the CSF configuration file:
# nano /etc/csf/csf.conf
Review the
GLOBAL_DENYandGLOBAL_ALLOWoptions and clear any untrusted feed URL:CONFIG_TEXT: GLOBAL_DENY = ""
CONFIG_TEXT: GLOBAL_ALLOW = ""
Save and restart the CSF and LFD services:
# systemctl restart csf lfd
Note: rule data from a previously configured feed is cached on disk and re-applied when the service restarts. After updating or clearing the feed settings, review the cached list at /var/lib/csf/csf.gdeny.
Comments
0 comments
Article is closed for comments.