Wordfence and XML-RPC
-
After upgrading Wordfence plugin I lost ability to post via Windows Live Writer. I mean, I only figured this out accidentally recalling that I did an upgrade this morning.
New version of the plugin disables XML-RPC that is required for remote publishing. So, if you are using Windows Live Writer or other tools like that, go to Wordfence settings and untick the “Disable XML-RPC” option.
-
@Wordfence:
The option to disable the feature should come back, DISBLE BY DEFAULT, and with enough information to people. There are some cases in which I want to completely isolate and shutdown remote connections to a website and this is useful.In example, iThemes Security released an update some days ago where they allow you to 1) keep it ON (XMLRPC ON and untouched by default), 2) soft turn off by using the native WP filter, and 3) hard block over xmlrpc.php via htaccess. You should do the same.
Hi Guys,
We need to gather more feedback and examine what tangible security benefit it offers and if there are other alternatives that may provide larger security benefits. Thanks for your input.
Regards,
Mark.
Hey Guys – love the features – however, I think with this last change (5.0.3) something may have gone awry. Specificall with the XML-RPC rollback. I also use a remote posting solution, and had spotted that XML-RPC entry pretty quickly after upgrading so disabled it on a few sites (disabled the disabling of XML-RPC to be exact – thus leaving it enabled where I needed it). Just did the update to 5.0.3 and now my sites that had been working with the above settings now seem to be disabling the XML-RPC completely. No option to re-enable, disable, etc. Haven’t gone hunting through the plugin code for solutions yet, but… Any ideas? I have several sites that are now all reacting the same.
@lizardwebs: I added iThemes Security plugin, which is a good complement to WordFence and in fact provides the options to Disable XML RPC if you want. And XML RPC is on by default. I also use iThemes’ plugin to enable hidden login, a feature that is not present in WordFence, but I would be willing to abandon iThemes if WordFence implements that.
Thank Marcelo – the problem though is that I enabled the xmlrpc in a number of sites so I could use the remote posting software. And after the 5.0.3 update, my remote posting application cannot contact those sites. And I no longer have the option in WordFence of turning it on or off. It’s just flat out off. Verified it via test at https://xmlrpc.eritreo.it
@lizardwebs: Sounds like you have some other issue. Here’s the actual code change that completely disables the feature:
Here’s the full list of changes. Scroll past the list of files to see the actual diff:
Even if you don’t understand PHP, it’s pretty obvious what we’ve done here. We’ve removed the code that:
1. Checks to see if the user has chosen to disable XML-RPC.
2. Plugs into the xmlrpc_enabled filter to actually disable XML-RPC.
With that code no longer present, there’s no way that we can disable XML-RPC. So you probably have some other issue with your site.
Regards,
Mark.
Thanks for the feedback @wordfence! I’ll look at it – I stay on top of updates and it may be some other plugin. It hit 14 of my sites though that I use this software on and it seemed like the logical direction to look after the 5.0.3 – will keep on hunting for the issue! Thanks – LOVE FALCON!
@lizardwebs: I have XML RPC allowed in iThemes and not covered now by Wordfence, and https://xmlrpc.eritreo.it/ says XML RPC is enabled in my sites… do you use any other plugin or patch that you can remember?
Maybe the Disable XMLRPC plugin? maybe some htaccess patch? Check it out.BTW, these are the iThemes options for XML RPC. something like this should use WordFence:
https://www.dropbox.com/s/xhi5brfyerzul1i/xmlrpc%20by%20ithemes.jpgThere is really no valid reason to disable XML-RPC. It is a set of remote APIs in WordPress that require authentication with a username and password, same as the dashboard.
If you did want to disable XML-RPC, then there are other plugins that will do it. Preferences have a cost. Having this plugin will not slow down your site in any way, will never need to be updated (it’s one line of code), and doesn’t even have any UI. Just activate or deactivate.
To answer other questions: If you have Akismet 2.6.0, then yes, your site will be prevented from participating in “distributed denial of service” situations they have identified. Note these have been fairly minor in nature and do not actually affect your site; they only had the potential to affect other sites. It was also a very weak attack — there are much easier and more effective ways to “DDoS” a site. The reason why hackers were using it is because it “cloaked” the person behind it. So, Akismet 2.6.0 and WordPress 3.8.2 both included code to pass along information about who requested the pingback (by forwarding along their IP address) which makes this easier to be stopped at the network and host level and removes the “cloaked” aspect.
@marcelo – Still looking at it – disabled all plugins, reinstalled WP, switched to default theme – still issues. Somehow, when all this is done, I’m going to end up feeling stupid for missing some small little thing I have no doubt when I find it… Going to take this offline from here though. This doesn’t seem to have anything to do with WordFence and I don’t want to waste their area chasing down rabbit holes LOL. thanks for the input all!
@lizardwebs If you do find it give us an update just for info. Might be interesting to know what the cause was.
@andrew:
Thanks for the input regarding Akismet. From what you said, I still have a doubt: Akismet will STOP the intents? or it simply will pass the real IP along with the request so the other admin is able to block that IP?
In the other hand, and if I understood correctly how the comments are managed, what if I set the comments to require and administrator to approve them? will the site still be able to be abused?Both. Akismet will first send a pingback attempt to its API to check it, the same way it would evaluate a would-be spam comment. If the pingback clears the check, the real IP would be passed along.
Requiring moderation won’t help. Pingbacks get verified as part of receiving them, because we need the information in a pingback in order to provide you the source and excerpt (the pingback “author” and pingback “content”). Everything we do here happens to be per the pingback specification.
@lizardwebs: are you sure your server or Wordfence itself isn’t blocking the IP of the XM LRPC tester? any firewall in use?
- The topic ‘Wordfence and XML-RPC’ is closed to new replies.