Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

patch not working

Discussion in 'Security' started by NewLegend, Aug 9, 2013.

  1. NewLegend

    NewLegend Member

    Joined:
    Dec 22, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi ,

    My server got hacked by create symlink to root, Now I trying to fix this security hole. The general recommendation is to use something like grsecurity kernel or rack911 symlink patch. But rack911 not working in my server, the below is my server information:

    • CENTOS 5 – cPanel WHM 11.38.1 (build 15)
    • root_options: ExecCGI, FollowSymLinks, IncludesNOEXEC, Indexes, SymLinksIfOwnerMatch.


    I did this steps in my server,
    1. wget http://layer1.rack911.com/before_apache_make -O /scripts/before_apache_make
    2. chmod 700 /scripts/before_apache_make

    3. Rebuild apache after.
    /scripts/easyapache

    Now after all that, I can create symlink to root ?! Please advice me ,,
     
  2. quizknows

    quizknows Well-Known Member

    Joined:
    Oct 20, 2009
    Messages:
    1,010
    Likes Received:
    87
    Trophy Points:
    78
    cPanel Access Level:
    DataCenter Provider
    you can still make the links, the patch only stops following them via apache. As long as you compiled 2.2.x apache (not 2.0 or 2.4) you should be OK.

    To test, make the symlink inside of a public_html directory, then browse to the symlink name in a browser. I'm not going to list instructions because if you carelessly remove the symlink you can accidently remove the target file(s).

    I strongly recommend cloudlinux with securelinks enabled in the modhostinglimits.conf
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,623
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice