Skip to main content

Server compromised via password reset?

Comments

6 comments

  • rpvw
    Was there any commonality between the two sites on the different servers ? eg Were they both running the same CMS, and if so, did both sites use the same plugins or addons ?
    0
  • cPanelLauren
    Hi @scottconc The only way they can reset a password is if they have the contact email for the account set to an email address they have control over. This would lead to the belief like @rpvw is suggesting that they initially had access through some other means, the likely culprit would be a vulnerable CMS, plugin, theme etc. Thanks!
    0
  • scottconc
    Hey everyone we figured out how they were getting. We changed the PHP handler to a more secure handler. By default it is set to CGI. We switched it to DSO and that seemed to have stopped them. WHM > MultiPHP Manager > PHP Handlers Is where to change the option if anyone else has this issue.
    0
  • cPanelLauren
    Hello @scottconc Thanks for letting us know, I do hope the issue does not resurface now that you've changed the handler.
    0
  • kjavitz
    So this is what is really happening, please TAKE NOTE cpanel support it is huge security issue the account is compromised probably via an old CMS and the hacker updates /home/accountname/.contactemail to their email and then resets the cpanel password The cpanel flaw is this - the contact email shown in whm > list accounts is CORRECT, but the one used for cpanel email resets is the email address of the hacker! Why don't these 2 email addresses match? I verified it myself and the .contactemail is the hacker email and the one shown in WHM > list accounts is the real account owner email. But when I go to reset password it shows the first and last characters of the hacked .contactemail address
    0
  • martin MHC
    [QUOTE]the hacker updates /home/accountname/.contactemail to their email and then resets the cpanel password
    errr, how does this relate to the PHP Handler? Perhaps you could improve your list of disabled functions in your php.ini ?
    0

Please sign in to leave a comment.