Skip to main content

SECURITY ALERT: Full-access API token “InstallHostnameSSL” created for root

Comments

3 comments

  • quietFinn

    Apparently that Api token was greated but lated revoked.

    if you do:
    grep -i "InstallHostnameSSL" /usr/local/cpanel/logs/api_tokens_log

    you see if it's ever used.

    And if you didn't do it already, change the root password.

     

    0
  • thai tu

    Hello quietFinn,

    Thank you for your reply. 

    The log have multiple lines look like this:

    [2026-03-02 10:36:15 +0700] info [whostmgrd] Host: ['127.0.0.1'] HTTP Status: ['200'], User: ['root'], Token Name: ['InstallHostnameSSL'], Request: ['GET /json-api/install_service_ssl_certificate?api.version=1&service=exim&crt=-----BEGIN+CERTIFICATE-----%0AMIIE%2FjCCA%2......

    Last use is from last week. Is this normal?

    I also change my root password.

    Thank you.

    0
  • cPRex Jurassic Moderator

    It's definitely odd that there was a token created that you aren't aware of, as that should be a red flag for any server admin.

    However, it seems it was only used to install an SSL certificate on the hostname of the machine, based on the URL being used.

    I would do two things:

    -check WHM >> Manage Service SSL Certificates to make sure everything on that page looks normal
    and
    -check /var/log/secure and /usr/local/cpanel/logs/access_log to ensure there wasn't any unauthorized access to the server

    0

Please sign in to leave a comment.