The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Spooky Wordpress plugin Wordfence scan telling whole disk space

Discussion in 'Security' started by whnewbie, Aug 4, 2014.

  1. whnewbie

    whnewbie Member

    Jan 1, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    My setup is cPanel / WHM 11.44 (latest), CloudLinux 6 (latest), Apache 2.4, Native PHP 5.4 (latest in EasyApache), CageFS and PHP Selector (CloudLinux)

    Just installed a Wordpress site and tried out a security plugin "Wordfence". During its "scan", I found that Wordfence could find out the disk space of the server and disk spaced used (and hence free disk space). This is rather spooky.

    I wonder how they manage to do this and wonder if this affects security of the server. Any way to prevent this is nice as I prefer more "privacy".

  2. quizknows

    quizknows Well-Known Member

    Oct 20, 2009
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    DataCenter Provider
    Most standard system binaries like /bin/df are 755 permissions, so most users (including the usernames which execute apache and PHP) can run them. This is pretty normal.

    You could try restricting some of the more risky php functions by using the disable_functions setting in /usr/local/lib/php.ini. This can make it harder for php scripts to use system utilities. Mine is currently set to this:

    disable_functions = show_source,system,shell_exec,passthru,exec,phpinfo,popen,proc_open,allow_url_fopen

    Keep in mind this does not take into account that on most systems users can just set their own php.ini settings anyway, but there are other threads about stopping that ability.

Share This Page