Recently we have noticed more and more frequent attacks on the xmlrpc.php file in WordPress, this can cause a number of problems for a website owner from resource usage up to malicious hacking attempts to gain access to the website or data. So how to keep your website security strong and stop these attacks?
The xmlrpc.php file contains a function that enables external apps to communicate with and post to your WordPress site on your behalf, it has been there for a while but most people don’t use this functionality.
Attacks on xmlrpc.php can be simply DoS attacks that overuse resources, bringing your site to a crawl or making it completely unavailable. This is the equivalent of many visitors hitting your site all at once. The attack can have a more sinister intention though, as the xmlrpc interface enables hackers to try multiple usernames and password attempts, bypassing the wp-login.php file.
On the HostAsean hosting servers we monitor and check for excessive resource usage by xmlrpc.php and any other files or scripts. Since removing the file on a number of our customer’s websites we have noticed that these have completely stopped, as there is now no file for the attacks to hit and therefore no vulnerability. As a bonus, by preventing so many attempted attacks by removing the files it reduces the load on the entire server. This should give everyone hosted with us a faster website.
You might see a message like this if you run “lfd”, removing xmlrpc.php will stop these notifications:
Suspicious process running under user username Time: Mon Jan 25 04:50:26 2016 +0700 PID: 17515 (Parent PID:27615) Account: username Uptime: 110 seconds Executable: /usr/bin/php Command Line (often faked in exploits): /usr/bin/php /home/username/public_html/xmlrpc.php Network connections by the process (if any): tcp: 11.222.333.444:42407 -> 1111.222.333.444:443
There is one thing to note, and the API is required if you use the Jetpack plugin, or other external apps to access or post to your WordPress site. It is possible to block xmlrpc but still allowing access from Jetpack/Automattic servers to allow these trusted plugins to function. It is otherwise completely safe to delete the xmlrpc.php file, but if you find that you do need it – it can be restored easily by just downloading a copy of the WordPress core files from www.wordpress.org and re-uploading the file again.
If you have a WordPress website hosted with us, we would be happy to close this vulnerability to help secure your website. Just contact support@nullhostasean.com and let us know what your domain name is and we’ll remove the file for you.
HTTP vs HTTPS and SSL certificates can be a confusing topic. You probably know that…
We have some news for you, we've not just upgraded one of our most popular…
You shouldn't need much convincing, WordPress is a great tool for a lot of website…
You need an SSL certificate on your website, that’s not up for discussion. But we…
Save the environment one line of code at a time. Improving your website performance benefits…
It’s inevitable, something’s gone wrong – usually just when you need to send that important…