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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Disable automatic scanning and blocking of file manager

Discussion in 'Security' started by cyphixia, Jun 18, 2017.

  1. cyphixia

    cyphixia Registered

    Jun 18, 2017
    Likes Received:
    Trophy Points:
    Lansing Michigan
    cPanel Access Level:
    DataCenter Provider
    Hey guys,

    First post here, but have been playing the cpanel/whm game for a while as a hosting security admin.

    We recently had an issue that I can't for the life of me figure out where to correct/change...

    Let me describe the issue first'
    -Stock centos7 server running "release" whm.
    -Enable clamAV pluigin for cpanel Version: 0.99.2-1.cp1164
    -Try to upload a known malicious file using cpanel file manager to an account's public_html.

    It will block with something like:
    "The file you uploaded, index.php, contains a virus so the upload was canceled: {HEX}base64.inject.unclassed.6.UNOFFICIAL FOUND"

    I have checked the file, and can confirm that this is a false positive.

    But, this leaves with with a question... Where are the configuration options for this? Specifically the option to disable the on demand stream scanning of an upload, for the host, a user, directory, or file. It seems like this would be configurable somewhere, or at least should be something that can be disabled via a config change.

    Upon installation of the module, I see that the following packages are downloaded and added:

    These seem to add the following files:

    [root@host ~]# rpm -qlp [URL][/URL]
    [root@host ~]# rpm -qlp [URL][/URL]

    Nowhere in these can I see anything that defines if a file manager uploaded files gets scanned or not, and am unable to find any hooks that have been added to file manager after the install as well.

    Anybody know where this would be, or have any insight here?

    Thanks and best regards,
    Liquidweb Security.
    #1 cyphixia, Jun 18, 2017
    Last edited by a moderator: Jun 18, 2017
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello Ian,

    It's not possible to disable virus scanning for files uploaded through File Manager without uninstalling ClamAV. I encourage you to open a feature request if you'd like to see that functionality added to the product:

    Submit A Feature Request

    The best approach in the meantime is to manually add false positives to the global whitelist using the instructions on the following thread:

    ClamAV signatures database

    Thank you.

Share This Page