• Hi,

    This is probably a ‘feature’ operating as designed, just checking. Recently I changed the WF options on a couple of sites to also scan plugin files (previously I had this turned off). Now whenever I get the message that a plugin needs an upgrade, I also get a couple of warnings about modified plugin files. Which is only logic, as WF compares the plugin files against their newest version. Still this is somewhat confusing, as I am always extra alerted when I see a message about a modified file. For me file comparison and warnings about modifications of WP core and plugin files is the most useful feature of WF, because as long as there are no such warnings, chances are low there’s a contamination, hack, virus or whatever wrong.

    I would prefer WF compared the plugin files against the version I am currently running, even if this is not the newest. However, I can imagine this may not be possible. Is it?

    Erik
    WP Webbouw

    https://www.ads-software.com/plugins/wordfence/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Erik,

    that’s a great suggestion. I’ll pass that suggestion on to the developers. However, I have to tell you that sometimes there are plugin authors who change whats in the repo without doing a proper release. So the plugin is version 1.0 and instead of making the change and releasing version 1.1, they just make the change. We see this a lot for readme.txt files, where they change compatibility notes.

    I’ll forward the suggestion to the dev team. Thanks forhelping make Wordfence great!

    tim

    Thread Starter WPwebbouw

    (@wpwebbouw)

    Hi Tim,

    Thank you for your reply and for forwarding my suggestion. I would say the example you give would be an excellent occasion to issue a warning. If a plugin developer changes something in a plugin file and WF issues a warning that makes sense. I then can compare the files (great function!) and judge for myself if this is a threat or not. I think this wouldn’t conflict with my suggestion that WF should – if possible – compare the installed plugin files with the plugin files of the same version in the repository even when the installed version is outdated. However, that would require older versions to be available in the repository. I don’t know if they are.

    Erik
    WP Webbouw

    IAmMarchHare

    (@iammarchhare)

    This sounds like a good thing for another reason. This morning, I got email alerts from WordFence about WordFence itself. When viewing the differences:

    Author: Wordfence Version: 5.2.7

    vs

    Author: Wordfence Version: 5.2.8

    WFSupport

    (@wfsupport)

    @iammarchhare That’s weird because we released an update to 5.2.8. Had you already updated?

    tim

    IAmMarchHare

    (@iammarchhare)

    @WF Support: It is difficult to say. The update and the scan took place at roughly the same time. My educated guess is that there was a race condition resulting in bogus alerts.

    WFSupport

    (@wfsupport)

    Thats probably it then. You should go enter the lottery now, seeing as the odds you had both happen at once are pretty slim ??

    Let me know if you see any other issues with that.

    tim

    Thread Starter WPwebbouw

    (@wpwebbouw)

    Today WordPress 4.01 was released and on some of the sites I manage this minor update was automatically executed. This led to a couple of Critical Problem Alerts in my inbox from Wordfence, like this:

    Alert generated at Friday 21st of November 2014 at 07:44:45 AM
    Critical Problems:

    * WordPress core file modified: wp-admin/css/deprecated-media-rtl.min.css
    * WordPress core file modified: wp-admin/css/deprecated-media.min.css
    * WordPress core file modified: wp-admin/css/install-rtl.min.css
    * WordPress core file modified: wp-admin/css/install.min.css
    * WordPress core file modified: wp-admin/css/login-rtl.min.css
    * WordPress core file modified: wp-admin/css/login.min.css
    * WordPress core file modified: wp-admin/css/wp-admin-rtl.min.css
    * WordPress core file modified: wp-admin/css/wp-admin.min.css
    * WordPress core file modified: wp-includes/css/admin-bar-rtl.min.css
    * WordPress core file modified: wp-includes/css/admin-bar.min.css
    * WordPress core file modified: wp-includes/css/wp-auth-check-rtl.min.css
    * WordPress core file modified: wp-includes/css/wp-auth-check.min.css

    This looks like a timing matter. First I thought the files have obviously been changed by the automatic core update, but Wordfence still compares them to the previous version. However, when I look at the List of Files Revised in the release notes https://codex.www.ads-software.com/Version_4.0.1 I don’t see the above mentioned files listed.

    So what’s going on here? All the modified files WF reports are css files and the modifications are harmless. However, the fact that they have been modified poses the question where were they modified? Was it done by WordPress and did they accidentally forget to mark the files as modified? Or anything else? I’m puzzled. Are these false positives and if so, what is the cause?

    Erik

    WFSupport

    (@wfsupport)

    We mirror the wordpress repository. I’m making a note to verify our repository updates the same time as WordPress’ does.

    tim

    Plugin Author Wordfence Security

    (@mmaunder)

    Hi Erik,

    I have a theory of why this may be happening. To be clear: Wordfence is version sensitive so we know which version of core you have (along with themes and plugins) and verify against the correct version.

    If you are running a version of core that we don’t have in our repository, then we let you know with an error saying that you’re using a version of core that we don’t support. So you’ll see this if you’re running a Beta or Alpha version for example.

    But that’s not what’s happening here.

    I think what may have happened is that the websites this occurred on don’t get very much traffic. And the way WordPress scheduled jobs work, a website needs to get a “hit” or page-view before it will run any scheduled jobs.

    So in this case the website got a pageview and that kicked off any outstanding scheduled jobs. Both the Wordfence scan and the upgrade (which is also a scheduled job) kicked off at the same time.

    Then the core scan was running while the core files were being modified and so it alerted on some of the core files because it was halfway through the upgrade – meaning that half the core files were 4.0 and half were 4.0.1.

    Does that sounds like it’s a possible explanation?

    Regards,

    Mark.

    Thread Starter WPwebbouw

    (@wpwebbouw)

    Hi Mark,

    Actually, I don’t think your theory holds.
    What was happening, as I wrote in my earlier post, is that the alerted modified files were not part of the updated files as listed on the www.ads-software.com blog. So there is no co?ncidence, something else has modified these specific files (they are really modified) while it’s clear they are all harmlessly modified, so kind of false positive, as I get exactly the same warning on exactly the same files on at least 5 very different sites.

    Question remains open.

    Should I post some of the modifications here?

    Best regards,
    Erik

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Warning when plugin is not updated AND plugin file has changed’ is closed to new replies.