Hello from Italy,
we are an NGO working in the Civil Protection sector.
We've had a Moodle server in production for over seven years, which give us a huge help in training volunteers. Until ten days ago, it had no problems.
When the issue we're about to describe occurred, the installed version was 5.0.3 on LAMP with a standard theme and customcert as the only added plugin.
Suddenly, the site returned a 500 error after authenticating any user, then went invisible, redirecting traffic to an Indonesian gambling page.
After reinstalling everything three times with the same result after a couple of days, two days ago we decided to isolate the Moodle instance on a new separate server (Ubuntu Server 24.04) and upgrade Moodle to the latest version, successfully.
After about 24 hours, the issue returned.
We restored everything, but we need to resolve the situation in a final way.
We attach the result of diff [unzip Moodle dir] [hacked Moodle dir]
which highlights the files present on the hacked installation.
Can you help us? 🙏