On CloudLinux installations, shared hosting user can create hard links to any file on a node. Some automatic provisioning activities performed by Odin Automation Premium involve permission and ownership adjustments on a filesystem of a shared hosting node. By making hard link to a critical system file owned by root, malicious shared hosting user could trick Odin Automation to transfer file's ownership to the user and effectively gain root access to node by modifying that file.
The issue is fixed in CentOS 7 and Cloud Linux 6. Solution for these distributions is described in the appropriate article.
For Cloud Linux 5 apply the following solution:
For NG clustered environment:
- Review web servers included into the web cluster and identify number of Cloud Linux 5 - based nodes
- Add the same number of Cloud Linux 6 based hosts to keep capacity of the cluster. Use provider's guide as a reference.
- Remove Cloud Linux 5 hosts from the cluster
- For each Cloud Linux 6 server apply resolution from the appropriate article.
For NG standalone server:
The only possible solution is to switch Cloud Linux 5 to the hybrid kernel.
Perform the switch to the hybrid kernel:
# yum update rhn-setup # /usr/sbin/normal-to-hybrid # reboot
Ensure that loaded kernel version is
2.6.32(instead of non-hybrid kernel
Add the following lines to /etc/sysctl.conf file:
fs.protected_symlinks_create = 1 fs.protected_hardlinks_create = 1
Apply settings executing:
# sysctl -p