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.

php exec function security issues

Discussion in 'Security' started by postcd, Jun 17, 2014.

  1. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    621
    Likes Received:
    6
    Trophy Points:
    18
    Hello,

    please which tasks can do abusers if i do not disable PHP "exec" function globally?

    I have this PHP:
    And i have SuPHP, SuExec on/enabled.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,689
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. quizknows

    quizknows Well-Known Member

    Joined:
    Oct 20, 2009
    Messages:
    940
    Likes Received:
    55
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    functions like exec, shell_exec, and passthru allow PHP scripts to run system commands (i.e. bash commands).

    Generally it's really best to leave them disabled, as it makes it much harder for hackers to functionally use PHP shells or other exploit scripts.
     
Loading...

Share This Page