Posts made by Martin Dougiamas

Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Plugin developers Picture of Testers
My guess is that your config.php and perhaps other files were left writeable by the apache process, and that a spammer exploited one of the old published vulnerabilities to rewrite your files with extra code. It's impossible to know exactly which particular vulnerability without examining your server logs very carefully (it would be great if you could do this to help make sure that it is an old one, and not a new one).

It does seem likely that the "hackcheckstr" spammer could be using an automated script to comb for Moodle sites and perform the attack automatically (conveniently tagging the sites with "hackcheckstr" for easy discovery later on).

As you have noted, prevention involves:

- making sure your files are not left in a writeable state
- keeping Moodle up to date! Which means the very latest point release or weekly for a given branch.
Average of ratings: Useful (3)