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!

Cpanel Account Hacked, Or Just The Wp Sites?

Discussion in 'Security' started by crwilliams, Jul 30, 2015.

  1. crwilliams

    crwilliams Well-Known Member

    Sep 10, 2002
    Likes Received:
    Trophy Points:
    I'm helping out someone who's on a hosting account elsewhere from my own servers, so I'm missing WHM tools. But I was thinking of letting the person move to one of my servers, so I wanted to see what I was getting into first.

    I'm basically trying to determine whether this person has had their entire cPanel account compromised or if there is a lingering backdoor on one or all three WordPress sites on the cPanel account.

    Ordinarily, I'd admit I missed something when cleaning up the sites for them. But I'm seeing something I haven't before. As soon as I log out of SSH on their account, the hackers have the nav-menu.php on all three of their sites injected with their malicious code. And they're apparently using a touch command along the way to set the modification date. So to see the actual change time, I have to stat nav-menu.php.

    All three copies of that file, on the three separate wordpress installs, have nearly identical results when I stat that file after it's been hacked again. Does that provide any relevance to the nature of the compromise and if it's the whole account?

    Thanks for any advice or nudges in the right direction!
  2. quizknows

    quizknows Well-Known Member

    Oct 20, 2009
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    DataCenter Provider
    Generally with add-on domains, if one site gets hit they all get hit. At least it's only three.

    What you need to do with that stat time is consult the domain access logs; likely another hacked file is being used to change that one. Look for POST requests especially, or anything that matches the change time.

    Usually with stuff like this it's just the WP sites, but you can always change the cpanel password to help be sure, and review the cpanel access log if you can for any unauthorized IPs or file manager access.

    edit; also humor yourself and check the crontab or any .bash* files in the users home directory.
    #2 quizknows, Jul 30, 2015
    Last edited: Jul 30, 2015
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    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