Skip to main content

Since 56.0.13, passwd hashes do not match

Comments

6 comments

  • gn0s1s
    Any chance this might get looked at, cPanel Staff? :-)
    0
  • gn0s1s
    May 26 cPanel version: 11.56.0.21 Local md5sum: 792964343f6f916d8025bf9b1eb1e839 Fresh md5sum: 81ccb41e7ee6f41f0b63fa08e779f929
    0
  • Infopro
    Any chance this might get looked at, cPanel Staff? :)

    Sure thing, feel free to open a ticket directly to cPanel Technical Support! :)
    0
  • gn0s1s
    Sure thing, feel free to open a ticket directly to cPanel Technical Support! :)

    If I did that it would be assuming that there was something wrong with cPanel rather than something wrong locally. That's part of the answer I was expecting here, in this forum, before stepping it up to Technical Support. But ok, if that's the only reply I'll get here, then I'll go there. o_O
    0
  • gn0s1s
    Ok, after a bit more investigation and some help from my host, we've been able to determine that since cPanel version 11.56.0.13, the /usr/bin/passwd file is now equivalent to the file in the main CentOS repository. You can verify this by running "yum whatprovides /usr/bin/passwd":
    Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.sonic.net * extras: mirror.hmc.edu * updates: lug.mtu.edu passwd-0.79-4.el7.x86_64 : An utility for setting or changing passwords using PAM Repo : base Matched from: Filename : /usr/bin/passwd passwd-0.79-4.el7.x86_64 : An utility for setting or changing passwords using PAM Repo : installed Matched from: Filename : /usr/bin/passwd
    The /usr/bin/local/passwd file is now the one being kept in sync with the cPanel repo's jail_safe_passwd.xz file. I've adjusted my script so that it checks those md5sums against each other. Since I also want to be able to keep an eye on /usr/bin/passwd to make sure it isn't changed, I've incorporated the "rpm -V passwd" command into my script, as well. This will flag any discrepancies in between the local passwd file and the repository it comes from. Now the script outputs the following:
    CentOS version: 7 cPanel version: 11.56.0.21 -------------------- PASSWD FILE MD5 HASH -------------------- Downloading http://httpupdate.cpanel.net/cpanelsync/11.56.0.21/binaries/linux-c7-x86_64/bin/jail_safe_passwd.xz... Local md5sum: 81ccb41e7ee6f41f0b63fa08e779f929 [/usr/local/bin/passwd] Fresh md5sum: 81ccb41e7ee6f41f0b63fa08e779f929 [jail_safe_passwd.xz] ==> HASHES MATCH Removing downloaded file... ------------------- YUM WARNINGS ------------------- .......T. c /etc/pam.d/passwd ------------------- CHKROOTKIT WARNINGS -------------------
    Hopefully this will help anyone else who actively checks their passwd files against tampering and who is puzzled by this change.
    0
  • cPanelMichael
    Hello, I'm happy to see you were able to find an answer to your question. Thank you for updating this thread with the outcome.
    0

Please sign in to leave a comment.