• Resolved marvc

    (@marvc)


    A malware scan produces the following alert:

    DownloadHandler
    Suspicious function found

    Issue Details
    We’ve uncovered suspicious code in /var/web/site/public_html/wp-content/plugins/download-monitor/src/DownloadHandler.php. The red highlighted code is the flagged code and the green is the cleaned up code. Note that these warnings can be false positives, so consult your developer before taking action.

    Error
    }

    if ( function_exists( ‘get_magic_quotes_runtime’ ) && get_magic_quotes_runtime() ) {
    @set_magic_quotes_runtime( 0 );
    }

    if ( function_exists( ‘apache_setenv’ ) ) {

    Location /var/web/site/public_html/wp-content/plugins/download-monitor/src/DownloadHandler.php
    Size 21.15 KB
    Date added June 9, 2020 2:08 pm

    Can someone confirm severity or if it’s a false positive?

    Any responses appreciated

Viewing 1 replies (of 1 total)
  • Plugin Contributor Barry Kooij

    (@barrykooij)

    Hey there,

    I can confirm this is a false positive. We only set this when the server supports it, which is in older versions. These lines are still included to support older versions of WordPress and PHP.

    Please let me know if there’s anything else I can help you with.

    Kind Regards,

    Barry Kooij

Viewing 1 replies (of 1 total)
  • The topic ‘Suspicious Code Detected’ is closed to new replies.