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!

webshell - /dev/shm and /tmp

Discussion in 'Security' started by saros, Mar 11, 2014.

  1. saros

    saros Active Member

    Aug 28, 2013
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    What better way to block these scripts?

    - removed -

    I would like to lock in my server...

    I installed the system ConfigServer eXploit Scanner (cxs) ,but not solved 100%

    Takes too long to detect and delete.

    What function should I disable and not affect other sites?
    #1 saros, Mar 11, 2014
    Last edited by a moderator: Mar 11, 2014
  2. quizknows

    quizknows Well-Known Member

    Oct 20, 2009
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    DataCenter Provider
    /dev/shm and /tmp are world writeable; any user can write files there.

    There is no 100% way to block these. ModSecurity and CXS can help. However the only way to not have your customers be infected with these is to make them keep their CMS software (joomla, wordpress, etc.) fully updated and with good strong administrative passwords.

    You can also set in /usr/local/lib/php.ini the disable_functions setting to disallow exec and other risky php functions. Mine is set something like:
     disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, as quizknows mentioned, the best way to avoid these types of attacks is to make sure your customers use updated versions of their scripts with strong passwords. This might seem like a tedious task, but in the long run it's a good investment of your time compared to the time it might take to handle an account that has been exploited.

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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