• Hi,

    I was running the Anti-Malware from GOTMLS.Net plugin on my website and it identified the file “jquery.flot.js” in the plugins/contact-forms/flot/ folder as a known malware threat. I downloaded a fresh version of the plugin and compared that .js file with the one I have installed with an online 2 that compares 2 text files and it came back with the two files as identical.

    So…I’m posting here thinking there probably isn’t malware in that file for this plugin but thought you might want to check into why it’s being identified as such by the Anti-Malware plugin.

    Thanks,

    Rick

    https://wordpress.org/plugins/contact-forms/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author cimatti

    (@cimatti)

    Hi,

    I compared the flot folder of WordPress Contact Forms plugin with Flot 0.7.0 I just downloaded from https://codeload.github.com/flot/flot/tar.gz/v0.7.0 , and the only differences are in the examples folder (i removed it from the copy included in Contact Forms) and minifized versions of the scripts (not included in the GitHub repository).

    The file jquery.flot.js and the other files are identical to the ones in this repository. Maybe some malware includes the same version of the Flot library or it’s just a false positive. I’ll report this to GOTMLS.net

    Plugin Author cimatti

    (@cimatti)

    Thread Starter rickpoet

    (@rickpoet)

    Well done Cimatti!

    I have confirmed that the code in question is not malicious.
    //debug: html.push('<div style="position:absolute;opacity:0.10;background-color:red;left:' + box.left + 'px;top:' + box.top + 'px;width:' + box.width + 'px;height:' + box.height + 'px"></div>')
    Please note that this nearly hidden div is exactly the kind of HTML code that hackers use to hide text that they want to get indexed on infected sites. In this case it is just a slightly red tinted box that was clearly just used for debugging. You can also see that this code is rem’d out so it’s not even executed when the insertAxisLabels function is called.

    https://plugins.trac.wordpress.org/browser/contact-forms/trunk/flot/jquery.flot.js#L1663

    As this line was only used for debugging, and its not even needed in this JS include, it should probably just be removed and it won’t hurt for my Anti-Malware plugin to be deleting this line of code from this file. However, I understand this is not your code and this library could also show up in someone else’s plugin so I have whitelisted this version of this file so that it will not be flagged as a threat in my Anti-Malware plugin any more.

    Thanks for reporting this to me. Please let me know if there is anything else.

    Aloha, Eli

    Plugin Author cimatti

    (@cimatti)

    Ok Eli, thanks for your report, I think I’ll update the Flot library in the next version, it seems they have removed that line

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘One of the js files got flagged as malware by AntiMalware Plugin’ is closed to new replies.