Haunted by a ghost (index.php mystery)
-
A site that was running five days ago (and possibly even more recently) started choking early this morning (I was notified by email from New Relic), with an error saying that
index.php
was trying to require inclusion of a file that doesn’t exist. Since the site had not been changed at all in a couple months, I first tried restoring from a month-old files backup, but the error was not resolved. I don’t normally read WP code files, but I decided to take a look atindex.php
… and I discovered the weirdest thing: It wasn’t a WordPress file at all, but a Joomla bootstrap! This site was running on Joomla in the past, but when it got hacked about a year ago, I wiped the files and database completely (at least I thought I did) and started over in WordPress.Since the restore didn’t replace that file, I decided to look inside the backup. The backup was done by UpdraftPlus, which separates the files into four categories: Plugins, Themes, Uploads, and Others. I never thought about it until now, but even the Others backup is only files in
wp-content
– there is no attempt to backup the files in the webroot, likeindex.php
,wp-config.php
, etc., nor thewp-admin
orwp-includes
directories. I’m not very impressed with UpdraftPlus right now.I grabbed a copy of a WP bootstrap from another website I manage, and the site appears to be running now, but I’m concerned that something hinky is going on that I can’t see. As I said, I had not touched the site in a couple months, so my hand didn’t cause this. My hoster did some server maintenance a couple days ago, but it’s an unmanaged VPS, so they wouldn’t have messed with my files. The only way to get on the server by SSH or FTP is with a private key, there is only one WP user, and WP says there is only one active login at the moment (me).
Does anyone have any thoughts about what might have happened, or what sort of hinky things I should look for? I’ve now upgraded WP to 4.8 and all plugins to their current versions, but if extra files have crept in somehow, upgrades won’t get rid of them. I feel like my site is haunted, since I got a visitation by the ghost of bootstraps past…
- The topic ‘Haunted by a ghost (index.php mystery)’ is closed to new replies.