The threat we faced
The two vulnerabilities, collectively known as PHP2Shell, could allow attackers to run malicious code on an affected web server without needing to log in. This could put website data at risk, allow content to be altered or cause services to be disrupted, making prompt security updates essential.
The last 48 hours have been an interesting time at Calm. Whilst the majority of our websites run on Python, not PHP, we do host a handful of WordPress and PHP platforms which would need to be upgraded and mitigated.
How we responded
When we learned about the threats, our first step was to mobilise and find out what this meant for our websites. We began by disabling PHP completely on every server that deemed it unnecessary - this covered about 90% of the websites we maintain.
Fortunately, Ubuntu were ahead of the game and offered several clear upgrade paths for our servers - this meant that we could quickly and easily patch servers with minimal downtime. I’m pleased to say that the vast majority of websites were patched within 24 hours of the vulnerabilities first becoming public knowledge. Thanks to the whole development team at Calm, who helped make this possible, especially as we’re currently in the middle of Advent Calendar season.