Skip to main content

Suspicious entry in access log

Comments

5 comments

  • madmanmachines
    Hi, You are obtaining this from '/usr/local/apache/logs/access_log'. This logs requests to the server hostname, IP, or domains that resolve to the server, but have no vhost. If you take your server IP, and add the URI's above, you'll see these are cPanel files. Your domain logs are located at '/usr/local/apache/domlogs/'. Thanks,
    0
  • walt
    Apologies, I have had this account for years, and am just now trying to understand it and manage it better. My top most access in file manager is /home2/myusername/. The logs above were in the folder /home2/myusername/logs . I did try going to the resources listed in the log, for example: my-site.com/img-sys/contentbox.jpg and I do see the images that appear to be parts of a cPanel page. I'm wondering why they are accessible by just appending the URI to my web address, when I cannot even see these resources listed in my file manager. Also I appear to have no control on the accessibility of these resources from outside. For example mod_rewrite rules in the .htaccess file* don't seem to have any effect:
    RewriteRule ^(.*)cpanel(.*)$ - [F,L] RewriteRule ^(.*)img-sys(.*)$ - [F,L]
    For now I have banned the IP address, but it doesn't seem like a good enough solution. What else might be accessible from outside, that I do not see listed in file manager? How can I trust my site? Apologies for the ramble. *The .htaccess file was in the public directory, I haven't tried modifying the htaccess in the home directory for fear I might break something.
    0
  • cPanelMichael
    Hello :) It's important to keep in mind that you have limited control over the Apache configuration because you do not have root access to this server. You can report this issue to your web hosting provider if it's behavior you want them to help you to avoid. Thank you.
    0
  • walt
    Hello, thanks for your input. I was hoping for a definite answer, for example: "What you are experiencing is not normal/ is a security risk/is ok because... ". best support I was able to get from my provider, was: "What happens when you go to address:
    0
  • cPanelMichael
    The information in the logs does not indicate a security risk. The access attempts are not on sensitive files, but you can report the issue to your hosting provider if you are concerned about the security of the server. Thank you.
    0

Please sign in to leave a comment.