Skip to main content

Symlink Race Condition Protection

Comments

6 comments

  • SysSachin
    You are using EA4 on your server so you need to enable Symlink Protection options in the WHM >> Service Configuration >> Apache Configuration
    SymlinkProtect On|Off SymlinkProtectRoot /var/www/html
    0
  • PCZero
    Thanks for the response. When I go to WHM >> Service Configuration >> Apache Configuration have several options and I am guessing that the settinsg you reference should be under Global Configuration, however I am not sure where to make the changes. The only reference to SymLinks I see there are the following Directory "/" options ExecCGI default FollowSymLinks default Includes IncludesNOEXEC default Indexes default MultiViews SymLinksIfOwnerMatch default I am old and stupid thus I need the hold my hand instructions please!
    0
  • cPanelMichael
    Hello @PCZero,
    YELLOW - Apache Symlink Protection: the Bluehost provided Apache patch is in effect. It appears that the Bluehost provided Apache patch is being used to provide symlink protection. This is less than optimal. Please review Symlink Race Condition Protection

    This is likely a false positive, and is discussed on the following thread: Apache Symlink Protection is enabled Additionally, I don't recommend enabling this feature unless it's the only option available on your system. It's documented at: cPanel Documentation - BlueHost Patch
    RED - Kernel does not support the prevention of symlink ownership attacks.You do not appear to have any symlink protection enabled through a properly patched kernel on this server, which provides additional protections beyond those solutions employed in userland. Please review the documentation to learn how to apply this protection.

    This message is suggesting a kernel-level solution, such as the cPanel hardened kernel. The updated link for EasyApache 4 is: Symlink Race Condition Protection - EasyApache 4 - cPanel Documentation @SysSachin, that option is actually only recommended as a last resort if additional symlink protection options aren't possible on the system. In addition, the option isn't available in the UI until cPanel version 62. This is discussed at:
    0
  • PCZero
    Michael I do not like the use of that option either. My issue is that I never enabled it and historically I had and still have ruid2 installed. I am still getting these warnings and errors. I am going to read the documentation you linked to see if that offers help. FYI CloudLinux is NOT an option. I will see if hardening the kernel is available to resolve this. However I am still concerned about getting that second flag. Again I never did anything to install/enable that. Shoudl I be concerned and do I need to uninstall anything?
    0
  • PCZero
    Michael done. I ran the cpanel kernel hardening and all is well. Both issues are no longer being reported. Thanks!
    0
  • cPanelMichael
    However I am still concerned about getting that second flag. Again I never did anything to install/enable that. Shoudl I be concerned and do I need to uninstall anything?

    Hello, It's not actually enabled by default. That's a false positive and is discussed at: Apache Symlink Protection is enabled Thanks!
    0

Please sign in to leave a comment.