Posts tagged ‘security’

WordPress 2.6 to disable XML-RPC out of the box

Peter Westwood, a WordPress developer, recently announced a planned change that will disable Atom and XML-RPC publishing by default. I’m thrilled at this direction: many of my corporate and professional installations of WordPress require significant tweaking to disable remote publishing.

In the meantime, I’ve actually had no ill effects from removing xmlrpc.php from the default WordPress installation.

Another tweak I usually employ is applying a .htaccess file to the wp-admin directory. Using a set of Allow/Deny directives, you can restrict access to your administration panel to local machines only. For example, creating a new file /wp-admin/.htaccess:

Order allow,deny
Allow from 192.168.1
Deny from all

This example file ensures that only users coming from 192.168.1.x addresses can access the administration dashboard. It’s very useful because regardless of password compromise, only internal users will ever be able to access the login prompt.

Another solution that would still allow remote access by trusted users would include a dual-layered authentication system. Using the htpasswd utility and the .htaccess tutorial from Apache, create a separate login to access the administration panel. This prompt will appear before the default WordPress login. Roaming web spiders and malicious bots will have a more difficult time accessing the wp-admin directory with appropriate access restrictions in place.

Also, new WordPress security update (2.3.3)

As per the main WordPress site, another upgrade has hit. The security fix refers to our wonderful friend, xmlrpc.php. I highly suggest disabling this file (just delete it from your WordPress directory) if you’re maintaining a locked down installation of WordPress. This file seems to be present in every security issue lately, and a brief scan of the source seems to indicate that it offers support for pinging update services, sending pingbacks and allowing remote control of the service - none of these features are generally critical for sites valuing security more than blogosphere wankery.

DreamHost doesn’t seem to be offering the official upgrade yet, so I’m just downloading the fixed xmlrpc.php file for my installations requiring it, and replacing the file until the one-click install option comes online.