Forums

xmlrpc.php mysteriously replaced (3 posts)

  1. eceleste
    Member
    Posted 3 years ago #

    I started getting complaints from some authors of blogs I manage that MarsEdit (a Mac tool for editing posts) was reporting parsing errors and not able to post messages. We've seen this before, so I immediately went to the xmlrpc.php files on the affected blogs and found that, indeed, they had all been replaced with a version "last modified on" 10/4/08. The odd thing is that we had done no updating on that day (or the week before or days since).

    The new xmlrpc.php file included a version of line 27 with a call to mysql_escape_string. As in the past, I simply replaced this version of the file with another I have dating from 9/8/08 and all is fine.

    But how and why does the xmlrpc.php file change without our intervention? I would think that this is a compromise of our filesystem except that the edit is so innocuous and it happens to the same file across many WordPress installations on our server. Seems like an odd kind of vandalism.

    I also have no idea which version of the file WordPress considers "current". This file has no version number in the text, so I can't tell which one "should" be present in v.2.6 of WordPress.

    Any hints out there? Does anyone know whether xmlrpc.php on WordPress 2.6 is supposed to have mysql_escape_string on line 27? Does anyone have any idea whether WordPress installations can update files like this one "on their own"? Can anyone think of a significance to the 4th day of the month (the same thing seems to have happened for the last few months, always with versions of xmlrpc.php dated on the 4th day of that month)?

    I'm stumped!

  2. Otto
    Tech Ninja
    Posted 3 years ago #

    No, line 27 of the latest WordPress xmlrpc.php file does not have any mysql code on it at all.

    And no, WordPress cannot update itself (yet). Somebody is actually doing it.

  3. Joseph Scott
    Member
    Posted 3 years ago #

    You can always get a copy of xmlrpc.php from the Subversion repository (http://svn.automattic.com/wordpress/), each release of WordPress gets a tag in the repository (http://svn.automattic.com/wordpress/tags/). The latest release is 2.6.2, and you can get the xmlrpc.php file for that release at http://svn.automattic.com/wordpress/tags/2.6.2/xmlrpc.php

    As for the changes in your files, something/someone is doing it. There are a number of filesystem auditing tools (like tripwire) that can monitor for changes and help you pin down what is going on.

Topic Closed

This topic has been closed to new replies.

About this Topic